为了提高回归测试用例集的测试效率和有效性,提出由需求得到回归测试用例排序技术及其实现算法。由需求得到回归测试用例排序技术,将与软件需求相关的需求描述度、需求实现复杂度、需求稳定度和需求覆盖度等因素应用于测试用例排序,以缺陷检测加权平均百分比作为度量标准。通过实验,比较排序后用例和未排序用例缺陷检测情况,实验结果表明该技术排序后的回归测试用例集,能够尽早地发现更多的软件错误,有效提高回归测试效率,保证软件质量。
In order to improve the efficiency and validity of regression testing,test case prioritization method based on software requirement for regression testing and prioritization algorithm is proposed in this paper. Four factors related software requirement are taken into account in the method for ranking test cases, the factors are requirement description, requirement implementation complexity, requirement stability and requirement coverage. In this paper, average of the percentage of faults detected is used as a measurement criterion. Compari- son of prioritized and non prioritized test case, the experimental results show that, the efficiency of regression testing is improved and the better software quality is achieved by using this method.