Research Article Open Access

Greedy Algorithm Implementation for Test Case Prioritization in the Regression Testing Phase

Akira Wahyu Putra1 and Nilo Legowo2
  • 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.

Journal of Computer Science
Volume 21 No. 2, 2025, 290-303

DOI: https://doi.org/10.3844/jcssp.2025.290.303

Submitted On: 10 September 2024 Published On: 9 January 2025

How to Cite: Putra, A. W. & Legowo, N. (2025). Greedy Algorithm Implementation for Test Case Prioritization in the Regression Testing Phase. Journal of Computer Science, 21(2), 290-303. https://doi.org/10.3844/jcssp.2025.290.303

  • 124 Views
  • 29 Downloads
  • 0 Citations

Download

Keywords

  • Regression Testing
  • Greedy Algorithm
  • Test Case Prioritization
  • APFD
  • Software Development