摘要
测试用例排序技术通过在测试过程中确定用例执行的先后次序来增加早期揭示缺陷的可能性.本文在用例排序过程中动态提取关键用例,在测试用例运行被测程序后,得到各候选用例(待排序用例)覆盖程序新分支情况以及改善用例覆盖程序分支的均衡程度,进而计算候选用例的权重使得关键用例的权重增加,优先进行排序.实验结果表明,与现有方法比较,所提方法在用例排序时间与缺陷检测方面体现出较好的性能.
Test case sorting increases the possibility of early discovery of defects by determining the execution order of test cases in the testing process.In the paper,the key test cases are dynamically extracted during the test case sorting pro⁃cess.After test cases running the program under test,the candidate test cases(test cases to be sorted)covering the new branches of the program and improving the balance of test case covering program branches are obtained,and then the weight of the candidate test cases are calculated so that the weight of key test cases is increased,and prioritize them.Com⁃paring with existing methods,experimental results show that the proposed method shows better performance in the time con⁃sumed and fault detection of test case sorting.
作者
范书平
万里
姚念民
张岩
马宝英
FAN Shu-ping;WAN Li;YAO Nian-min;ZHANG Yan;MA Bao-ying(School of Computer and Information Technology,Mudanjiang Normal University,Mudanjiang,Heilongjiang 157012,China;Department of Intelligence and Computing,Tianjin University,Tianjin 300350,China;School of Computer Science and Technology,Dalian University of Technology,Dalian,Liaoning 116024,China;School of Information Engineering,Suqian University,Suqian,Jiangshu 223800,China;School of Health Management,Mudanjiang Medical University,Mudanjiang,Heilongjiang 157011,China)
出处
《电子学报》
EI
CAS
CSCD
北大核心
2022年第1期149-156,共8页
Acta Electronica Sinica
基金
国家自然科学基金(No.2018AAA0100300)
黑龙江省自然科学基金(No.LH2021F055)
牡丹江市应用技术研究与开发计划(No.HT2020JG049)
大连市科技创新项目(No.2018J12GX045)。
关键词
回归测试
测试用例排序
用例偏离度
缺陷检测
分支覆盖
regression testing
test case sorting
use case deviation
fault detection
branches coverage