Title :
Automated class testing: methods and experience
Author :
Hoffman, Daniel ; Smillie, Jonathan ; Strooper, Paul
Author_Institution :
Dept. of Comput. Sci., Victoria Univ., BC, Canada
Abstract :
In contrast to the explosion of activity in object-oriented design and programming, little attention has been given to object testing. In our approach, a driver class and an oracle class are developed for each class-under-test (CUT). The driver class is based on a test-graph which partially models the CUT as a state machine, but with vastly fewer states and transitions. The oracle class provides essentially the same operations as the CUT, but supports only the testgraph states and transitions. Surprisingly thorough testing is achievable with simple testgraphs and oracles. The key is designing the two together, to avoid tests for which input generation and output checking are unaffordable. We summarize recent experience with the testgraphs framework, including handling of operations on pairs of objects and the application of testgraphs to test part of the testgraphs implementation
Keywords :
finite state machines; object-oriented methods; object-oriented programming; program testing; CUT; automated class testing; class-under-test; driver class; input generation; object testing; object-oriented design; object-oriented programming; oracle class; output checking; state machine; test-graph; testgraphs; Automatic control; Automatic testing; Computer science; Costs; Explosions; Humans; Object oriented modeling; Object oriented programming; Productivity; Programming profession;
Conference_Titel :
Software Engineering Conference, 1994. Proceedings., 1994 First Asia-Pacific
Conference_Location :
Tokyo
Print_ISBN :
0-8186-6960-8
DOI :
10.1109/APSEC.1994.465263