Computer Engineering and Applications ›› 2010, Vol. 46 ›› Issue (29): 58-62.DOI: 10.3778/j.issn.1002-8331.2010.29.017

• 研发、设计、测试 • Previous Articles     Next Articles

Approach for optimizing test suite based on ACO

REN Hong-li,ZHANG Wei,LIANG Jia-an   

  1. School of Information Technology,Jiangnan University,Wuxi,Jiangsu 214122,China
  • Received:2009-12-31 Revised:2010-05-25 Online:2010-10-11 Published:2010-10-11
  • Contact: REN Hong-li

基于蚁群算法的测试用例集优化方法

任洪丽,张 伟,梁家安   

  1. 江南大学 信息工程学院,江苏 无锡 214122
  • 通讯作者: 任洪丽

Abstract: In order to meet the test requirements with the minimal test case,a method that divides test suite completely is presented,and then the test suite is simplified with ant colony algorithm.Firstly,test suite is divided into several disjoint subsets,whose elements are equivalent,according to the inter-relationship among the test requirements.Secondly,one test case is selected from each subset to form a new collection that has been abandoned some of the redundancy test cases.Then the test suite is optimized using ant colony algorithm.Finally,through the experiment,it is verified that the method proposed can produce more optimal test suite compared to the original method.

摘要: 为了达到以尽可能少的测试用例满足测试需求的目的,提出了一种先对测试用例集进行完全划分,再利用蚁群算法对其优化的方法。首先根据测试需求间的相互关系,将最初的测试用例集划分成多个互不相交的子集,每个子集中的元素为等价测试用例;其次从各个子集中选取一个测试用例,组成一个新的集合,该集合已经摒弃了部分冗余测试用例;然后利用蚁群算法对测试用例集进行最优的简化;最后通过实例证明了该方法可以产生比原有的方法更优的测试用例集。

CLC Number: