Automatic Test Data Generation for Data Flow Testing Using Particle Swarm Optimization

被引:29
作者
Nayak, Narmada [1 ]
Mohapatra, Durga Prasad [1 ]
机构
[1] Natl Inst Technol Rourkela, Dept Comp Sci & Engn, Rourkela 769008, Orissa, India
来源
CONTEMPORARY COMPUTING, PT 2 | 2010年 / 95卷
关键词
Software testing; Data flow testing; Genetic algorithm; Particle swarm optimization; SOFTWARE TEST DATA;
D O I
10.1007/978-3-642-14825-5_1
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Automatic test case generation is a major problem in software testing. Evolutionary structural testing is an approach to automatically generate test cases that uses a Genetic Algorithm (GA) which is guided by the data How dependencies in the program to search for test data to cover the clef-use association. The Particle Swarm Optimization (PSO) approach is a swarm intelligence technique which can be used to generate test data automatically. We have proposed an algorithm to generate test cases using PSO for data flow testing. We have simulated both the evolutionary and swarm intelligence techniques. From the experiments it has been observed that PSO outperforms GA in 100% clef-use coverage percentage.
引用
收藏
页码:1 / 12
页数:12
相关论文
共 14 条
[1]  
Agrawal K., 2010, ISEC MYS IND FEBR
[2]   PROGRAM DATA FLOW ANALYSIS PROCEDURE [J].
ALLEN, FE ;
COCKE, J .
COMMUNICATIONS OF THE ACM, 1976, 19 (03) :137-147
[3]  
Eberhart R., 1995, MHS 95, P39, DOI [DOI 10.1109/MHS.1995.494215, 10.1109/MHS.1995.494215]
[4]  
Girgis MR, 2005, J UNIVERS COMPUT SCI, V11, P898
[5]   Automatic structural testing using genetic algorithms [J].
Jones, BF ;
Sthamer, HH ;
Eyres, DE .
SOFTWARE ENGINEERING JOURNAL, 1996, 11 (05) :299-306
[6]  
Kennedy J, 1995, 1995 IEEE INTERNATIONAL CONFERENCE ON NEURAL NETWORKS PROCEEDINGS, VOLS 1-6, P1942, DOI 10.1109/icnn.1995.488968
[7]  
Li A., 2009, WORLD C SOFTW ENG
[8]   Generating software test data by evolution [J].
Michael, CC ;
McGraw, G ;
Schatz, MA .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2001, 27 (12) :1085-1110
[9]  
Pargas Roy P, 1999, Journal of Software testing, Verification and Reliability
[10]  
PEI M, 1994, AUTOMATED SOFTWARE T