Skip to main content

2003 | OriginalPaper | Buchkapitel

Using Spin to Generate Tests from ASM Specifications

verfasst von : Angelo Gargantini, Elvinia Riccobene, Salvatore Rinzivillo

Erschienen in: Abstract State Machines 2003

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

In this paper we introduce an algorithm to automatically encode an ASM specification in PROMELA, the language of the model checker Spin, and we present a method exploitingthe counter example generation feature of Spin, to automatically generate from ASM specifications test sequences which accomplish a desired coverage. ASMs are used as test oracles to predict the expected outputs of units under test. A prototype tool that implements the proposed method is also presented. Experimental results in evaluatingthe method are reported. The experiments include test sequence generation, tests execution, code coverage measurement for a case study implemented in Java, and comparison with random tests generation. Benefits and limitations in using model checkingare discussed.

Metadaten
Titel
Using Spin to Generate Tests from ASM Specifications
verfasst von
Angelo Gargantini
Elvinia Riccobene
Salvatore Rinzivillo
Copyright-Jahr
2003
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/3-540-36498-6_15

Neuer Inhalt