Abstract

AUTOMATED TEST DATA GENERATION USING GENETIC ALGORITHMS

Pankaj Saxena, Vinay Singh

032-038

Vol: 2, Issue: 1, 2012

In software testing, it is often desirable to find test inputs that can handle specific features of the program. To find these inputs by hand is extremely time-consuming, especially when the software is complex. Therefore, many attempts have been made to automate the process. Random test data generation consists of generating test inputs at random, in the hope that they will exercise the desired software features. Often, the desired inputs must satisfy complex constraints, and this makes a random approach seem unlikely to succeed. In contrast, combinatorial optimization techniques, such as those using genetic algorithms, are meant to solve difficult problems involving the simultaneous satisfaction of many constraints. This paper presents a technique that uses a genetic algorithm for automatic test-data generation. A genetic algorithm is a heuristic that mimics the evolution of natural species in searching for the optimal solution to a problem. In test data generation application, the solution sought by the genetic algorithm is test data that causes execution of a given statement, branch, path, or definition-use pair in the program under test.

Download PDF

    References

  1. Korel B., Automated Software Test Data Generation. IEEE transaction on Software Engineering (16)8:870-879, August, 1990.
  2. Jasper R.,Brennan M.,Williamson K., Currier B., Test Data Generation and Feasible path analisys. 1994
  3. Pfleeger, S. L.: Software Engineering: Theory and Practice. 2nd Edition, Prentice-Hall, 2001.
  4. Pfleeger, S. L.: Software Engineering: Theory and Practice. 2nd Edition, Prentice-Hall, 2001.
  5. Jorgensen, P. C.: Software Testing: A Craftsman's Approach. Second Edition, CRC Press, 2002.
  6. Schroeder P. J., and Korel, B.: Black-Box Test Reduction Using Input-Output Analysis. In Proc. of ISSTA '00 (2000). 173-177.
  7. Elbaum, S., Malishevsky, A. G., Rothermel, G.: Prioritizing Test Cases for Regression Testing, in Proc. of ISSTA '00 (2000). 102-112.
  8. Holland, J. H.: Genetic Algorithms, Scientific American, 267(1) (1992) 44-150.
  9. Herrera F., and Magdalena, L.: Genetic Fuzzy Systems: A Tutorial. Tatra Mt. Math.
  10. Publ. (Slovakia), 13, (1997) 93-121
  11. Michalewicz, Z.: Genetic Algorithms + Data Structures - Evolution Programs, Verlag, Heidelberg, Berlin, Third Revised and Extended Edition, 1999.
  12. Mitchell, M.: An Introduction to Genetic Algorithms, MIT Press, 1996.
  13. Srivastava P. R., Kim T., Application of Genetic Algorithm in Software Testing, International Journal of Software Engineering and its Applications, Vol.3, No.4, October 2009.[13].Malhotra, R. and Garg, M., 2011. An adequate based test data generation techniques usinggenetic algorithm. Journal of Information Processing Systems,Vol. 7, Issue 2, June 2011. [14].Andrew.,J.H..2011.Genetic algorithm for randomized unit testing. Software Engineering, IEE jan-feb’2011, vol.37, Issue.1,pp 80-94
Back

Disclaimer: Indexing of published papers is subject to the evaluation and acceptance criteria of the respective indexing agencies. While we strive to maintain high academic and editorial standards, International Journal of Research in Science and Technology does not guarantee the indexing of any published paper. Acceptance and inclusion in indexing databases are determined by the quality, originality, and relevance of the paper, and are at the sole discretion of the indexing bodies.