高级检索
冯俊池, 于磊. 测试数据生成中遗传算法的改进[J]. 计算机辅助设计与图形学学报, 2015, 27(10): 2008-2014.
引用本文: 冯俊池, 于磊. 测试数据生成中遗传算法的改进[J]. 计算机辅助设计与图形学学报, 2015, 27(10): 2008-2014.
Feng Junchi, Yu Lei. Genetic Algorithm Improvement in Test Data Generation[J]. Journal of Computer-Aided Design & Computer Graphics, 2015, 27(10): 2008-2014.
Citation: Feng Junchi, Yu Lei. Genetic Algorithm Improvement in Test Data Generation[J]. Journal of Computer-Aided Design & Computer Graphics, 2015, 27(10): 2008-2014.

测试数据生成中遗传算法的改进

Genetic Algorithm Improvement in Test Data Generation

  • 摘要: 为了提高测试数据自动生成的效率,提出基于改进遗传算法的多路径测试数据生成方法.首先将定向变异算子引入遗传算法,根据当前最优解产生变异个体,使变异向有利的方向进行,在保持种群多样性的同时提高局部搜索能力;然后综合考虑执行路径与目标路径间的路径相似程度以及谓词分支距离,设计了个体适应度评价函数,以有效地区分个体的优劣程度.针对基准程序进行实验,验证了该方法相对于传统方法的优越性.

     

    Abstract: To improve the efficiency of automatic test data generation, the multi-path test data generation method based on improved genetic algorithm is proposed. Firstly, the directed mutation operator was introduced into the genetic algorithm. The mutant was created according to the current best individual. It made individuals mutate in a good direction. The population diversity is maintained and the local search ability is improved. Secondly, the similarity degree of execution path and target path, and predicate branch distance were considered. An individual fitness evaluation function was designed. It distinguishes good individuals and bad individuals effectively. Experimental results on benchmarks show its superiority to the traditional methods.

     

/

返回文章
返回