Journal of Computer Applications ›› 2016, Vol. 36 ›› Issue (9): 2497-2502.DOI: 10.11772/j.issn.1001-9081.2016.09.2497

Previous Articles     Next Articles

Pheromone updating strategy of ant colony algorithm for multi-objective test case prioritization

XING Xing, SHANG Ying, ZHAO Ruilian, LI Zheng   

  1. College of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029, China
  • Received:2016-02-02 Revised:2016-03-02 Online:2016-09-10 Published:2016-09-08
  • Supported by:
    This work is partially supported by the National Natural Science Foundation of China (61170082, 61472025), the New Century Talents Plan of Education Department (NCET-12-0757).

面向多目标测试用例优先排序的蚁群算法信息素更新策略

邢行, 尚颖, 赵瑞莲, 李征   

  1. 北京化工大学 信息科学与技术学院, 北京 100029
  • 通讯作者: 李征
  • 作者简介:邢行(1991-),女,河北武安人,硕士研究生,主要研究方向:软件测试;尚颖(1976-),女,吉林四平人,讲师,博士,CCF会员,主要研究方向:优化算法、软件测试;赵瑞莲(1964-),女,山西忻州人,教授,博士,CCF会员,主要研究方向:软件测试、软件可靠性;李征(1974-),男,河北清苑人,教授,博士,CCF高级会员,主要研究方向:软件测试、模型切片。
  • 基金资助:
    国家自然科学基金资助项目(61170082,61472025);教育部新世纪优秀人才计划项目(NCET-12-0757)。

Abstract: The Ant Colony Optimization (ACO) has slow convergence and is easily trapped in local optimum when solving Multi-Objective Test Case Prioritization (MOTCP). Thus, a pheromone updating strategy based on Epistatic-domain Test case Segment (ETS) was proposed. In the scheme, ETS existed in the test case sequence was selected as a pheromone updating scope, because ETS can determine the fitness value. Then, according to the fitness value increment between test cases and execution time of test cases in ETS, the pheromone on the trail was updated. In order to further improve the efficiency of ACO and reduce time consumption when ants visited test cases one by one, the end of ants' visiting was reset by estimating the length of ETS using optimized ACO. The experimental results show that compared with the original ACO and NSGA-Ⅱ, the optimized ACO has faster convergence and obtains better Pareto optimal solution sets in MOTCP.

Key words: Ant Colony Optimization (ACO), pheromone updating, Multi-Objective Test Case Prioritization (MOTCP), regression testing, Epistatic-Domain Test Case Segment (ETS)

摘要: 针对蚁群算法在求解多目标测试用例优先排序(MOTCP)时收敛速度缓慢、易陷入局部最优的问题,提出一种基于上位基因段(ETS)的信息素更新策略。利用测试用例序列中ETS可以决定适应度值的变化,选取ETS作为信息素更新范围,再根据ETS中测试用例间的适应度增量和测试用例的执行时间更新路径上的信息素值。为进一步提升蚁群算法求解效率、节省蚂蚁依次访问测试用例序列的时间,优化的蚁群算法还通过估算ETS长度重新设置蚂蚁遍历测试用例的搜索终点。实验结果表明,与优化前的蚁群算法及NSGA-Ⅱ相比,优化后的蚁群算法能提升求解MOTCP问题时的收敛速度,获得更优的Pareto解集。

关键词: 蚁群算法, 信息素更新, 多目标的测试用例优先排序, 回归测试, 上位基因段

CLC Number: