arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2110.07443cs.SEcs.LG
收藏

DeepOrder:持续集成测试中测试用例优先级的深度学习

DeepOrder: Deep Learning for Test Case Prioritization in Continuous Integration Testing

Simula Research Laboratory(西穆拉研究院);Cisco Systems(思科系统公司)

Aizaz Sharif, Dusica Marijan, Marius Liaaen

摘要:

持续集成测试是现代软件工程生存周期中的重要步骤。测试优先级排序是通过在每个周期的早期阶段选择能够检测出故障的测试用例来提高持续集成测试效率的一种方法。由于持续集成测试产生大量的测试执行数据,测试历史是测试优先级排序中常用的工件。然而,现有的持续集成的测试优先级技术要么不能处理大量的测试历史,要么是使用有限数量的历史测试周期进行优化。我们发现,这样的限制,可以降低故障检测的有效性优先测试套件。这项工作介绍了DeepOrder,这是一种基于深度学习的模型,它基于回归机器学习。DeepOrder根据任何数量的先前测试周期的测试执行历史记录对测试用例进行排名。DeepOrder根据多个因素学习失败的测试用例,包括测试用例的持续时间和执行状态。我们的实验表明,深度神经网络,作为一个简单的回归模型,可以有效地用于测试用例优先级在持续集成测试。DeepOrder在时间有效性和故障检测有效性方面与行业实践和最先进的方法进行了比较。结果表明,DeepOrder在这两个指标方面优于行业实践和最先进的测试优先级排序方法。

英文摘要:

Continuous integration testing is an important step in the modern software engineering life cycle. Test prioritization is a method that can improve the efficiency of continuous integration testing by selecting test cases that can detect faults in the early stage of each cycle. As continuous integration testing produces voluminous test execution data, test history is a commonly used artifact in test prioritization. However, existing test prioritization techniques for continuous integration either cannot handle large test history or are optimized for using a limited number of historical test cycles. We show that such a limitation can decrease fault detection effectiveness of prioritized test suites. This work introduces DeepOrder, a deep learning-based model that works on the basis of regression machine learning. DeepOrder ranks test cases based on the historical record of test executions from any number of previous test cycles. DeepOrder learns failed test cases based on multiple factors including the duration and execution status of test cases. We experimentally show that deep neural networks, as a simple regression model, can be efficiently used for test case prioritization in continuous integration testing. DeepOrder is evaluated with respect to time-effectiveness and fault detection effectiveness in comparison with an industry practice and the state of the art approaches. The results show that DeepOrder outperforms the industry practice and state-of-the-art test prioritization approaches in terms of these two metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑