ClassBench: a Framework for Automated Class Testing
β Scribed by DANIEL HOFFMAN; PAUL STROOPER
- Publisher
- John Wiley and Sons
- Year
- 1997
- Tongue
- English
- Weight
- 183 KB
- Volume
- 27
- Category
- Article
- ISSN
- 0038-0644
No coin nor oath required. For personal study only.
β¦ Synopsis
In contrast to the explosion of activity in object-oriented design and programming, little attention has been given to object testing. We present a novel approach to automated testing designed especially for collection classes. In the ClassBench methodology, a testgraph partially models the states and transitions of the Class-Under-Test (CUT) state/transition graph. To determine the expected behavior for the test cases generated from the testgraph, the tester develops an oracle class, providing essentially the same operations as the CUT but supporting only the testgraph states and transitions. Surprisingly thorough testing is achievable with simple testgraphs and oracles. The ClassBench framework supports the tester by providing a testgraph editor, automated testgraph traversal, and a variety of utility classes. Test suites can be easily configured for regression testing-where many test cases are run-and debugging-where a few test cases are selected to isolate the bug. We present the ClassBench methodology and framework in detail, illustrated on both simple examples and on test suites from commercial collection class libraries. Β©1997 John Wiley & Sons, Ltd.
π SIMILAR VOLUMES
The future will bring widespread access to large digital libraries of video. Consequently, a great deal of research is focused on methods of browsing and retrieving digital video. This type of work requires that investigators acquire and digitize video for their studies since the video information r
Continuous monitoring of water loss from an evaporation pan was automated by using a system of 16 general-purpose Constantan wire-resistance strain gages mounted on four supporting arms. A change in pan weight from water loss proportionally changed the electrical resistance of the wire gages. The sy
## Abstract We advance a framework for testing mediational relationships that traverse levels of analysis. We differentiate mediation that functions within levels, as well as different forms of mesoβmediation that operate downward across levels of analysis. We discuss the preconditions and evidenti