Skip to main content

Improving Test Coverage for UML State Machines Using Transition Instrumentation

  • Conference paper
Computer Safety, Reliability, and Security (SAFECOMP 2007)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4680))

Included in the following conference series:

Abstract

We discuss the problem of generating test suites from UML state machines and present a method to extend the capabilities of existing automated test case generators. Current tools provide only a limited coverage for different testing objectives. We argue that a better coverage can be achieved by instrumenting transitions, and performing an appropriate pre- and postprocessing. We describe the necessary enhancements of the UML model and demonstrate our method on a simple example. We further report on an industrial case study where we successfully applied our method for generating a validation test suite for a safety-relevant communication protocol.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Gill, A.: Introduction to Theory of Finite-state Machines. McGraw-Hill Education, New York (1962)

    MATH  Google Scholar 

  2. Harel, D.: Statecharts: A visual formalism for complex systems. Science of Computer Programming 8(3), 231–274 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  3. Object Management Group: Unified Modeling Language: Superstructure, version 2.0 (formal/05-07-04) (2005)

    Google Scholar 

  4. The Mathworks: Stateflow, http://www.mathworks.com/products/stateflow/

  5. Binder, R.V.: Testing Object-Oriented Systems: Models, Patterns, and Tools. Object Technology Series. Addison-Wesley, Reading (1999)

    Google Scholar 

  6. Hayhurst, K.J., Veerhusen, D.S., Chilenski, J.J., Rierson, L.K.: A practical tutorial on modified condition/decision coverage. Technical Report NASA/TM-2001-210876, NASA (2001)

    Google Scholar 

  7. Chow, T.: Testing software design modeled by finite-state machines. IEEE Transactions on Software Engineering SE-4, 178–187 (1978)

    Article  Google Scholar 

  8. Sabnani, K., Dahbura, A.: A protocol test generation procedure. Computer Networks and ISDN Systems 15(4), 285–297 (1988)

    Article  Google Scholar 

  9. Wang, C.J., Liu, M.T.: Generating test cases for EFSM with given fault models. In: INFOCOM, pp. 774–781 (1993)

    Google Scholar 

  10. Petrenko, A., Boroday, S., Groz, R.: Confirming configurations in EFSM testing. IEEE Trans. Softw. Eng. 30(1), 29–42 (2004)

    Article  Google Scholar 

  11. Hong, H.S., Kim, Y.G., Cha, S.D., Bae, D.H., Ural, H.: A test sequence selection method for statecharts. Software Testing, Verification and Reliability 10(4), 203–227 (2000)

    Article  Google Scholar 

  12. Gnesi, S., Latella, D., Massink, M.: Formal test-case generation for UML statecharts. In: ICECCS 2004: Proceedings of the Ninth IEEE International Conference on Engineering Complex Computer Systems Navigating Complexity in the e-Engineering Age (ICECCS 2004), pp. 75–84. IEEE Computer Society Press, Washington, DC, USA (2004)

    Google Scholar 

  13. I-Logix: Rhapsody Automatic Test Generator, Release 2.3, User Guide (2004)

    Google Scholar 

  14. Conformiq Software Ltd.: Conformiq test generator, http://www.conformiq.com/

  15. Reactive Systems Inc.: Reactis, http://www.reactive-systems.com/

  16. Hartman, A.: Agedis final project report. Technical report, AGEDIS Consortium (2004)

    Google Scholar 

  17. Santen, T., Seifert, D.: TEAGER - test automation for UML state machines. In: Biel, B., Book, M., Gruhn, V. (eds.) Software Engineering. LNI., GI, vol. 79, pp. 73–84 (2006)

    Google Scholar 

  18. Fernandez, J.C., Jard, C., Jéron, T., Viho, C.: Using on-the-fly verification techniques for the generation of test suites. In: CAV 1996: Proceedings of the 8th International Conference on Computer Aided Verification, London, UK, pp. 348–359. Springer, Heidelberg (1996)

    Google Scholar 

  19. Tretmans, J., Brinksma, E.: Côte de resyste – automated model based testing. In: Schweizer, M. (ed.) Progress 2002 – 3rd Workshop on Embedded Systems, Utrecht, The Netherlands, pp. 246–255. STW Technology Foundation (October 24, 2002)

    Google Scholar 

  20. Lugato, D., Bigot, C., Valot, Y., Gallois, J.P., Gerard, S., Terrier, F.: Validation and automatic test generation on UML models: the AGATHA approach. Journal of Software Technology Transfer  (2004)

    Google Scholar 

  21. Houdek, F., Paech, B.: Das Türsteuergerät - eine Beispielspezifikation. IESE-Report Nr. 002.02/D, Fraunhofer IESE (2002)

    Google Scholar 

  22. Denger, C., Kerkow, D., von Knethen, A., Medina Mora, M., Paech, B.: Richtlinien - Von Use Cases zu Statecharts in 7 Schritten. IESE-Report Nr. 086.02/D, Fraunhofer IESE (2002)

    Google Scholar 

  23. I-Logix: Rhapsody in C++, Version 6.0, User Guide (2004)

    Google Scholar 

  24. RTCA: DO-178B, Software considerations in airborne systems and equipment certification (1992)

    Google Scholar 

  25. Naito, S., Tsunoyama, M.: Fault detection for sequential machines by transition tours. In: Proccedings of the 11th. IEEE Fault Tolerant Computing Symposium, pp. 238–243. IEEE Computer Society Press, Los Alamitos (1981)

    Google Scholar 

  26. Object Management Group: XML Metadata Interchange (XMI) Specification. OMG (2003), http://www.omg.com/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Francesca Saglietti Norbert Oster

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Friske, M., Schlingloff, BH. (2007). Improving Test Coverage for UML State Machines Using Transition Instrumentation. In: Saglietti, F., Oster, N. (eds) Computer Safety, Reliability, and Security. SAFECOMP 2007. Lecture Notes in Computer Science, vol 4680. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-75101-4_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-75101-4_30

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-75100-7

  • Online ISBN: 978-3-540-75101-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics