DocumentCode
1329976
Title
Automatic structural testing using genetic algorithms
Author
Jones, B.F. ; Sthamer, H.-H. ; Eyres, D.E.
Author_Institution
Dept. of Comput. Studies, Glamorgan Univ., Pontypridd, UK
Volume
11
Issue
5
fYear
1996
fDate
9/1/1996 12:00:00 AM
Firstpage
299
Lastpage
306
Abstract
Genetic algorithms have been used to generate test sets automatically by searching the domain of the software for suitable values to satisfy a predefined testing criterion. These criteria have been set by the requirements for test data set adequacy of structural testing, such as obtaining full branch coverage and controlling the number of iterations of a conditional loop. This technique has been applied successfully to several problems, varying in complexity from a quadratic equation solver to a generic sort module that comprises several procedures. In these cases, full branch coverage was obtained. Genetic algorithms could be applied to approaches other than structural testing, provided that the goal of the testing is clearly defined, and a fitness function which relates to this goal can be devised to give a single numeric value for the fitness. The quality of the test data is enhanced by designing the fitness function to generate data close to a subdomain boundary where the likelihood of revealing an error is higher
Keywords
automatic test software; genetic algorithms; program control structures; program debugging; program testing; automatic structural testing; conditional loop; fitness function; full branch coverage; generic sort module; genetic algorithms; program testing; quadratic equation solver; test data quality; test data set adequacy; test set generation;
fLanguage
English
Journal_Title
Software Engineering Journal
Publisher
iet
ISSN
0268-6961
Type
jour
Filename
533215
Link To Document