コンピュータ ソフトウェア
Print ISSN : 0289-6540
Recommending Correct Locator for Broken Test Scripts using Various Clues in Web Application
KIRINUKI HiroyukiTANNO HarutoNATSUKAWA Katsuyuki
著者情報
ジャーナル フリー

2019 年 36 巻 4 号 p. 4_3-4_17

詳細
抄録

Test automation tools such as Selenium are commonly used for automating end-to-end tests, but when developers update the software, they often need to modify the test scripts accordingly. However, the costs of modifying these test scripts are a big obstacle to test automation because of the scripts' fragility. In particular, locators in test scripts are prone to change. Some prior methods tried to repair broken locators by using structural clues, but these approaches usually cannot handle radical changes to page layouts.
In this paper, we propose a novel approach called COLOR (correct locator recommender) to support repairing broken locators in accordance with software updates. COLOR uses various properties as clues obtained from screens (i.e., attributes, texts, images, and positions). We examined which properties are reliable for recommending locators by examining changes between two release versions of software, and the reliability is adopted as the weight of a property. Our experimental results obtained from four open source web applications show that COLOR can present the correct locator in first place with a 77% – 93% accuracy and is more robust against page layout changes than structure-based approaches.

著者関連情報
© 2019, 日本ソフトウェア科学会
前の記事 次の記事
feedback
Top