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
期刊:
影响因子:
--
通讯作者:
Jun Wei
中科院分区:
文献类型:
--
作者:
Zhenyue Long;Guoquan Wu;Xiaojiang Chen;Wei Chen;Jun Wei
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.