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

计算机工程 ›› 2012, Vol. 38 ›› Issue (16): 57-60. doi: 10.3969/j.issn.1000-3428.2012.16.014

• 软件技术与数据库 • 上一篇    下一篇

基于遗传蚁群融合算法的测试用例最小化研究

申利民,高 洁   

  1. (燕山大学信息科学与工程学院,河北 秦皇岛 066004)
  • 收稿日期:2011-09-15 修回日期:2011-11-29 出版日期:2012-08-20 发布日期:2012-08-17
  • 作者简介:申利民(1962-),男,教授、博士生导师、CCF会员,主研方向:软件测试;高 洁,硕士研究生
  • 基金资助:
    国家自然科学基金资助项目(60873008);河北省自然科学基金资助项目(F2011203234)

Test Case Minimization Research Based on Combination Algorithm of Genetic and Ant Colony

SHEN Li-min, GAO Jie   

  1. (College of Information Science and Engineering, Yanshan University, Qinhuangdao 066004, China)
  • Received:2011-09-15 Revised:2011-11-29 Online:2012-08-20 Published:2012-08-17

摘要: 为缩减测试用例规模及降低回归测试成本,提出一种基于遗传蚁群融合算法的测试用例最小化方法。采用遗传算法进行遗传算子操作,其结果作为蚁群算法的初始信息素分布。使用蚁群算法进行蚂蚁路径转移和信息素的更新,得到最优解。实验结果证明,该方法能有效减小测试用例集规模,缩短运行时间,提高最小化效率。

关键词: 回归测试, 测试用例最小化, 覆盖度, 运行代价, 遗传算法, 蚁群算法, 融合算法

Abstract: To reduce the size of test case and the cost of regression test, the paper presents an algorithm of the combination of Genetic Algorithm(GA) and Ant Colony Algorithm(ACA). It uses the GA to realize genetic operator operation, the result as ACA for initialization pheromone distribution. It uses ACA to update the ant path and pheromone transfer, and obtains the optimal solution of the problem. Experimental results show that the method can effectively reduce the test suite, shorten operating time, and improve the effectiveness of minimization.

Key words: regression test, test case minimization, coverage, running cost, Genetic Algorithm(GA), Ant Colony Algorithm(ACA), combination algorithm

中图分类号: