Abstract

Test case prioritization focuses on finding a suitable order of execution of the test cases in a test suite to meet some performance goals like detecting faults early. It is likely that some test cases execute the program parts that are more prone to errors and will detect more errors if executed early during the testing process. Finding an optimal order of execution for the selected regression test cases saves time and cost of retesting. This paper presents a static approach to prioritizing the test cases by computing the affected component coupling (ACC) of the affected parts of object-oriented programs. We construct a graph named affected slice graph (ASG) to represent these affected program parts. We determine the fault-proneness of the nodes of ASG by computing their respective ACC values. We assign higher priority to those test cases that cover the nodes with higher ACC values. Our analysis with mutation faults shows that the test cases executing the fault-prone program parts have a higher chance to reveal faults earlier than other test cases in the test suite. The result obtained from seven case studies justifies that our approach is feasible and gives acceptable performance in comparison to some existing techniques.

Highlights

  • In the software development life cycle, regression testing is considered an important part

  • The results show that our Fault-Prone Affected Node Coverage (FPANC) approach achieves approximately 8% increase in the Average Percentage of Fault Detected (APFD) metric value over Affected node coverage (ANC) approach

  • We proposed a coupling metric based technique to improve the effectiveness of test case prioritization in regression testing

Read more

Summary

Introduction

In the software development life cycle, regression testing is considered an important part. All the existing approaches target finding an optimal ordering of the test cases based on the rate of fault detection or rate of satisfiability of coverage criterion under consideration. These existing techniques [3, 6, 10,11,12,13] were primarily developed to target procedural programs. This paper uses the coupling value of the affected program parts for prioritizing the selected test cases for regression testing

Objectives
Results
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call