Skip to main content

Genetic Algorithm-Based Approach for Adequate Test Data Generation

  • Conference paper
Intelligent Computing, Networking, and Informatics

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 243))

Abstract

Software testing is an important phase in software development. It involves two activities, test data generation and test execution. Test data generation is a NP-complete problem as we have to find a lot of test data to validate our system. Also those test data should be adequate in nature. In this paper, we present a method to generate test data automatically from initial test data and then testing these test data against the software under test (SUT) for adequacy criteria. First, we generate a test data set randomly. Then, we apply genetic algorithm to find a better test data set iteratively. We stop at the position where our test data set satisfies the stopping condition or it completed maximum iterations. We test the generated test data against the software to check its adequacy. The test data generated by our approach are more capable of finding the synchronization and loop faults. A case study is given to illustrate our approach.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Malhotra, R., Garg, M.: An adequacy based test data generation technique using genetic algorithms. J. Inf. Process. Syst. 7(2), 363–384 (2011)

    Article  Google Scholar 

  2. Sommerville I.: Software Engineering, 7th edn., Addison-wesley

    Google Scholar 

  3. Mathur, A.P.: Foundation of Software Testing, 1st edn. Pearson Education, New Jersey (2008)

    Google Scholar 

  4. Mall, R.: Fundamentals of Software Engineering, 3rd edn. PHI, New Delhi (2009)

    Google Scholar 

  5. Goldberg, D.E.: Genetic Algorithms: in Search, Optimization and Machine Learning. Addison Wesley, Boston (1989)

    MATH  Google Scholar 

  6. Gupta, N.K., Rohil, M.K.: Using Genetic algorithm for unit testing of object oriented software. First International Conference on Emerging trends in Engineering and technology, IEEE, 2008

    Google Scholar 

  7. Emanuelle, F., Menezes, R., Braga, M.: Using Genetic algorithms for test plans for functional testing. In: Proceeding of 44th annual southeast regional conference, ACM, pp. 140–145, 2006

    Google Scholar 

  8. Srivastava, P.R., Kim, T.H.: Application of genetic algorithm in software testing. Int. J. Softw. Eng. Appl. 3(4), 87–95 (2009)

    Google Scholar 

  9. Hermadi, I., Ahmed, M.A.: Genetic algorithm based test data generator. Congr. Evolut. Comput. 1, 85–91 (2003)

    Google Scholar 

  10. Berndt, D.J., Fisher, J., Johnson, L., Pinglikar, J., Watkins, A.: Breeding software test cases with genetic algorithms. In: Proceedings of the 36th Annual Hawaii International Conference on System Science, Hawaii, Jan, 2003

    Google Scholar 

  11. Lin, J.C., Yeh, P.L.: Using genetic algorithms for test case generation in path testing. In: Proceedings of the 9th Asian Test Symposium, Taiwan, Dec, 2000

    Google Scholar 

  12. Baresal, A., Sthamer, H., Schmidt, M.: Fitness function design to improve evolutionary testing. In: Proceedings of the genetic and evolutionary computation conference, 2002

    Google Scholar 

  13. Rajappa, V., Biradar, A., Panda, S.: Efficient software test case generation using genetic algorithm based graph theory. First International Conference on Emerging Trends in Engineering and Technology, pp. 298–303, 2008

    Google Scholar 

  14. Sabharwal, S., Kumar, R., Sharma, C.: Applying genetic algorithm for prioritization of test case scenarios derived from UML diagrams. Int. J. Comput. Sci. 8(3), 433–444 (2011)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Swagatika Swain .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer India

About this paper

Cite this paper

Swain, S., Mohapatra, D.P. (2014). Genetic Algorithm-Based Approach for Adequate Test Data Generation. In: Mohapatra, D.P., Patnaik, S. (eds) Intelligent Computing, Networking, and Informatics. Advances in Intelligent Systems and Computing, vol 243. Springer, New Delhi. https://doi.org/10.1007/978-81-322-1665-0_43

Download citation

  • DOI: https://doi.org/10.1007/978-81-322-1665-0_43

  • Publisher Name: Springer, New Delhi

  • Print ISBN: 978-81-322-1664-3

  • Online ISBN: 978-81-322-1665-0

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics