A Test Strategy for Object-Oriented Programs

  • Authors:
  • Affiliations:
  • Venue:
  • COMPSAC '95 Proceedings of the 19th International Computer Software and Applications Conference
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

The complexity and interdependencies of an object-oriented program makes testing of such programs difficult. In this paper, we present a reverse engineering based model called Object Relation Diagram (ORD), which is generated from analyzing the C++ source code of an object-oriented program. An ORD is a directed graph in which the vertices represent the object classes and the edges represent the relationships among the object classes. Based on the ORD, a test strategy, called test order, for unit testing and integration testing of object-oriented programs is described. The test order algorithm uses topological sorting and clusters of strongly connected subgraphs of the ORD. It computes the optimal test order in the sense that the effort required to construct the test stubs to simulate the untested classes/member functions is minimum. We show the savings of the test strategy through statistics of the InterViews library.