Data Generation for Path Testing

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 inc...

Full description

Saved in:
Bibliographic Details
Published inSoftware quality journal Vol. 12; no. 2; pp. 121 - 136
Main Authors Mansour, Nashat, Salame, Miran
Format Journal Article
LanguageEnglish
Published Dordrecht Springer Nature B.V 01.06.2004
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary: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.
Bibliography:ObjectType-Article-1
SourceType-Scholarly Journals-1
content type line 14
ISSN:0963-9314
1573-1367
DOI:10.1023/B:SQJO.0000024059.72478.4e