• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2010, Vol. 32 ›› Issue (5): 51-53.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    下一篇

基于遗传-蚁群混合算法的软件测试数据自动生成方法

李克文,张自鲁   

  1. (中国石油大学(华东)计算机与通信工程学院,山东 东营 257061)
  • 收稿日期:2009-09-03 修回日期:2009-12-10 出版日期:2010-04-28 发布日期:2010-05-11
  • 通讯作者: 李克文 E-mail:likw@upc.edu.cn
  • 作者简介:李克文(1969),男,黑龙江齐齐哈尔人,硕士,副教授,研究方向为智能计算、软件质量与可靠性、计算机网络服务质量;张自鲁,硕士生,研究方向为软件质量与可靠性。

A Method for the Automatic Test Data Generation Based on  the GeneticAnt Colony Hybrid Algorithm

LI Kewen,ZHANG Zilu   

  1. (School of Computer and Communication Engineering,China University of Petroleum,Dongying 257061,China)
  • Received:2009-09-03 Revised:2009-12-10 Online:2010-04-28 Published:2010-05-11
  • Contact: LI Kewen E-mail:likw@upc.edu.cn

摘要:

自动化测试可以有效地提高软件测试效率,降低软件开发成本。测试数据自动生成是自动化测试过程中一个非常重要的环节。以路径覆盖为准则,本文提出一种利用遗传蚁群混合算法来对程序输入域进行搜索的方法,进而生成满足需要的测试数据。经过实验验证,该算法可以有效地生成满足覆盖准则并且分布多样的测试数据。

关键词: 自动化测试, 路径覆盖, 混合算法

Abstract:

Automatic test can improve the efficiency of software test and reduce the cost of development. Automatic generation of the test data is a very important part in the automated test process. Based on the path coverage criterion, this paper uses the GeneticAnt Colony Mixed Algorithm to search the input domain in order to generate the test data which meet the coverage criterion. The experimental results show the mixed algorithm generates test data effectively.

Key words: 自动化测试;路径覆盖;混合算法

中图分类号: