Generating Test Data for Structural Testing Based on Ant Colony Optimization

被引:15
作者
Mao, Chengying [1 ,2 ]
Yu, Xinxin [1 ]
Chen, Jifu [1 ]
Chen, Jinfu [3 ]
机构
[1] Jiangxi Univ Finance & Econ, Sch Software & Commun Engn, Nanchang 330013, Peoples R China
[2] Wuhan Univ, State Key Lab Software Engn, Wuhan 430072, Peoples R China
[3] Jiangsu Univ, Sch Comp Sci & Telecom Engn, Zhenjiang, Jiangsu 212013, Peoples R China
来源
2012 12TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC) | 2012年
基金
中国国家自然科学基金;
关键词
Test data generation; ant colony optimization; branch coverage; fitness function; meta-heuristic search;
D O I
10.1109/QSIC.2012.12
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software testing has been always viewed as an effective way to ensure software quality both in academic and industry. In fact, the quality of test data set plays a critical role in the success of software testing activity. According to the basic line of search-based software testing, we introduced ant colony optimization (ACO) to settle this problem and proposed a framework of ACO-based test data generation. In our algorithm TDG_ACO, the local transfer rule, global transfer rule and pheromone update rule are re-defined to handle the continuous input domain searching. Meanwhile, the most widely-used coverage criterion, i.e., branch coverage, is adopted to construct fitness function. In order to validate the feasibility and effectiveness of our method, five real-world programs are utilized to perform experimental analysis. The results show that our algorithm outperforms the existing simulated annealing and genetic algorithm in most cases.
引用
收藏
页码:98 / 101
页数:4
相关论文
共 11 条
[1]   Observations in using parallel and sequential evolutionary algorithms for automatic software testing [J].
Alba, Enrique ;
Chicano, Francisco .
COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) :3161-3183
[2]   A Systematic Review of the Application and Empirical Investigation of Search-Based Test Case Generation [J].
Ali, Shaukat ;
Briand, Lionel C. ;
Hemmati, Hadi ;
Panesar-Walawege, Rajwinder K. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2010, 36 (06) :742-762
[3]  
[Anonymous], INTRO SOFTWARE TESTI
[4]  
Bouchachia Abdelhamid, 2007, 7th International Conference on Hybrid Intelligent Systems, HIS 2007, P84
[5]   Automated software testing using a metaheuristic technique based on Tabu Search [J].
Díaz, E ;
Tuya, J ;
Blanco, R .
18TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2003, :310-313
[6]   THE AUTOMATIC-GENERATION OF TEST DATA [J].
INCE, DC .
COMPUTER JOURNAL, 1987, 30 (01) :63-69
[7]   Automatic structural testing using genetic algorithms [J].
Jones, BF ;
Sthamer, HH ;
Eyres, DE .
SOFTWARE ENGINEERING JOURNAL, 1996, 11 (05) :299-306
[8]   AUTOMATED SOFTWARE TEST DATA GENERATION [J].
KOREL, B .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1990, 16 (08) :870-879
[9]  
McMinn P., 2011, 2011 IEEE Fourth International Conference on Software Testing, Verification and Validation Workshops (ICSTW), P153, DOI 10.1109/ICSTW.2011.100
[10]   An automated framework for structural test-data generation [J].
Tracey, N ;
Clark, J ;
Mander, K ;
McDermid, J .
13TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 1998, :285-288