
Research Article
Optimizing Test Case Reduction Using Particle Swarm Optimization
@INPROCEEDINGS{10.4108/eai.28-4-2025.2358023, author={R. Manikandan and T. R. Chandana and M. Vandana and C. Sriram Somanath and K. Suresh}, title={Optimizing Test Case Reduction Using Particle Swarm Optimization}, proceedings={Proceedings of the 4th International Conference on Information Technology, Civil Innovation, Science, and Management, ICITSM 2025, 28-29 April 2025, Tiruchengode, Tamil Nadu, India, Part II}, publisher={EAI}, proceedings_a={ICITSM PART II}, year={2025}, month={10}, keywords={pso - particle swarm optimization metaheuristic algorithm mopso - multi objective particle swarm optimization test suite optimization execution time automated testing ga - genetic algorithm fault detection 1 code coverage}, doi={10.4108/eai.28-4-2025.2358023} }
- R. Manikandan
T. R. Chandana
M. Vandana
C. Sriram Somanath
K. Suresh
Year: 2025
Optimizing Test Case Reduction Using Particle Swarm Optimization
ICITSM PART II
EAI
DOI: 10.4108/eai.28-4-2025.2358023
Abstract
Testing is one of the most important phases of software development, ensuring that the system functions efficiently, performs its intended tasks, and remains reliable. As the size of the test set grows polynomially (N²), the cost, redundancy and executing time also increase. Classical test case reduction techniques (heuristic and greedy approaches) usually cannot strike the right balance between the capability to detect errors and code coverage in minimizing test cases. In order to tackle this problem, we first construct a PSObased testing case reduction method to intelligently select the optimal test case subset. The PSO algorithm considers the test case selection as an optimization problem and uses particles to represent candidate subsets. The objective of the fitness function is to maximize the defect finding rate, code coverage and minimize execution time. With the update of positions with respect to global and individual optima, particles can conduct detailed search and decision. Experimental results show that our approach achieves high defect detection and coverage by greatly reducing the total number of tests. This renders the method particularly well suited to large software testing with less overhead, a more rapid execution, and a higher effectiveness.