Skip to main content

Application of Genetic Algorithm in Automatic Software Testing

  • Conference paper
Book cover Networked Digital Technologies (NDT 2010)

Abstract

One of the major challenge and time-consuming work is optimum test data generation to assure software quality. Researchers have proposed several methods over years to generate automatically solution which have different drawbacks. In this paper, we propose Genetic Algorithm (GA) based tester with different parameters to automate the structural-oriented test data generation on the basis of internal program structure. Our proposed fitness function is intended to traverse paths of the program as more as possible. This integration improves the GA performance in search space exploration and exploitation fields with faster convergence. At last, we present some results according to our experiment which were promising in term of structural coverage and time order.

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 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Babamir, F.S., Babamir, S.M.: Applying Redundancy Frequency to Verify Program based on Genetic Algorithm. In: 18th Iranian Computer and Electrical Engineering ICEE, Isfahan, IRAN (2010)

    Google Scholar 

  2. Babamir, F.S., Babamir, S.M.: A GA based-method to Generate Test Data of Program Paths. In: 15th National Computer Conference CSICC, Tehran, IRAN (2010)

    Google Scholar 

  3. Babamir, S.M., Babamir, F.S.: A Genetic-based Algorithm to Optimum Generation of Data for Program Paths Testing. In: 14th National Computer Conference CSICC, Tehran, IRAN (2009)

    Google Scholar 

  4. Goldberg, D.E.: Genetic Algorithm in a Search Optimization and Machine Learning. Addison Wesley, Reading (1989)

    Google Scholar 

  5. Bern, D., Fisher, J., Johnson, L., Pinglikar, J., Watkins, A.: Breeding Software Test Cases with Genetic Algorithm. In: IEEE Proceedings of the Hawaii International Conference on System Science, Hawaii (2003)

    Google Scholar 

  6. Srivastava, P.R., Kim, T.: Applied to Genetic Algorithm in Software Engineering. International Journal of Software Engineering and its Applications 3(4), 87–96 (2009)

    Google Scholar 

  7. Watson, A.H., McCabe, T.J.: Structural Testing: A Testing Methodology Using the Climatic Complexity Metric. Computer Systems Laboratory, International Institute of Standards and Technology Gaithersburg, MD 20899001 (1996)

    Google Scholar 

  8. Ahmed, M.A., Hermadi, I.: GA-based Multiple Paths Test Data Generator. Journal of Computers & Operations Research 35(10), 3107–3124 (2008)

    Article  Google Scholar 

  9. Mitchell, M.: An Introduction to Genetic Algorithm. MIT, Reading (1999)

    Google Scholar 

  10. Holland, J.: Adaptation in Natural and Artificial Systems. The University of Michigan Press, Ann Arbor (1975)

    Google Scholar 

  11. Bueno, P.M.S., Jino, M.: Identification of Potentially Infeasible Program Paths by Monitoring the Search for Test Data. In: Proceedings of the 15th IEEE International Conference on Automated Software Engineering (ASE 2000), Grenoble, France, September 11-15, pp. 209–218 (2000)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Babamir, F.S., Hatamizadeh, A., Babamir, S.M., Dabbaghian, M., Norouzi, A. (2010). Application of Genetic Algorithm in Automatic Software Testing. In: Zavoral, F., Yaghob, J., Pichappan, P., El-Qawasmeh, E. (eds) Networked Digital Technologies. NDT 2010. Communications in Computer and Information Science, vol 88. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-14306-9_54

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-14306-9_54

  • Publisher Name: Springer, Berlin, Heidelberg

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

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

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics