Skip to main content

Automating test case generation from Z specifications with Isabelle

  • Conference paper
  • First Online:
ZUM '97: The Z Formal Specification Notation (ZUM 1997)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1212))

Included in the following conference series:

Abstract

We use a structure preserving encoding of Z in the higher-order logic instance of the generic theorem prover Isabelle to derive test cases from Z specifications. This work shows how advanced theorem provers can be used with little effort to provide tool support for Z beyond mere type-checking. Experience with a non-trivial example shows that modular reasoning according to the structure of a specification is crucial to keep the proof-load manageable in practical applications. Support for modular reasoning can be based on higher-order equational reasoning as implemented in Isabelle.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. J. P. Bowen and J. A. Hall, editors. Z User Workshop, Workshops in Computing. Springer Verlag, 1994.

    Google Scholar 

  2. J. P. Bowen and M. G. Hinchey, editors. ZUM'95: The Z Formal Specification Notation, LNCS 967. Springer Verlag, 1995.

    Google Scholar 

  3. R. Büssow and M. Weber. A Steam-Boiler Control Specification using Statecharts and Z. In J. R. Abrial, editor, Formal methods for industrial applications: specifying and programming the Steam Boiler Control, LNCS 1165. Springer Verlag, 1996.

    Google Scholar 

  4. E. Cusack and G. H. B. Rafsanjani. ZEST. In S. Stepney, R. Barden, and D. Cooper, editors, Object-Orientation in Z, Workshops in Computing. Springer Verlag, 1992.

    Google Scholar 

  5. J. Dick and A. Faivre. Automating the generation and sequencing of test cases from model-based specifications. In Woodcock and Larsen [17], pages 268–284.

    Google Scholar 

  6. M.-C. Gaudel. Testing can be formal, too. In P. D. Mosses, M. Nielsen, and M. I. Schwartzbach, editors, TAPSOFT '95: Theory and Practice of Software Development, LNCS 915, pages 82–96. Springer Verlag, 1995.

    Google Scholar 

  7. M. J. C. Gordon and T. M. Melham. Introduction to HOL: A theorem proving environment for higher order logics. Cambridge University Press, 1993.

    Google Scholar 

  8. H.-M. Hörcher. Improving software tests using Z specifications. In Bowen and Hinchey [2], pages 152–166.

    Google Scholar 

  9. Kolyang, T. Santen, and B. Wolff. A structure preserving encoding of Z in Isabelle/HOL. In J. von Wright, J. Grundy, and J. Harrison, editors, Theorem Proving in Higher-Order Logics, LNCS 1125, pages 283–298. Springer Verlag, 1996.

    Google Scholar 

  10. E. Mikk. Compilation of Z specifications into C for automatic test result evaluation. In Bowen and Hinchey [2], pages 167–180.

    Google Scholar 

  11. J. Nicholls. Z Notation — version 1.2. Draft ISO standard, 1995.

    Google Scholar 

  12. L. C. Paulson. Isabelle — A Generic Theorem Prover. LNCS 828. Springer Verlag, 1994.

    Google Scholar 

  13. H. Singh, M. Conrad, G. Egger, and S. Sadeghipour. Tool-supported test case design based on Z and the classification-tree method, 1996. Proc. Second Workshop on Systems for Computer-Aided Specification, Development and Verification, to appear.

    Google Scholar 

  14. J. M. Spivey. The Fcuzz manual. Computing Science Consultancy, Oxford, UK, 1992.

    Google Scholar 

  15. J. M. Spivey. The Z Notation — A Reference Manual. Prentice Hall, 2nd edition, 1992.

    Google Scholar 

  16. S. Stepney. Testing as abstraction. In Bowen and Hinchey [2], pages 137–151.

    Google Scholar 

  17. J. C. P. Woodcock and P. G. Larsen, editors. FME '93: Industrial-Strength Formal Methods, LNCS 670. Springer Verlag, 1993.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Jonathan P. Bowen Michael G. Hinchey David Till

Rights and permissions

Reprints and permissions

Copyright information

© 1997 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Helke, S., Neustupny, T., Santen, T. (1997). Automating test case generation from Z specifications with Isabelle. In: Bowen, J.P., Hinchey, M.G., Till, D. (eds) ZUM '97: The Z Formal Specification Notation. ZUM 1997. Lecture Notes in Computer Science, vol 1212. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0027283

Download citation

  • DOI: https://doi.org/10.1007/BFb0027283

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-62717-3

  • Online ISBN: 978-3-540-68490-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics