An approach to generate software test data for a specific path automatically with genetic algorithm

We focus on software reliability with testing coverage, which will grow with increment of the coverage. We expect to improve quality of software testing with it automated. An approach of generating test data for a specific single path is presented in this paper, different from the predicate distance applied by most test data generators based on genetic algorithms. A similarity between the target path and execution path with sub path overlapped is designed as fitness value to evaluate the individuals of a population and drive GA to search the appropriate solutions. Several experiments are taken to examine the effectiveness of the designed fitness function, which evaluate performance of the function with the convergence ability and consumed time. Results show that the function performs well compared with other two typical fitness functions for specific paths.

[1]  James M. Bieman,et al.  Software reliability growth with test coverage , 2002, IEEE Trans. Reliab..

[2]  Jin-Cherng Lin,et al.  Automatic test data generation for path testing using GAs , 2001, Inf. Sci..

[3]  Irman Hermadi,et al.  GA-based multiple paths test data generator , 2008, Comput. Oper. Res..

[4]  Timo Mantere,et al.  Evolutionary software engineering, a review , 2005, Appl. Soft Comput..

[5]  John A. Clark,et al.  A search-based automated test-data generation framework for safety-critical systems , 2002 .

[6]  Alison Watkins,et al.  Evolutionary test data generation: a comparison of fitness functions , 2006, Softw. Pract. Exp..

[7]  Boris Beizer,et al.  Software Testing Techniques , 1983 .

[8]  Yoichi Hayashi,et al.  Neural expert system using fuzzy teaching input and its application to medical diagnosis , 1994 .

[9]  James A. Whittaker,et al.  What is software testing? And why is it so hard? , 2000 .

[10]  Boris Beizer,et al.  Software testing techniques (2. ed.) , 1990 .

[11]  Phil McMinn,et al.  Search‐based software test data generation: a survey , 2004, Softw. Test. Verification Reliab..

[12]  John H. Holland,et al.  Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence , 1992 .

[13]  Mario Jino,et al.  Automatic Test Data Generation for Program Paths Using Genetic Algorithms , 2002, Int. J. Softw. Eng. Knowl. Eng..

[14]  Bogdan Korel,et al.  Automated Software Test Data Generation , 1990, IEEE Trans. Software Eng..

[15]  Jon Edvardsson,et al.  A Survey on Automatic Test Data Generation , 2002 .

[16]  Hong Zhu,et al.  Software unit test coverage and adequacy , 1997, ACM Comput. Surv..