arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.11040cs.SE
收藏

缺陷(再)预测对软件测试的影响

The Impact of Defect (Re) Prediction on Software Testing

Yukasa Murakami, Yuta Yamasaki, Masateru Tsunoda, Akito Monden, Amjed Tahir, Kwabena Ebo Bennin, Koji Toda, Keitaro Nakasai

AI总结:

针对跨项目缺陷预测中Bandit Algorithm早期易选到不合适数据而遗漏缺陷的问题,提出测试后再预测并重新测试相关模块的方法,实验表明其可在不降低准确率的同时稳定减少缺陷遗漏。

摘要:

跨项目缺陷预测(CPDP)旨在使用来自外部项目的数据,因为同一项目可能无法获得历史数据。在CPDP中,决定使用某个特定历史项目来构建训练模型可能十分困难。为帮助做出这一决策,先前研究提出了一种基于Bandit Algorithm(BA,赌博机算法)的方法,用于选择最合适的学习项目。然而,这种BA方法可能会在BA的早期迭代期间(即软件测试的早期阶段)导致选择不合适的数据。选择不合适的模型会降低预测准确性,从而导致潜在的缺陷遗漏。本研究旨在改进BA方法,以减少缺陷遗漏,尤其是在测试早期阶段。一旦所有模块都已测试完成,就会对早期阶段测试过的模块进行再预测,并根据再预测结果对部分模块进行重新测试。为评估再预测和重新测试的影响,我们应用了五种BA方法,并使用8、16和32个OSS项目作为学习数据。结果表明,新提出的方法在不降低预测准确性的情况下,稳定地降低了缺陷遗漏的概率。

英文摘要:

Cross-project defect prediction (CPDP) aims to use data from external projects as historical data may not be available from the same project. In CPDP, deciding on a particular historical project to build a training model can be difficult. To help with this decision, a Bandit Algorithm (BA) based approach has been proposed in prior research to select the most suitable learning project. However, this BA method could lead to the selection of unsuitable data during the early iteration of BA (i.e., early stage of software testing). Selecting an unsuitable model can reduce the prediction accuracy, leading to potential defect overlooking. This study aims to improve the BA method to reduce defects overlooking, especially during the early testing stages. Once all modules have been tested, modules tested in the early stage are re-predicted, and some modules are retested based on the re-prediction. To assess the impact of re-prediction and retesting, we applied five kinds of BA methods, using 8, 16, and 32 OSS projects as learning data. The results show that the newly proposed approach steadily reduced the probability of defect overlooking without degradation of prediction accuracy.

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

↑