Optimization of Test Data Generation Using Genetic Algorithm for Software Testing

Authors

  • Sumit Saxena, Dr. Rajeev Yadav

Keywords:

Genetic Algorithm, Automated Software Testing, Test Data Generation, Test Case Generation

Abstract

Software testing is an essential phase of the software development life cycle that ensures the reliability, correctness, and quality of software applications. However, the manual generation of effective test data is time-consuming, labour-intensive, and often unable to provide sufficient code coverage for complex software systems. Automated test data generation can address these limitations by systematically identifying input values capable of exercising different execution paths and detecting software faults. This study proposes a Genetic Algorithm (GA)-based optimization approach for automated test data generation, in which candidate test data are represented as chromosomes and evolved through selection, crossover, and mutation operations. A fitness function is formulated using testing objectives such as code coverage, execution path coverage, and fault-detection capability to identify highly effective test data. The proposed approach iteratively improves the quality of generated test cases while reducing redundant and ineffective inputs. The performance of the GA-based method can be evaluated using parameters such as statement coverage, branch coverage, path coverage, number of faults detected, test-suite size, and execution time. Experimental analysis is intended to demonstrate that evolutionary optimization can generate more effective and diverse test data than conventional or randomly generated test inputs. The proposed methodology provides an automated and scalable framework for improving software testing efficiency and reducing the effort required for comprehensive test-data generation. The approach can be further extended to multi-objective optimization and hybrid intelligent techniques for testing large-scale and complex software systems.

References

Arcuri, A. and X. Yao (2007) A Memetic Algorithm for Test Data Generation of Object- Oriented Software. In IEEE Congress on Evolutionary Computation, 2048-2055.

Askarunisa, A., N. Ramraj, S. Priya (2009) Selecting Effective Coverage Testing Tool Based on Metrics, The ICFAI University Journal of Computer Sciences, 3(3), 47-53.

Avancini, A. and M. Ceccato (2010) Towards Security Testing With Taint Analysis and Genetic Algorithms. In Proceedings of the ICSE Workshop on Software Engineering for Secure Systems, ACM, 65-71.

Avritzer, A. and E. J. Weyuker (1995) The Automatic Generation of Load Test Suites and the Assessment of the Resulting Software. In Proceeding of the IEEE Transactions on Software Engineering, 21, 705– 716.

Baresel, A. and H. H. Sthamer (2003) Evolutionary Testing of Flag Conditions. In Proceedings of the Genetic and Evolutionary Computation— GECCO 2003, Springer Berlin Heidelberg, 2442-2454.

Bertolino, A. (2007) Software Testing Research: Achievement, Challenges, Dreams. In the Proceedings of the Future of Software Engineering at ICSE 2007, IEEE Computer Society, 85-103.

Birattari, M., T. Stützle, L. Paquete and K. Varrentrapp (2002) A Racing Algorithm for Configuring Metaheuristics. In Proceedings of the Genetic and Evolutionary Computation Conference, GECCO 2002, 2, 11-18.

Birt, J. R. and R. Sitte (2004) Optimizing Testing Efficiency With Error-Prone Path Identification and Genetic Algorithms. In Proceedings of IEEE Australian Conference on Software Engineering, 106-115.

Boghdady, P. N., N. Badr, M. Hashem and M. F. Tolba (2011) Test Case Generation and Test Data Extraction Techniques. International Journal of Electrical and Computer Sciences, 11(3), 87-94.

Bueno, P. M. S. and M. Jino (2000) Identification of Potentially Infeasible Program Paths by Monitoring the Search for Test Data. In Proceedings of the Fifteenth IEEE International Conference on Automated Software Engineering, ASE 2000, 209-218.

Chen, Y., Y. Zhong, T. Shi and J. Liu (2009) Comparison of Two Fitness Functions for GA-Based Path- Oriented Test Data Generation. In Proceedings of Fifth International IEEE Conference on Natural Computation, ICNC'09, 4, 177 181.

Chiroma, H., S. Abdulkareem, A. Abubakar, A. Zeki, A. Y. U. Gital and M. J. Usman (2013) Correlation Study of Genetic Algorithm Operators: Crossover and Mutation Probabilities. International Symposium on Mathematical Sciences and Computing Research, 39-43.

De Abreu, B. T., E. Martins and F. L. De Sousa (2005) Automatic Test Data Generation for Path Testing Using A New Stochastic Algorithm. In Proceeding of the Nineteen Brazilian Symposium on Software Engineering, 19, 247–262.

Díaz, E., J. Tuya and R. Blanco (2003) Automated Software Testing Using A Metaheuristic Technique Based on Tabu Search. In Proceedings of 18th IEEE International Conference on Automated Software Engineering, 310 313.

Doungsa-Ard, C., K. Dahal, A. Hossain, and T. Suwannasart (2007) Test Data Generation From UML State Machine Diagrams Using GAs. In Proceedings of IEEE International Conference on Software Engineering Advances, ICSEA 2007, 47-48.

Downloads

How to Cite

Sumit Saxena, Dr. Rajeev Yadav. (2026). Optimization of Test Data Generation Using Genetic Algorithm for Software Testing. International Journal of Research & Technology, 14(1), 1203–1211. Retrieved from https://ijrt.org/j/article/view/1789

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.