Abstract
In this paper, we have developed an approach to generate test data for path coverage based testing using genetic algorithm. We have used control flow graph and cyclomatic complexity of the example program to find out the number of feasible paths present in the program and compared it with the actual number of paths covered by genetic algorithm. We have used genetic algorithm for generating test data automatically. We have shown that our algorithm is giving cent percent coverage, successfully covering all feasible paths. In our approach, we have observed that genetic algorithm is much more effective in generating test data within less time period, giving better coverage.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Harman, M., McMinn, P.: A theoretical and empirical study of search-based testing, local, global, and hybrid search. IEEE Trans. Softw. Engg. 36(2) (2010)
Pargas, Harrold, Peck: Test -data generation using genetic algorithms. J. Softw. Test. Verif. Realiab. Wiley (1999)
Goldberg: Genetic algorithms in search, optimization and machine learning. Addison-Wesley, Massachusetts (1989)
Mathew: Genetic algorithm. IIT, Bombay. vmtom@civil.iitb.ac.in
Mall, R.: Fundamentals of software engineering 3rd Edn. PHI Publications, New Delhi
Michael, C.C., Graw, G.M., Schatz, M.A.: Generating software test data by evolution. IEEE Trans. Softw. Engg. 27(12) (2001)
Diaz, Tuya, Blanco: Automated software testing using a metaheuristic technique based on tabu search, pp. 310–313 (2003). doi:10.1109/ASE.2003.1240327
Hermadi, Ahmed, King: Genetic algorithm based test data generator 1. doi:10.1109/CEC.2003.1299560
Ghiduk, Harrold, Girgis: Using genetic algorithms to aid test-data generation for data-flow coverage (2007). doi: 10.1109/ASPEC.2007.73
Ramamoorthy, Ho, Chen: On the automated generation of program test data. IEEE Trans. Softw. Engg. SE-2(4) (1976)
Harman, King: Automated test data generation using search based software engineering. ISBN:978-0-7695-2971-2, doi:10.1109/AST.2007
Howden: Reliability of the path analysis testing strategy. IEEE Trans. Softw. Engg. SE-2(5) (1976)
Holland: Adaptation in natural and artificial systems, 2nd edn. MIT Press, MIT, Cambridge
Korel: Automated software test data generation. IEEE Trans. Softw. Engg. 16 (1990)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer India
About this paper
Cite this paper
Panda, M., Mohapatra, D.P. (2014). Generating Test Data for Path Coverage Based Testing Using Genetic Algorithms. In: Sathiakumar, S., Awasthi, L., Masillamani, M., Sridhar, S. (eds) Proceedings of International Conference on Internet Computing and Information Communications. Advances in Intelligent Systems and Computing, vol 216. Springer, New Delhi. https://doi.org/10.1007/978-81-322-1299-7_34
Download citation
DOI: https://doi.org/10.1007/978-81-322-1299-7_34
Published:
Publisher Name: Springer, New Delhi
Print ISBN: 978-81-322-1298-0
Online ISBN: 978-81-322-1299-7
eBook Packages: EngineeringEngineering (R0)