DocumentCode
2252890
Title
Swarm Intelligence-Based Test Data Generation for Structural Testing
Author
Mao, Chengying ; Yu, Xinxin ; Chen, Jifu
Author_Institution
Sch. of Software & Commun. Eng., Jiangxi Univ. of Finance & Econ., Nanchang, China
fYear
2012
fDate
May 30 2012-June 1 2012
Firstpage
623
Lastpage
628
Abstract
Automated generation of test data has always been a challenging problem in the area of software testing. Recently, meta-heuristic search (MHS) techniques have been proven to be a powerful tool to solve this difficulty. In the paper, we introduce an up-to-date search technique, i.e. particle swarm optimization (PSO), to settle this difficulty. After the basic idea of PSO is addressed, the overall framework of PSO-based test data generation is discussed. Here, the inputs of program under test are encoded into particles. During the search process, PSO algorithm is used to generate test inputs with the highest possible coverage rate. Once a set of test inputs is produced, test driver will seed them into program to run and collect coverage information simultaneously. Then, the value of fitness function for branch coverage can be calculated based on such information, which can direct the algorithm optimization in next iteration. In order to validate our method, five real-world programs are used for experimental analysis. The results show that PSO-based method outperforms other algorithms such as GA both in the coverage effect of test data and the convergence speed.
Keywords
automatic test pattern generation; automatic test software; convergence; iterative methods; particle swarm optimisation; program testing; search problems; PSO algorithm; PSO-based test data generation; automated test data generation; convergence speed; fitness function; metaheuristic search techniques; particle swarm optimization; program testing; software testing; structural testing; test driver; up-to-date search technique; Algorithm design and analysis; Convergence; Particle swarm optimization; Search problems; Software testing; Vectors; PSO; Test data generation; branch coverage; convergence speed; fitness function;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer and Information Science (ICIS), 2012 IEEE/ACIS 11th International Conference on
Conference_Location
Shanghai
Print_ISBN
978-1-4673-1536-4
Type
conf
DOI
10.1109/ICIS.2012.103
Filename
6211162
Link To Document