首页 | 官方网站   微博 | 高级检索  
     

基于蚁群算法的测试用例优先排序
引用本文:张卫祥,齐玉华,魏波,张敏,窦朝晖.基于蚁群算法的测试用例优先排序[J].计算机工程与科学,2020,42(2):241-249.
作者姓名:张卫祥  齐玉华  魏波  张敏  窦朝晖
作者单位:(北京跟踪与通信技术研究所,北京100094)
摘    要:测试用例优先排序技术通过优化测试用例的执行次序来提高软件测试的效率,是增强型软件测试和回归测试的重要研究课题。针对基于需求的测试用例优先排序问题,提出了一种基于蚁群算法的求解方法,采用不同的测试用例间距离及用例序列评价策略,给出了该方法的2种不同实现方式。首先,针对黑盒测试特点,设计了基于需求的一般性测试用例序列评价指标;其次,提出测试用例吸引度概念,基于测试用例吸引度定义了测试用例间的距离;然后,给出了信息素更新策略、最优解集更新策略、局部最优解突变策略等主要设计策略,分别实现了该方法基于距离和基于指标的2种实现方式。实验结果表明,该方法具有很好的全局寻优能力,整体效果上优于粒子群算法、遗传算法和随机测试。

关 键 词:软件测试  测试用例优先排序  蚁群算法  黑盒测试  回归测试  增强型软件  
收稿时间:2019-08-09
修稿时间:2019-10-21

Test case prioritization based on ant colony algorithm
ZHANG Wei-xiang,QI Yu-hua,WEI Bo,ZHANG Min,DOU Zhao-hui.Test case prioritization based on ant colony algorithm[J].Computer Engineering & Science,2020,42(2):241-249.
Authors:ZHANG Wei-xiang  QI Yu-hua  WEI Bo  ZHANG Min  DOU Zhao-hui
Affiliation:(Beijing Institute of Tracking and Telecommunications Technology,Beijing 100094,China)
Abstract:By optimizing the execution order of test cases, test case prioritization technology can improve the efficiency of software testing. It is an important research topic for enhanced software and regression testing. Aiming at the demand-based test case prioritization problem, a solution method based on ant colony algorithm is proposed. Based on different test case sequence evaluation strategies, two different implementations of the method are given. Firstly, according to the characteristics of black-box software testing, a general demand-based test case sequence evaluation index is designed. Secondly, the concept of test case aspiration is proposed, which was used to define the distance between test cases. Then, the main design strategies such as pheromone updating strategy, optimal solution set updating strategy, and local optimal solution mutation strategy are given. Finally, the two implementations (distance-based approach and index-based approach) are achieved. The experimental results show that this method had a good global search ability, and has better overall effect than other methods such as particle swarm algorithm, genetic algorithm and random testing.
Keywords:software testing  test case prioritization  ant colony algorithm  black-box testing  regression testing  enhanced software  
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号