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

基于改进细菌觅食算法的测试用例生成方法
引用本文:王曙燕,王瑞,孙家泽.基于改进细菌觅食算法的测试用例生成方法[J].计算机应用,2019,39(3):845-850.
作者姓名:王曙燕  王瑞  孙家泽
作者单位:西安邮电大学 计算机学院,西安,710121;西安邮电大学 计算机学院,西安,710121;西安邮电大学 计算机学院,西安,710121
基金项目:陕西省科技厅工业科技攻关项目(2018GY-014,2017GY-092);西安邮电大学研究生创新基金资助项目(CXJJ2017063)。
摘    要:针对测试用例自动化生成技术中效率较低的问题,尝试引入新的细菌觅食算法,并结合测试用例生成问题提出了一种基于细菌觅食算法的改进算法(IM-BFOA)。IM-BFOA首先采用Kent映射来增加细菌的初始种群和全局搜索的多样性,其次针对算法中趋化阶段的步长进行自适应设计,使其在细菌趋化过程中更加合理化,并通过实验仿真验证其合理性,最后根据被测程序构造适应度函数来加速测试数据的优化。实验结果表明,与遗传算法(GA)、粒子群优化(PSO)算法和标准细菌觅食优化算法(BFOA)相比,该算法在保证覆盖率的前提下,在迭代次数和运行时间方面都是较优的,可有效提高生成测试用例的效率。

关 键 词:测试用例生成  细菌觅食算法  Kent映射  自适应步长  适应度函数
收稿时间:2018-08-15
修稿时间:2018-09-04

Test case generation method based on improved bacterial foraging optimization algorithm
WANG Shuyan,WANG Rui,SUN Jiaze.Test case generation method based on improved bacterial foraging optimization algorithm[J].journal of Computer Applications,2019,39(3):845-850.
Authors:WANG Shuyan  WANG Rui  SUN Jiaze
Affiliation:School of Computer Science and Technology, Xi'an University of Posts and Telecommunications, Xi'an Shaanxi 710121, China
Abstract:Aiming at the low efficiency of test case automatic generation technology, an IMproved Bacterial Foraging Optimization Algorithm (IM-BFOA) was proposed with introduction of Knet map. Firstly, Kent map was used to increase the diversity of the initial population and global search of bacteria. Secondly, the step size of chemotaxis stage in the algorithm was adaptively designed to make it more rational in the process of bacterial chemotaxis. Finally, a fitness function was constructed according to the program under test to accelerate the optimization of test data. The experimental results show that compared with Genetic Algorithm (GA), Particle Swarm Optimization (PSO) algorithm and standard Bacterial Foraging Optimization Algorithm (BFOA), the proposed algorithm is the best in terms of iterations number and running time with the guarantee of coverage and has high efficiency of test case generation.
Keywords:test case generation                                                                                                                        Bacterial Foraging Optimization Algorithm (BFOA)                                                                                                                        Kent map                                                                                                                        adaptive step size                                                                                                                        fitness function
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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