Skip to main content

An Output-Oriented Approach of Test Data Generation Based on Genetic Algorithm

  • Conference paper
  • First Online:
Algorithms and Architectures for Parallel Processing (ICA3PP 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9532))

Abstract

Using genetic algorithm to transform test data generation problem into numerical optimization problem, evolution test is one of the hot topics in test data automatic generation. This paper proposed a software test data generation method based on evolution test, which was output-oriented and so suitable for black-box testing. The method transformed the coverage to software output domains into coverage to branches of pseudo-path by use of gray-box test technology. It defined a match function to describe the difference of the search trace to the aimed path, and then got its fitness function based on the match function. Some experimental results showed that the method implemented the coverage to software output domains, and was more efficient than random testing and manual testing.

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 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ammann, P., Offutt, J.: Introduction to Software Testing. Cambridge University Press, Cambridge (2008)

    Book  Google Scholar 

  2. Patton, R.: Software Testing, 2nd edn. SAMS & Pearson Education, New York (2006)

    Google Scholar 

  3. Kaner, C., Bach, J.: The Nature of Exploratory Testing. http://www.testingeducation.org. 2004

  4. Wegener, J., Sthamer, H., Baresel, A.: Application fields for evolutionary testing. In: European Software Testing Analysis & Review, Stockholm, Sweden, November 2001

    Google Scholar 

  5. Wegener, J.: Overview of Evolutionary Testing. In: IEEE Seminal Workshop, Toronto, Canada, p. 14, May 2001

    Google Scholar 

  6. Baresel, A., Binkley, D., Harman, M., Korel, B.: Evolutionary testing in the presence of loop-assigned flags: a testability transformation approach. In: International Symposium on Software Testing and Analysis, Boston, Massachusetts, pp. 108–118 (2004)

    Google Scholar 

  7. Jones, J.A., Harrold, M.J.: Test-suite reduction and prioritization for modified condition/decision coverage. IEEE Trans. Softw. Eng. 29(3), 195–209 (2003)

    Article  Google Scholar 

  8. Jun-lin, Q.U.A.N., Lu, L.U.: Research test case suite minimization based on genetic algorithm. Comput. Eng. Appl. 45(19), 58–61 (2009)

    Google Scholar 

  9. Lin, J.C., Yeh, P.L.: Using genetic algorithms for test case generation in path testing. In: Proceedings of the Asian Test Symposium, pp. 241–246 (2000)

    Google Scholar 

  10. Jones, B.F., Sthamer, H.H., Eyres, D.E.: Automatic structural testing using genetic algorithms. Softw. Eng. J. 11(5), 299–306 (1996)

    Article  Google Scholar 

  11. Baresel, A., Sthamer, H., Schmidt, M.: Fitness function design to improve evolutionary structural testing. In: Genetic and Evolutionary Computation Conference, New York, USA, pp. 1329–1336 (2002)

    Google Scholar 

  12. Wegener, J.,Buhler, O.: Evaluation of different fitness functions for the evolutionary testing of an automatic parking system. In: The Genetic and Evolutionary Computation Conference, Seattle, Washington, pp. 1400–1412 (2002)

    Google Scholar 

  13. Weixiang, Z., Wenhong, L.: Application of grey-box testing method. J. Spacecr. TT&C Technol. 29(6), 86–89 (2010)

    Google Scholar 

  14. Shi, L., Baowen, X., Xie, X.: An Empirical Study of Configuration Strategies of Evolutionary Testing. Int. J. Comput. Sci. Netw. Secur. IJCSNS 6(1A), 44–49 (2006)

    Google Scholar 

  15. Zhang, W., Wei, B., Du, H.: Test case prioritization based on genetic algorithm and test-points coverage. In: Sun, X.-h., et al. (eds.) ICA3PP 2014, Part I. LNCS, vol. 8630, pp. 644–654. Springer, Heidelberg (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Weixiang Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Zhang, W., Wei, B., Du, H. (2015). An Output-Oriented Approach of Test Data Generation Based on Genetic Algorithm. In: Wang, G., Zomaya, A., Martinez, G., Li, K. (eds) Algorithms and Architectures for Parallel Processing. ICA3PP 2015. Lecture Notes in Computer Science(), vol 9532. Springer, Cham. https://doi.org/10.1007/978-3-319-27161-3_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27161-3_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27160-6

  • Online ISBN: 978-3-319-27161-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics