A Note on Test Oracles and Semantics of Algebraic Specifications

  • Authors:
  • Hong Zhu

  • Affiliations:
  • -

  • Venue:
  • QSIC '03 Proceedings of the Third International Conference on Quality Software
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Algebraic testing is an automated software testingmethod based on algebraic formal specifications. It tests ifa program correctly implements an algebraic specificationby checking if the equations of the specification are satisfied.One of the key techniques of algebraic testing is theuse of observation contexts as a test oracle so that thecomparison of values of structured data can be realised bycomparing values of simple data types. This leads to abehavioural semantics of algebraic specifications anddivides sorts into observable and non-observable. To representthe structure of object-oriented programs and tofacilitate incremental integration testing, this paper extendsthe notion of observable sorts by introducing a partialordering between sorts to represent the importation relationbetween classes. In this framework, the validity of testoracles is formally proved in final algebra semantics.