Skip to main content

Automatic Test Data Generation for Data Flow Testing Using Particle Swarm Optimization

  • Conference paper
Contemporary Computing (IC3 2010)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 95))

Included in the following conference series:

Abstract

Automatic test case generation is a major problem in software testing. Evolutionary structural testing is an approach to automatically generate test cases that uses a Genetic Algorithm (GA) which is guided by the data flow dependencies in the program to search for test data to cover the def-use association. The Particle Swarm Optimization (PSO) approach is a swarm intelligence technique which can be used to generate test data automatically. We have proposed an algorithm to generate test cases using PSO for data flow testing. We have simulated both the evolutionary and swarm intelligence techniques. From the experiments it has been observed that PSO outperforms GA in 100% def-use coverage percentage.

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. Girgis, M.R.: Automatic test data generation for data flow testing using genetic algorithm. Journal of Universal Computer Science 11(6), 898–915 (2005)

    Google Scholar 

  2. Pargas, R.P., Horrold, M.J., Peck, R.R.: Test data generation using genetic algorithm. The Journal of Software Testing,Verification and Reliability (1999)

    Google Scholar 

  3. Michael, C.C., McGraw, G., Schatz, M.A.: Generating software test data by evolution. IEEE Transactions on Software Engineering 27(12), 1085–1110 (2001)

    Article  Google Scholar 

  4. Pei, M., Goodman, E.D., Gao, Z., Zhong, K.: Automated software test data generation using genetic algorithm. Technical report, GARGE of Michigan State University (1994)

    Google Scholar 

  5. Jones, B.F., Sthamer, H.H., Eyres, D.E.: Automatic structural testing using genetic algorithms. Software Engineering Journal 8(9), 299–306 (1996)

    Article  Google Scholar 

  6. Roper, M., Maclean, I., Brooks, A., Miller, J., Wood, M.: Genetic algorithm and the automatic generation of test data. Technical report, University of Strathelyde (1995)

    Google Scholar 

  7. Watkins, A.E.L.: A tool for automatic generation of test data using genetic algorithm. In: Software Quality Conference, Dundee, Scotland (1995)

    Google Scholar 

  8. Kennedy, J., Eberhart, R.: Particle swarm optimization. In: IEEE International Conference on Neural Networks, pp. 1942–1948. IEEE Press, Los Alamitos (1995)

    Google Scholar 

  9. Windisch, A., Wappler, S., Wegener, J.: Applying paricle swarm optimization to software testing. In: GECCO, London, England, United Kingdom. ACM, New York (2007)

    Google Scholar 

  10. Agrawal, K., Srivastava, G.: Towards software test data generation using discrete quantum particle swarm optimization. In: ISEC, Mysore, India (February 2010)

    Google Scholar 

  11. Li, A., Zhang, Y.: Automatic generating all-path test data of a program based on pso. In: World Congress on Software Engineering. IEEE, Los Alamitos (2009)

    Google Scholar 

  12. Eberhart, R.C., Kennedy, J.: A new optimizer using particle swarm theory. In: 6th International Symposium on Micromachine Human Science, pp. 39–43 (1995)

    Google Scholar 

  13. Rapps, S., Weyuker, E.J.: Selecting software test data using data flow information. IEEE Transactions on Software Enggineering 11(4), 367–375 (1985)

    Article  Google Scholar 

  14. Allen, F.E., Cocke, J.: A program data flow analysis procedure. Communication of the ACM 19(3), 137–147 (1976)

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

Nayak, N., Mohapatra, D.P. (2010). Automatic Test Data Generation for Data Flow Testing Using Particle Swarm Optimization. In: Ranka, S., et al. Contemporary Computing. IC3 2010. Communications in Computer and Information Science, vol 95. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-14825-5_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-14825-5_1

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-14824-8

  • Online ISBN: 978-3-642-14825-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics