Title :
Specification-based class testing: a case study
Author :
MacColl, Ian ; Murray, Leesa ; Strooper, Paul ; Carrington, David
Author_Institution :
Dept. of Comput. Sci. & Electr. Eng., Queensland Univ., St. Lucia, Qld., Australia
Abstract :
The paper contains a case study demonstrating a complete process for specification based class testing. The process starts with an abstract specification written in Object-Z and concludes by exercising an implementation with test cases and evaluating the results. The test cases are derived using the Test Template Framework for each individual operation. They are analysed to generate a finite state machine that can execute test sequences within the ClassBench framework. An oracle is also derived from the Object-Z specification. The case study demonstrates how a formal specification contributes to the development of practical tests that can be executed by a testing tool. It also shows how a test oracle can be derived from a specification and used by the same testing tool to evaluate test results
Keywords :
finite state machines; formal specification; object-oriented languages; program testing; specification languages; ClassBench framework; Object-Z specification; Test Template Framework; abstract specification; case study; finite state machine; formal specification; oracle; practical tests; specification based class testing; test cases; test oracle; test results; test sequences; testing tool; Automata; Automatic testing; Computer aided software engineering; Computer science; Electrical capacitance tomography; Formal specifications; Performance evaluation; Read only memory; Software testing; Tellurium;
Conference_Titel :
Formal Engineering Methods, 1998. Proceedings. Second International Conference on
Conference_Location :
Brisbane, Qld.
Print_ISBN :
0-8186-9198-0
DOI :
10.1109/ICFEM.1998.730586