作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (2): 203-205. doi: 10.3969/j.issn.1000-3428.2009.02.071

• 人工智能及识别技术 • 上一篇    下一篇

基于自适应遗传算法的路径测试数据生成

李 军,李艳辉,彭存银   

  1. (暨南大学珠海学院计算机系,珠海 519070)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-01-20 发布日期:2009-01-20

Path Test Data Generation Based on Adaptive Genetic Algorithm

LI Jun, LI Yan-hui, PENG Cun-yin   

  1. (Dept. of Computer, Zhuhai School, Jinan University, Zhuhai 519070)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-01-20 Published:2009-01-20

摘要: 针对简单遗传算法容易产生早熟收敛的问题,提出一种自适应遗传算法,用以自动生成测试数据。通过把程序插装法与该遗传算法相结合,实现了路径测试数据的自动生成。将三角形分类程序作为实例对其进行性能测试,实验结果表明,基于自适应遗传算法的测试数据自动生成系统能自动改变选择概率和交叉概率,提高了自动生成测试数据的效率。

关键词: 软件测试, 路径测试数据, 自适应遗传算法

Abstract: Aiming at the problem that the simple genetic algorithm is easy to produce premature convergence, an Adaptive Genetic Algorithm(AGA) is presented to automatically generate test data. The method of program insert is integrated with AGA to implement the automatic generating of path test data. The performance of AGA is tested by using a program of triangle classifier as an example, and experimental results show this automatic generating system of test data based on AGA can automatically change the probability of selection and probability of mutation, which promotes the efficiency of automatic generating test data.

Key words: software test, path test data, Adaptive Genetic Algorithm(AGA)