4.2 Article

Generating and selecting resilient and maintainable locators for Web automated testing

期刊

出版社

WILEY
DOI: 10.1002/stvr.1760

关键词

automated testing; web locators; web UI test automation; XPath

资金

  1. University of Science, VNU-HCM, Vietnam [CNTT2020-15]

向作者/读者索取更多资源

This paper proposes a new approach to generating and selecting resilient and maintainable UI locators by relying on the semantic structures of Web pages, outperforming traditional methods in experiments.
Web user interface (UI) test automation strategies have been dominated by programmable and record-playback approaches. Of these, record-playback allows creating automation tests easily and reduces the cost of test generation. However, this approach increases the cost of test maintenance due to its unstable generated locators for identifying UI objects during playback. In this paper, we propose a new approach to generating and selecting resilient and maintainable locators. Our approach consists of two parts, a new XPath construction method and selecting the best XPath to locate the target element. Our XPath construction method relies on semantic structures of Web pages to locate the target element using its neighbors. We conducted an experiment on 15 popular websites. The results show that our approach outperforms the state-of-the-practice/art Selenium IDE and Robula+ in locating target elements by effectively avoiding wrong locators. It also produces more readable XPaths (hence more maintainable tests) than do these approaches.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.2
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据