arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1311.4176cs.SE
收藏

ComReg:一种用于回归测试的测试用例优先级排序的复杂网络方法

ComReg: A Complex Network Approach to Prioritize Test Cases for Regression Testing

Imrul Kayes, Jacob Chakareski

摘要:

执行回归测试是为了确保软件某个部分的变更不会影响软件的其他部分。执行所有现有的测试用例是重新建立这种信心的最佳方式。然而,回归测试是一个昂贵的过程-可能没有足够的资源(例如,时间、劳动力),以允许重新执行所有测试用例。回归测试优先级技术试图根据一些标准对回归测试套件进行重新排序,以便更早地执行最高优先级的测试用例。在这项研究中,我们希望优先级测试用例的回归测试的依赖网络的基础上的故障。在软件测试中,一些故障是其他故障(引导故障)的后果是很常见的。此外,当且仅当前导故障已被移除时,相关故障才能被移除。我们的目标是确定测试用例的优先级,以便在系统测试阶段暴露主要故障(故障依赖网络中最核心的故障)的测试用例在回归测试中首先执行。我们提出了ComReg,一个基于故障依赖网络的测试用例优先级排序技术。我们将故障依赖网络建模为有向图,并识别出主要故障,以确定回归测试用例的优先级。我们使用的中心性聚合技术,认为六个网络代表中心性指标,以确定故障依赖网络中的领先故障。我们还讨论了使用故障社区从优先回归测试套件中选择任意百分比的测试用例。我们进行了案例研究,评估所提出的方法的有效性和适用性。

英文摘要:

Regression testing is performed to provide confidence that changes in a part of software do not affect other parts of the software. An execution of all existing test cases is the best way to re-establish this confidence. However, regression testing is an expensive process---there might be insufficient resources (e.g., time, workforce) to allow for the re-execution of all test cases. Regression test prioritization techniques attempt to re-order a regression test suite based on some criteria so that highest priority test cases are executed earlier. In this study, we want to prioritize test cases for regression testing based on the dependency network of faults. In software testing, it is common that some faults are consequences of other faults (leading faults). Moreover, dependent faults can be removed if and only if the leading faults have been removed. Our goal is to prioritize test cases so that test cases that exposed leading faults (the most central faults in the fault dependency network) in the system testing phase, are executed first in regression testing. We present ComReg, a test case prioritization technique based on the dependency network of faults. We model a fault dependency network as a directed graph and identify leading faults to prioritize test cases for regression testing. We use a centrality aggregation technique which considers six network representative centrality metrics to identify leading faults in the fault dependency network. We also discuss the use of fault communities to select an arbitrary percentage of the test cases from a prioritized regression test suite. We conduct a case study that evaluates the effectiveness and applicability of the proposed method.

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

↑