arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13786cs.SEcs.AI
收藏

面向可解释测试用例优先级排序的学习排序模型

Towards Explainable Test Case Prioritisation with Learning-to-Rank Models

University of Córdoba(科尔多瓦大学);Chalmers University of Technology(查尔姆斯理工大学)

Aurora Ramírez, Mario Berrios, José Raúl Romero, Robert Feldt

AI总结:

本文探讨学习排序模型用于测试用例优先级排序时的可解释性挑战,分析全局与局部解释需求及TCP特性影响,并通过初步实验发现解释随预测和相对排名变化。

摘要:

测试用例优先级排序(TCP)是回归测试中的一项关键任务,旨在确保软件在演化过程中的质量。机器学习已成为实现该目标的常见方式。特别是,学习排序(LTR)算法提供了一种对测试用例进行排序和确定优先级的有效方法。然而,它们的使用在可解释性方面带来了挑战,既包括模型层面的全局可解释性,也包括针对特定结果的局部可解释性。在此,我们提出并讨论了需要不同解释的场景,以及TCP的特殊性(随时间推移的多次构建、测试用例和测试套件的变体等)如何影响这些解释。我们进行了一项初步实验来分析解释的相似性,结果表明,解释不仅因测试用例特定的预测而异,还因相对排名而异。

英文摘要:

Test case prioritisation (TCP) is a critical task in regression testing to ensure quality as software evolves. Machine learning has become a common way to achieve it. In particular, learning-to-rank (LTR) algorithms provide an effective method of ordering and prioritising test cases. However, their use poses a challenge in terms of explainability, both globally at the model level and locally for particular results. Here, we present and discuss scenarios that require different explanations and how the particularities of TCP (multiple builds over time, test case and test suite variations, etc.) could influence them. We include a preliminary experiment to analyse the similarity of explanations, showing that they do not only vary depending on test case-specific predictions, but also on the relative ranks.

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

↑