Greedy Algorithm Implementation for Test Case Prioritization in the Regression Testing Phase
- 1 Department of Information System Management, BINUS Graduate Program Master of Information System Management, Bina Nusantara University, Jakarta, Indonesia
- 2 Department of Information System Management, BINUS Graduate Program Master of Information System Management, Bina Nusantara University, Jakarta, Indonesia
Abstract
This study examines the implementation of Test Case Prioritization (TCP) using the Greedy Algorithm (GA) to enhance regression testing efficiency within a financial technology company's software development cycle. With testing durations increasing significantly, this study aims to address inefficiencies by applying the Greedy Algorithm to optimize test suite size and fault detection. The research methodology involves applying the Greedy Algorithm during the Regression Testing phase, comparing the prioritized suite with the original suite using metrics such as Average Percentage Fault Detection (APFD) and Test Suite Size Reduction (TSSR). Results show that the Greedy Algorithm achieved substantial improvements in both test suite size and fault detection effectiveness across different projects. For Project A, the test suite was reduced from 51-22 test cases, achieving a TSSR of 56.8%, with an APFD increase of 206.21%, rising from 0.0853-0.2613. Project B demonstrated even greater optimization, reducing the test suite from 36-8 test cases, resulting in a TSSR of 77.8% and an APFD improvement of 83.92%, rising from 0.3194-0.5875. These outcomes underscore the algorithm’s effectiveness in eliminating redundant test cases, accelerating testing, and enhancing fault detection thereby supporting the company's goal of faster release cycles without compromising quality.
DOI: https://doi.org/10.3844/jcssp.2025.290.303
Copyright: © 2025 Akira Wahyu Putra and Nilo Legowo. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 124 Views
- 29 Downloads
- 0 Citations
Download
Keywords
- Regression Testing
- Greedy Algorithm
- Test Case Prioritization
- APFD
- Software Development