首页 | 本学科首页   官方微博 | 高级检索  
     

基于蚁群算法的软件测试数据自动生成
引用本文:傅博.基于蚁群算法的软件测试数据自动生成[J].计算机工程与应用,2007,43(12):97-99,211.
作者姓名:傅博
作者单位:北京航空航天大学,系统工程系,北京,100083
摘    要:提出了一种基于蚁群算法的测试数据自动生成方法。该方法采用位串形式编码,实现了被测程序输入空间到蚂蚁路径网络的映射模型。根据程序插装函数定义的路径信息素轨迹强度,蚂蚁进行群体协作搜索最佳路径,生成测试数据。在基本蚁群算法基础上,通过引入变异算子和自适应挥发系数,提高了蚂蚁路径的多样性,克服了早熟停滞的缺陷。和模拟退火遗传算法进行了对比实验研究,结果表明了该方法的可行性,生成测试数据的效率优于模拟退火遗传算法。

关 键 词:软件测试  蚁群算法  遗传算法  测试数据自动生成
文章编号:1002-8331(2007)12-0097-03
修稿时间:2006-08

Automated software test data generation based on ant colony algorithm
FU Bo.Automated software test data generation based on ant colony algorithm[J].Computer Engineering and Applications,2007,43(12):97-99,211.
Authors:FU Bo
Affiliation:Department of System Engineering,Beijing University of Aeronautics and Astronautics,Beijing 100083 ,China
Abstract:This study proposes a kind of automatic test data generation method based on ant colony algorithm. By using bit coding,a model from input domain of the software under test to ant paths of the ant colony algorithm is established.Pheromone trails of the paths depend on branch functions of program instrumentation.According to the pheromone trails,ants cooperate to find the best path to generate software test data.To improve ant path diversity and decrease the degrees of the precocity and stagnation,a mutation operator and an adaptive pheromone evaporation gene are applied.Comparative experiments are performed between ant colony algorithm and Simulated Annealing Genetic Algorithm(SAGA).Experimental results indicate that ant colony algorithm outperforms SAGA in efficiency of the test data generation.
Keywords:software testing  ant colony algorithm  genetic algorithm  automatic test data generation
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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