To main content

Specifying a Testing Oracle for Train Station

Abstract

This paper presents an approach for automatically generating a testing oracle for train stations. Based on a model of a train station and a formal definition of the behavior of the station, Alloy is used to generate all positive traces from a given situation. By specifying the precondition (test input), a simulation of the station model gives all legal train movement from this state, which defines the testing oracle. This oracle can be used for checking the result of testing the implementation of the station by comparing the train movement from the test with the legal train movement specified by the oracle. We suggest a prototype implementation based on the Train Control Language and give an example oracle for a typical test-case.

Category

Academic chapter/article/Conference paper

Language

English

Author(s)

  • Andreas Svendsen
  • Øystein Haugen
  • Birger Møller-Pedersen

Affiliation

  • University of Oslo
  • SINTEF Digital / Sustainable Communication Technologies

Year

2011

Publisher

Association for Computing Machinery (ACM)

Book

MoDeVVa : Proceedings of the 8th International Workshop on Model-Driven Engineering, Verification and Validation

ISBN

978-1-4503-0914-1

View this publication at Cristin