Abstract
This paper examines the use of genetic algorithms (GAs) in generating sets of input data to use for software testing. The aim is to produce test sets which maximise coverage of the software using a given metric, whilst minimising the size of the sets.
Using the well known triangle program as an example, a representation is described which allows the GA to learn the number of test cases in a set. This is done by adding a set of flags to the encoding, which determine whether or not a gene is expressed (in this case, whether a test case is used as input to the program). A simple mechanism for biassing the search towards longer or shorter sets is described.
A study is then made of the effect of changing chromosome lengths and initialisation procedures, and the relationship that this has to the quality and size of the test sets evolved, in order to assess the scalability of the evolutionary approach to “real-world” problems, and the factors that would need to be taken into consideration when designing systems for the automatic generation of test cases.
Preview
Unable to display preview. Download preview PDF.
References
Chandra A., Iyengar I., Jameson D., Jawelekar R., Nair I., Rosen B., Mullen M., Yoon J., Armoni R., Geist D., & Wolfsthal Y. 1995 “AVPGEN — A Test Generator for Architecture Verification” IEEE Transactions on very Large Scale Integration Systems Vol. 3 no. 2 June 1995.
Harvey I., 1991 “Species Adaptation Genetic Algorithms: A Basis for a Continuing SAGA” pp 346–354 in “Towards A Practice of Autonomous Systems Proceedings of 1st European Conference on Artificial Life” ed. Varela & Bourgine, MIT Press 1992
Levenick J.R., 1991 “inserting Introns Improves Genetic Algorithm Success Rate; Taking a Cue from Biology” pp 123–127 in “Proc. 4th Int'n'l Conf. on Genetic Algorithms” ed. s belew & Booker Morgan Kaufmann.
Marick B. 1991 “Experience with the cost of different coverage goals for testing” Pacific Northwest Software Quality Conference, October 1991. Available via ftp from cs.uiuc.edu:/pub/testing/experience.ps.Z
Marick B. 1992 “The Generic Coverage Tool User's Guide”. Available by anonymous ftp from cs.uiuc.edu:/pub/testing and various mirror sites.
Radcliffe N.J. (1992) “Genetic Set ‘Recombination” in “Foundations of Genetic Algorithms 2” Whitley (ed), pp 203–219. Morgan Kaufmann (San Mateo CA).
Radcliffe N.J. (1993) “Genetic Set Recombination & its Application to Neural Network Topology Optimisation” pp 67–90 Neural Computing & Applications Vol:1. Springer Verlag.
Smith, J.E & Fogarty T.C. 1995. “An Adaptive Poly-Parental Recombination Strategy” pp48–61 “Evolutionary Computing” Proceedings of 1995 AISB Workshop, ed. T.C. Fogarty, Springer Verlag.
Smith, J.E. & Fogarty T.C. 1996a “Self Adaptation of mutation Rates in a Steady State Genetic Algorithm” To appear in proceedings of IEEE International Conference Evolutionary Computing ICEC'96.
Smith, J.E & Fogarty T.C. 1996b. “Recombination Strategy Adaptation via Evolution of Gene Linkage” To appear in proceedings of IEEE International Conference Evolutionary Computing ICEC'96.
Syswerda G. 1992 “Simulated Crossover in Genetic Algorithms” pp 239–255, “foundations of Genetic Algorithms 2” whitley, D. (ed) Morgan Kaufmann.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1996 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Smith, J., Fogarty, T.C. (1996). Evolving software test data — GA's learn self expression. In: Fogarty, T.C. (eds) Evolutionary Computing. AISB EC 1996. Lecture Notes in Computer Science, vol 1143. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0032779
Download citation
DOI: https://doi.org/10.1007/BFb0032779
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-61749-5
Online ISBN: 978-3-540-70671-7
eBook Packages: Springer Book Archive