基于链接学习的交叉多目标测试用例选择
Multi-objective Test Case Selection Through Linkage Learning-based Crossover
摘要:
测试用例选择(TCS)旨在选择测试套件的一个子集来运行回归测试。选择通常基于过去的覆盖率和执行成本数据。研究人员已经成功地使用多目标进化算法(MOEAs),如NSGA-II及其变体,来解决这个问题。这些MOEA使用传统的交叉算子,通过遗传重组创建新的候选解决方案。最近的数值优化研究表明,使用机器学习(特别是链接年龄学习)可以进行更好的重组。受这一领域最新进展的启发,我们提出了一种新的NSGA-II变体,称为L2-NSGA,它使用链接学习来优化测试用例选择。特别是,我们使用一个无监督的聚类算法来推断有前途的模式之间的解决方案(子集的测试套件)。然后,在L2-NSGA的下一次迭代中使用这些模式来创建保留这些推断模式的解决方案。我们的研究结果表明,我们的定制使NSGA-II更有效的测试用例选择。由L2-NSGA生成的测试套件子集比文献中用于回归测试的MOEA生成的测试套件子集更便宜,并且检测到更多的故障。
英文摘要:
Test Case Selection (TCS) aims to select a subset of the test suite to run for regression testing. The selection is typically based on past coverage and execution cost data. Researchers have successfully used multi-objective evolutionary algorithms (MOEAs), such as NSGA-II and its variants, to solve this problem. These MOEAs use traditional crossover operators to create new candidate solutions through genetic recombination. Recent studies in numerical optimization have shown that better recombinations can be made using machine learning, in particular link-age learning. Inspired by these recent advances in this field, we propose a new variant of NSGA-II, called L2-NSGA, that uses linkage learning to optimize test case selection. In particular, we use an unsupervised clustering algorithm to infer promising patterns among the solutions (subset of test suites). Then, these patterns are used in the next iterations of L2-NSGA to create solutions that preserve these inferred patterns. Our results show that our customizations make NSGA-II more effective for test case selection. The test suite sub-sets generated by L2-NSGA are less expensive and detect more faults than those generated by MOEAs used in the literature for regression testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。