TEST DATA GENERATION FOR SOFTWARE TESTING BASED ON QUANTUM-INSPIRED GENETIC ALGORITHM

被引:2
作者
Mao, Chengying [1 ]
Yu, Xinxin [1 ]
机构
[1] Jiangxi Univ Finance & Econ, Sch Software & Commun Engn, Nanchang 330013, Jiangxi, Peoples R China
基金
中国国家自然科学基金;
关键词
Software testing; test data; quantum-inspired genetic algorithm; branch coverage;
D O I
10.1142/S1469026813500041
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The quality of test data has an important impact on the effect of software testing, so test data generation has always been a key task for finding the potential faults in program code. In structural testing, the primary goal is to cover some kinds of structure elements with some specific inputs. Search-based test data generation provides a rational way to handle this diffcult problem. In the past, some well-known meta-heuristic search algorithms have been successfully utilized to solve this issue. In this paper, we introduce a variant of genetic algorithm (GA), called quantum-inspired genetic algorithm (QIGA), to generate the test data with stronger coverage ability. In this new algorithm, the traditional binary bit is replaced by a quantum bit (Q-bit) to enlarge the search space so as to avoid falling into local optimal solution. On the other hand, some other strategies such as quantum rotation gate and catastrophe operation are also used to improve algorithm efficiency and quality of test data. In addition, experimental analysis on eight real-world programs is performed to validate the effectiveness of our method. The results show that QIGA-based method can generate test data with higher coverage in much smaller convergence generations than GA-based method. More importantly, our proposed method is more robust for algorithm parameter change.
引用
收藏
页数:21
相关论文
共 43 条
[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]  
Ammann P., 2008, INTRO SOFTWARE TESTI, P149
[4]  
[Anonymous], 1995, THESIS
[5]   Search Based Software Testing for Software Security: Breaking Code to Make it Safer [J].
Antoniol, Giuliano .
ICSTW 2009: IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION, AND VALIDATION WORKSHOPS, 2009, :87-100
[6]   Search based software testing of object-oriented containers [J].
Arcuri, Andrea ;
Yao, Xin .
INFORMATION SCIENCES, 2008, 178 (15) :3075-3095
[7]  
Ayari K, 2007, GECCO 2007: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, P1074
[8]  
Baresel A., 2002, P 4 ANN C GENETIC EV, P1329
[9]  
Beizer B, 1990, SOFTWARE TESTING TEC
[10]   A case study in branch testing automation [J].
Bertolino, A ;
Mirandola, R ;
Peciola, E .
JOURNAL OF SYSTEMS AND SOFTWARE, 1997, 38 (01) :47-59