WebRR: self-replay enhanced robust record/replay for web application testing

WebRR: self-replay enhanced robust record/replay for web application testing
复制标题

WebRR:用于 Web 应用程序测试的自重放增强型稳健记录/重放

DOI:
10.1145/3368089.3417069
复制
发表时间:
2020
期刊:
Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering
影响因子:
--
通讯作者:
Jun Wei
Jun Wei
中科院分区:
--
文献类型:
--
作者:
Zhenyue Long;Guoquan Wu;Xiaojiang Chen;Wei Chen;Jun Wei

文献摘要

被引文献

相似文献

记录和复制工具对于通过捕获用户案例并在需要时自动执行的Web应用程序的质量保证很重要。但是,现有技术生成的测试是脆弱的,并且通常导致测试破裂,因为动态行为和频繁的现代Web应用程序更新。在本文中,我们提出了Webrr,这是一种用于Web应用程序测试的自我复制增强的强大记录和复制技术。 Webrr的新颖性是,它在录制阶段引入了一种新的自我复制机制,该机制在线检查了记录模块的捕获事件,并自动生成多个定位器(包括DOM定位器,视觉定位器和接近定位器),以改进生成的测试用例的鲁棒性。在重播期间,它结合了多个定位器和新的本地工作流维修技术来修复测试中断,并可以提高生成的测试的弹性,以频繁更新应用程序。我们将方法应用于3个企业Web应用程序,这些应用程序部署在中国的大型电网公司中。实验结果表明,WEBRR是有效的,并显着提高了使用记录和复制技术生成的端到端Web测试的鲁棒性。
Record-and-replay tools are important for quality assurance of Web applications by capturing user case scenarios and executing them automatically when needed. However, the tests generated by existing techniques are brittle, and often lead to test breakages as the dynamic behavior and frequent updates of modern Web applications. In this paper, we propose WebRR, a self-replay enhanced robust record-and-replay technique for Web applications testing. The novelty of WebRR is that, it introduces a new self-replay mechanism in the recording phase, which checks the captured event from the record module online, and generates multiple locators (including DOM locators, visual locator and proximity locators) automatically, to improve the robustness of generated test cases. During the replay, it combines multiple locators and new local workflow repair technique to repair test breakages, and can improve the resilience of generated tests to frequent updates of the applications. We applied our approach to 3 enterprise Web applications, which are deployed in a large power grid company of China. The experimental results show that WebRR is effective, and substantially improve the robustness of end-to-end web tests that are generated using record-and-replay technique.