Skip to main content

Generating Test Data for Both Paths Coverage and Faults Detection Using Genetic Algorithms

  • Conference paper
Advanced Intelligent Computing Theories and Applications. With Aspects of Artificial Intelligence (ICIC 2011)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 6839))

Included in the following conference series:

Abstract

Various studies on generating test data have been done up to date, but few test data generated by these studies can effectively detect faults lying in the program. We focus on the problem of generating test data for both paths coverage and faults detection. First, the problem above is formulated as a bi-objective optimization problem with one constraint, whose two objectives are the number of faults detected in the traversed path and the risk level of these faults, respectively, and the unique constraint is that the traversed path is just the target one; then, a multi-objective evolutionary algorithm is employed to effectively solve the formulated model; finally, the proposed method is applied in bubble sort program manually injected with some faults, and compared with the random method and the evolutionary optimization one without the task of detecting faults. The experimental results confirm the advantage of our method.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Myers, G.: The Art of Software Testing. Wiley, New York (1979)

    MATH  Google Scholar 

  2. Gross, H., Kruse, P.M., Wegener, J., et al.: Evolutionary white-box software test with the EvoTest framework, a progress report. In: IEEE International Conference on Software Testing Verification and Validation Workshops, pp. 111–120 (2009)

    Google Scholar 

  3. Korel, B.: Automated software test data generation. IEEE Transactions on Software Engineering 16(8), 870–879 (1990)

    Article  Google Scholar 

  4. Sofokleous, A.A., Andreou, A.S.: Automatic, evolutionary test data generation for dynamic software testing. The Journal of System and Software 81(11), 1883–1898 (2008)

    Article  Google Scholar 

  5. Caserta, M., Uribe, A.M.: Tabu search-based metaheuristic algorithm for software system reliability problems. Computers & Operations Research 36(3), 811–822 (2009)

    Article  MATH  Google Scholar 

  6. Windisch, A., Wappler, S., Wegener, J.: Applying particle swarm optimization to software testing. In: Genetic and Evolutionary Computation Conference, pp. 1121–1128 (2007)

    Google Scholar 

  7. Xanthakis, S., Ellis, C., Skourlas, C., et al.: Application of genetic algorithms to software testing. In: 5th International Conference on Software Engineering, pp. 625–636 (1992)

    Google Scholar 

  8. Sagarna, R., Yao, X.: Handling constraints for search based software test data generation. In: IEEE International Conference on Software Testing Verification and Validation Workshop, pp. 232–240 (2008)

    Google Scholar 

  9. Ghiduk, A.S., Harrold, M.J.: Using genetic algorithms to aid test data generation for data flow coverage. In: 14th Asia-Pacific Software Engineering Conference, pp. 41–48 (2007)

    Google Scholar 

  10. Harman, M., Lakhotia, K., McMinn, P.: A multi-objective approach to search-based test data generation. In: Genetic and Evolutionary Computation Conference, pp. 1098–1105 (2007)

    Google Scholar 

  11. Holland, J.H.: Adaptation in Natural and Artificial Systems. The University of Michigan, Michigan (1975)

    Google Scholar 

  12. Xuan, G., Cheng, R.: Genetic Algorithms and Engineering Optimization. Tsinghua University Press, Beijing (2004)

    Google Scholar 

  13. Deb, K.: Multi-objective Optimization Using Evolutionary Algorithms. John Wiley & Sons Inc., Chichester (2009)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Gong, Dw., Zhang, Y. (2012). Generating Test Data for Both Paths Coverage and Faults Detection Using Genetic Algorithms. In: Huang, DS., Gan, Y., Gupta, P., Gromiha, M.M. (eds) Advanced Intelligent Computing Theories and Applications. With Aspects of Artificial Intelligence. ICIC 2011. Lecture Notes in Computer Science(), vol 6839. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-25944-9_87

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-25944-9_87

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-25943-2

  • Online ISBN: 978-3-642-25944-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics