Applying SMT Solvers to the Test Template Framework

Maximiliano Cristiá
(CIFASIS and UNR)
Claudia Frydman
(LSIS-CIFASIS)

The Test Template Framework (TTF) is a model-based testing method for the Z notation. In the TTF, test cases are generated from test specifications, which are predicates written in Z. In turn, the Z notation is based on first-order logic with equality and Zermelo-Fraenkel set theory. In this way, a test case is a witness satisfying a formula in that theory. Satisfiability Modulo Theory (SMT) solvers are software tools that decide the satisfiability of arbitrary formulas in a large number of built-in logical theories and their combination. In this paper, we present the first results of applying two SMT solvers, Yices and CVC3, as the engines to find test cases from TTF's test specifications. In doing so, shallow embeddings of a significant portion of the Z notation into the input languages of Yices and CVC3 are provided, given that they do not directly support Zermelo-Fraenkel set theory as defined in Z. Finally, the results of applying these embeddings to a number of test specifications of eight cases studies are analysed.

In Alexander K. Petrenko and Holger Schlingloff: Proceedings 7th Workshop on Model-Based Testing (MBT 2012), Tallinn, Estonia, 25 March 2012, Electronic Proceedings in Theoretical Computer Science 80, pp. 28–42.
Published: 27th February 2012.

ArXived at: https://dx.doi.org/10.4204/EPTCS.80.3 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org