Specification-Based Class Testing: A Case Study

  • Authors:
  • Ian MacColl;Leesa Murray;Paul Strooper;David Carrington

  • Affiliations:
  • -;-;-;-

  • Venue:
  • ICFEM '98 Proceedings of the Second IEEE International Conference on Formal Engineering Methods
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

This 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.