Translating Object-Z Specifications to Passive Test Oracles

  • Authors:
  • Jason McDonald;Paul Strooper

  • 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

A test oracle provides a means for determining whether an implementation functions according to its specification. A passive test oracle checks the behaviour of the implementation, but does not attempt to reproduce this behaviour. This paper describes the translation of formal specifications of container classes to passive test oracles. Specifically, we use Object-Z for specifications and C++ for oracles. We discuss several practical issues for the use of formal specifications in test oracle generation. We then present the translation process and illustrate it with an example based on an integer set class. %We then present the translation process and evaluate how the derived %oracles satisfy our goals of adequacy for testing, portability between %different testing methods, and potential for automated generation. Our approach is illustrated with an example based on an integer set class.