Software Testing Optimization Using Genetic Algorithms

Authors

  • Luis Ortega Independent Researcher Quito, Ecuador, EC, 170150 Author

DOI:

https://doi.org/10.63345/

Keywords:

Genetic Algorithm, Software Testing, Test-Suite Prioritization, Test-Data Generation, APFD, Mutation Testing, Coverage, Search-Based Software Engineering

Abstract

Software systems have grown so large and fast-moving that traditional testing strategies struggle to keep pace with delivery cycles and resource constraints. Search-Based Software Engineering (SBSE) reframes testing tasks as optimization problems; among SBSE techniques, Genetic Algorithms (GAs) offer a flexible, domain-agnostic way to explore vast test spaces and to trade off competing quality goals. This manuscript presents a practical, end-to-end GA framework for two high-impact testing problems—(i) test-suite prioritization for regression testing under execution-time budgets, and (ii) test-data generation for structural coverage. We formalize chromosome encodings, a multi-term fitness function combining predicted fault revelation (via APFD surrogate), structural coverage, mutation score, and execution time, and we design GA operators that preserve permutation constraints and encourage behavioral diversity using coverage-vector distances.

A controlled simulation study across five subject programs (1.5k–38k LOC) compares GA against random and greedy baselines under identical budgets. The GA improves APFD by 10.6–24.8 percentage points over random and 4.1–9.3 points over greedy coverage ordering, while meeting or reducing execution time budgets. Non-parametric tests (Wilcoxon) indicate statistical significance (p < 0.01) with large effect sizes (|d| ≥ 0.8). We include an ablation showing that removing the diversity term degrades early fault detection and increases redundancy. Results demonstrate that a well-tuned GA is both effective and robust for time-boxed regression testing and for reaching hard-to-cover branches. We conclude with guidance for parameterization, threats to validity, and opportunities for multi-objective extensions (e.g., Pareto optimization) and CI/CD integration.

Published

2026-07-08

How to Cite

Ortega, Luis. “Software Testing Optimization Using Genetic Algorithms”. International Journal of Advanced Research in Computer Science and Engineering 2, no. 3 (July 8, 2026): Jul (33–41). Accessed July 9, 2026. https://ijarcse.org/index.php/ijarcse/article/view/158.

Similar Articles

1-10 of 94

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