首页> 外文期刊>Software Testing, Verification and Reliability >Generating and selecting resilient and maintainable locators for Web automated testing
【24h】

Generating and selecting resilient and maintainable locators for Web automated testing

机译:为Web自动化测试生成和选择弹性和可维护定位器

获取原文
获取原文并翻译 | 示例

摘要

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.
机译:Web用户界面(UI)测试自动化策略一直由可编程和记录播放方法主导。其中,记录播放允许轻松创建自动化测试并降低测试生成的成本。然而,这种方法由于其不稳定的生成定位器而增加了测试维护成本,用于在播放期间识别UI对象。在本文中,我们提出了一种新的方法来产生和选择弹性和可维护定位器。我们的方法由两个部分,一个新的XPath构造方法和选择最好的XPath来定位目标元素。我们的XPath施工方法依赖于网页的语义结构来使用其邻居定位目标元素。我们在15个受欢迎的网站进行了实验。结果表明,我们的方法通过有效地避免了错误的定位器来定位目标元素时,我们的方法优于练习/艺术硒ide和Robula +。它还产生比这些方法更具可读的XPath(因此更具可维护的测试)。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号