Testing against visual contracts: model-based coverage

  • Authors:
  • Tamim Ahmed Khan;Olga Runge;Reiko Heckel

  • Affiliations:
  • Department of Computer Sciences, Leicester University, UK;Department of Software Engineering and Theoretical Computer Science, TU-Berlin, Germany;Department of Computer Sciences, Leicester University, UK

  • Venue:
  • ICGT'12 Proceedings of the 6th international conference on Graph Transformations
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Testing service-oriented or component-based systems poses new challenges due to the non-availability of code and the distributed nature of the applications being tested. Structural coverage criteria, traditionally used to assess test suites, require access to code. As an alternative we consider model-based criteria based on interface specifications using visual contracts. Formally represented as graph transformation rules, visual contracts are analysed for potential dependencies and conflicts and dependency graphs are derived for defining the criteria. In order to assess the coverage of a given set of tests, AGG is used for simulating the model while tests are executed. In the course of the simulation, which also serves as a test oracle, conflicts and dependencies are observed and recorded. This allows us to see if the statically detected potential dependencies and conflicts are exercised at runtime. For evaluation purposes, we compare coverage with respect to model-based criteria and traditional structural ones.