Skip to main content
Log in

Identification of most critical paths using sparse matrix in software testing

  • Original Research
  • Published:
Life Cycle Reliability and Safety Engineering Aims and scope Submit manuscript

Abstract

A software code may practically consist of many functions or subroutines with loops and branches. Also, the quantification of cyclomatic complexity is tedious, when the size of the software code is too large. Practically, size of the code for a real time application is generally large and dd-graph generation and maneuverability are tedious. Exhaustive testing is impractical and therefore it is not feasible to test all possible paths in the flow graph. Moreover, it is difficult to identify the uncovered portion, identification of most critical paths and hence unable to test all critical components in the software code. The present investigation focuses to display decisions along test paths in dd-graph of the software code using sparse matrix approach drawn through MATLAB biograph object module. In this approach, the concept of dd-graph (decision-to-decision graph) is taken from control flow graph of the software code by joining decision to decision. An identification of most critical paths and test case generation are done using artificial bee colony optimization. To avoid the testing complexity, the sparse matrix approach is used to demonstrate the most critical paths and display of the dd-graph using biograph object module by initializing the edge-node relationships is presented. The gcov code coverage analysis generates branch percentage probability as coverage summary which is considered as edge weights of the sparse matrix. This present approach is tested for the benchmark problem of “finding roots of the quadratic equation” software code.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

References

Download references

Acknowledgements

The authors thank Atomic Energy Regulatory Board India Project No.: AERB/CSRP/53/06/2013 for providing financial assistance to carry out this work. The authors thank SSN management, Principal for support.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to R. Sujatha.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Boopathi, M., Sujatha, R. & Senthil Kumar, C. Identification of most critical paths using sparse matrix in software testing. Life Cycle Reliab Saf Eng 10, 39–52 (2021). https://doi.org/10.1007/s41872-020-00142-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s41872-020-00142-z

Keywords

Navigation