一句话:提出基于网页分段的 UI 测试用例多目标优先级排序方法,无需源码,用进化算法优化元素覆盖。
UI 回归测试需同时验证多个微服务,耗时且难以获取源码,传统测试用例优先级排序(TCP)方法依赖源码信息而失效。本文提出一种面向 UI 测试的多目标 TCP 方法:利用网页分段技术,以四种页面元素覆盖准则为目标,采用 AGE-MOEA 与 NSGA-II 等进化搜索算法对测试用例排序,全程无需源码。作者构建了包含 11 个测试套件的新数据集,并与多种 TCP 方法对比。实验表明,该方法在 APFD 与 APFDc 上显著优于现有方法,最高分别达 87.8% 与 79.2%。论文贡献包括将网页分段引入 TCP、发布新数据集及实证比较。
Regression testing of software is a crucial but time-consuming task, especially in the context of user interface (UI) testing where multiple microservices must be validated simultaneously. Test case prioritization (TCP) is a cost-efficient solution to address this by scheduling test cases in an execution order that maximizes an objective function, generally aimed at increasing the fault detection rate. While several techniques have been proposed for TCP, most rely on source code information which is usually not available for UI testing. In this paper, we introduce a multi-objective optimization approach to prioritize UI test cases, using evolutionary search algorithms and four coverage criteria focusing on web page elements as objectives for the optimization problem. Our method, which does not require source code information, is evaluated using two evolutionary algorithms (AGE-MOEA and NSGA-II) and compared with other TCP methods on a self-collected dataset of 11 test suites. The results show that our approach significantly outperforms other methods in terms of Average Percentage of Faults Detected (APFD) and APFD with Cost (APFDc), achieving the highest scores of 87.8% and 79.2%, respectively. We also introduce a new dataset and demonstrate the significant improvement of our approach over existing ones via empirical experiments. The paper’s contributions include the application of web page segmentation in TCP, the construction of a new dataset for UI TCP, and empirical comparisons that demonstrate the improvement of our approach.