Data generation for path testing

被引:60
作者
Mansour, N
Salame, M
机构
[1] Lebanese Amer Univ, Div Math & Comp Sci, Beirut 11022801, Lebanon
[2] Med Univ S Carolina, Dept Biometry & Epidemiol, Charleston, SC 29425 USA
关键词
genetic algorithms; path testing; simulated annealing; software testing; software quality; structural testing;
D O I
10.1023/B:SQJO.0000024059.72478.4e
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present two stochastic search algorithms for generating test cases that execute specified paths in a program. The two algorithms are: a simulated annealing algorithm (SA), and a genetic algorithm (GA). These algorithms are based on an optimization formulation of the path testing problem which include both integer- and real-value test cases. We empirically compare the SA and GA algorithms with each other and with a hill-climbing algorithm, Korel's algorithm (KA), for integer-value-input subject programs and compare SA and GA with each other on real-value subject programs. Our empirical work uses several subject programs with a number of paths. The results show that: (a) SA and GA are superior to KA in the number of executed paths, (b) SA tends to perform slightly better than GA in terms of the number of executed paths, and (c) GA is faster than SA; however, KA, when it succeeds in finding the solution, is the fastest.
引用
收藏
页码:121 / 136
页数:16
相关论文
共 30 条
[1]  
[Anonymous], 1989, GENETIC ALGORITHM SE
[2]  
[Anonymous], ENCY SOFTWARE ENG
[3]  
[Anonymous], 1979, Computers and Intractablity: A Guide to the Theoryof NP-Completeness
[4]  
Beizer B., 2003, Software Testing Techniques
[5]  
Clarke L. A., 1976, IEEE Transactions on Software Engineering, VSE-2, P215, DOI 10.1109/TSE.1976.233817
[6]  
DEBNATH N, 2000, SOFTW ENG APPL NETW, P123
[7]   CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION [J].
DEMILLO, RA ;
OFFUTT, AJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) :900-910
[8]   AN EVALUATION OF RANDOM TESTING [J].
DURAN, JW ;
NTAFOS, SC .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1984, 10 (04) :438-444
[9]   PARTITION TESTING DOES NOT INSPIRE CONFIDENCE [J].
HAMLET, D ;
TAYLOR, R .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1990, 16 (12) :1402-1411
[10]   SYMBOLIC TESTING AND DISSECT SYMBOLIC EVALUATION SYSTEM [J].
HOWDEN, WE .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1977, 3 (04) :266-278