TERMINATOR:更好的自动化UI测试用例优先级
TERMINATOR: Better Automated UI Test Case Prioritization
摘要:
自动化UI测试是软件开发的持续集成过程的重要组成部分。现代基于Web的UI是由多个团队编写的数十个微服务的报告的混合体。如果页面的任何微服务失败,则打开另一个页面的页面上的服务将失败。因此,自动化UI测试的总成本很高,因为UI元素不能单独测试。例如,Lubricant Nexis的整个自动化UI测试套件需要大约30个小时(在云上需要3-5个小时)才能执行,这会减慢持续集成过程。为了缓解这个问题,并为开发人员提供更快的代码反馈,测试用例优先级技术被用来重新排序自动化UI测试用例,以便更早地检测到更多的失败。由于大多数自动化UI测试本质上是“黑盒”,因此可以利用很少的信息(只有测试用例描述和测试结果)来确定这些自动化UI测试用例的优先级。因此,本文评估了17个“黑盒”测试用例优先级的方法,不依赖于源代码信息。其中,我们提出了一种新的TCP方法,动态重新优先级的测试用例时,检测到新的故障,通过应用和适应的最先进的框架,从总召回问题。在Lumpur Nexis自动化UI测试数据上的实验结果表明,我们的新方法(我们称之为EMPLOTOR)在故障检测率方面优于现有的最先进的方法,CPU开销可以忽略不计。
英文摘要:
Automated UI testing is an important component of the continuous integration process of software development. A modern web-based UI is an amalgam of reports from dozens of microservices written by multiple teams. Queries on a page that opens up another will fail if any of that page's microservices fails. As a result, the overall cost for automated UI testing is high since the UI elements cannot be tested in isolation. For example, the entire automated UI testing suite at LexisNexis takes around 30 hours (3-5 hours on the cloud) to execute, which slows down the continuous integration process. To mitigate this problem and give developers faster feedback on their code, test case prioritization techniques are used to reorder the automated UI test cases so that more failures can be detected earlier. Given that much of the automated UI testing is "black box" in nature, very little information (only the test case descriptions and testing results) can be utilized to prioritize these automated UI test cases. Hence, this paper evaluates 17 "black box" test case prioritization approaches that do not rely on source code information. Among these, we propose a novel TCP approach, that dynamically re-prioritizes the test cases when new failures are detected, by applying and adapting a state of the art framework from the total recall problem. Experimental results on LexisNexis automated UI testing data show that our new approach (which we call TERMINATOR), outperformed prior state of the art approaches in terms of failure detection rates with negligible CPU overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。