首页> 外文期刊>Software Testing, Verification and Reliability >Sidereal: Statistical adaptive generation of robust locators for web testing
【24h】

Sidereal: Statistical adaptive generation of robust locators for web testing

机译:恒星:Web测试的统计自适应生成强大的定位器

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

摘要

By ensuring adequate functional coverage, End-to-End (E2E) testing is a key enabling factor of continuous integration. This is even more true for web applications, where automated E2E testing is the only way to exercise the full stack used to create a modern application. The test code used for web testing usually relies on DOM locators, often expressed as XPath expressions, to identify the web elements and to extract the data checked in assertions. When applications evolve, the most dominant cost for the evolution of test code is due to broken locators, which fail to locate the target element in the novel versions and must be repaired. In this paper, we formulate the robust XPath locator generation problem as a graph exploration problem, instead of relying on ad-hoc heuristics as the one implemented by the state of the art tool robula+. Our approach is based on a statistical adaptive algorithm implemented by the tool sidereal, which outperforms robula+'s heuristics in terms of robustness by learning the potential fragility of HTML properties from previous versions of the application under test. sidereal was applied to six applications and to a total of 611 locators and was compared against two baseline algorithms, robula+ and Montoto. The adoption of sidereal results in a significant reduction of the number of broken locators (respectively -55% and -70%). The time for generating such robust locators was deemed acceptable being in the order of hundredths of second.
机译:通过确保足够的功能覆盖,端到端(E2E)测试是连续集成的关键能力。对于Web应用程序来说,这更为真实,其中自动化E2E测试是锻炼用于创建现代应用程序的完整堆栈的唯一方法。用于Web测试的测试代码通常依赖于DOM定位器,通常表示为XPath表达式,以识别Web元素并提取在断言中检查的数据。当应用程序的发展时,测试代码的演化的最主导成本是由于损坏的定位器,它无法在新颖版本中找到目标元素并且必须修复。在本文中,我们制定了强大的XPath定位器生成问题作为图形探索问题,而不是依靠Ad-hoc启发式作为由艺术工具Robula +实现的那个。我们的方法是基于工具恒星实现的统计自适应算法,它通过从先前版本的应用程序中学习HTML属性的潜在脆弱性来实现Robula +的启发式。恒星应用于六个应用程序,共计611个定位器,并与两个基线算法,Robula +和Montoto进行比较。采用恒星导致破损定位器数量的显着降低(分别为-55%和-70%)。产生这种稳健定位器的时间被认为是可接受的,大约百分之一秒。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号