On testing of classes in object-oriented programs

Dechang Gu, Yin Zhong, S. Syed Ali · Conference of the Centre for Advanced Studies on Collaborative Research · 1994

Object-oriented technology has been widely studied and applied. Substantial research has been carried out in object-oriented analysis, design and programming language. However, relatively little attention has been paid to testing of object-oriented programs. In this paper, we review several techniques proposed in the literature for testing object-oriented software, and investigate the impact of object-oriented approach on the design of testing strategies. In particular, we focus on the test case selection problem in class testing. We observe that an effective test case should consists of a tuple (s, ψ) where s is a class state and ψ a sequence of operations that may be applied to the state. State space analysis and trace analysis techniques are discussed, which may be used to characterize the class state space and the interactions of operations, so that effective test data can be selected.

Read the paper · More papers on PaperTik