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

计算机工程 ›› 2006, Vol. 32 ›› Issue (13): 196-197,205.

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

产生多条路径上测试用例的改进遗传算法

王元珍,顾 鹏   

  1. 华中科技大学计算机学院数据库与多媒体研究所,武汉 430074
  • 出版日期:2006-07-05 发布日期:2006-07-05

Improved Genetic Algorithm for Multiple Path Coverage Test Data Generation

WANG Yuanzhen, GU Peng   

  1. Institute of Database and Multimedia, School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan 430074
  • Online:2006-07-05 Published:2006-07-05

摘要: 测试用例的产生是软件测试过程中的重要环节,也是瓶颈之一。遗传算法作为一种高效的搜索寻优算法,近年来较多地用于自动化测试中产生测试用例。该文结合数据库管理系统源代码的特点,在基本遗传算法的基础上,结合“位权重”和“邻居影响”的思想,提出了用于产生多条路径上测试用例的改进遗传算法,并通过实验验证了该算法的有效性。

关键词: 华中科技大学计算机学院数据库与多媒体研究所,武汉 430074

Abstract: Test data generation is one of the major task within the software testing process as well as a bottleneck. As an effective search algorithm, genetic algorithm has been used for test data generation in many automatic testing processes recently. Considering the characteristics of DBMS source code and the genetic algorithm, this paper proposes an improved genetic algorithm for multiple test data generation for multiple path coverage, based on bit weight and neighborhood influence. Experimental results show that this algorithm is effective

Key words: Genetic algorithm; Test data; Multiple path coverage