Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 9 January 2025

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

Akira Wahyu Putra1 & Nilo Legowo2

Journal of Computer Science, Volume 21, Issue 2, pp. 290–303 · doi.org/10.3844/jcssp.2025.290.303

7,558 accesses2,616 downloads0 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

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

Licence
CC BY 4.0
Issue
Volume 21, Issue 2
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Greedy Algorithm Implementation for Test Case Prioritization in the Regression Testing PhaseJournal of Computer Science · Volume 21, Issue 2 · pp. 290–303 · CC BY 4.0Download