Skip to main content

Transforming Graph Based Scenarios into Graph Transformation Based JUnit Tests

  • Conference paper
Applications of Graph Transformations with Industrial Relevance (AGTIVE 2003)

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

Abstract

This paper describes how the Fujaba CASE tool supports a semi-automatic transformation of usecase scenarios specified by so called story boards into automatic test specifications and test implementations. A story board is a sequence of graph snapshots showing the evolution of a graph based object structure during a typical example execution of an usecase. From such an example execution we automatically derive a test specification that executes the following three basic steps: First, a graph transformation is generated that creates an object structure serving as the test bed for the following steps. Second, we generate an operation that invokes the core method realizing the corresponding usecase. Third, we generate a graph test with a left-hand side corresponding to the graph structure described as result in the story board. On test execution, this graph test validates whether the object structure resulting from the usecase execution matches the results modeled in the usecase scenario. Support for this approach has been implemented within the Fujaba case tool. The approach has been validated in a major research project and in several student projects.

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. Beck, K.: Extreme Programming Explained: Embrace Change. Addison-Wesley, Reading (1999) ISBN 0-201-61641-6

    Google Scholar 

  2. Diethelm, I., Geiger, L., Maier, T., Zündorf, A.: Turning Collaboration Diagram Strips into Storycharts. In: Workshop on Scenarios and state machines: models, algorithms, and tools, ICSE 2002, Orlando, Florida, USA (2002)

    Google Scholar 

  3. Fujaba Homepage, Universität Paderborn, http://www.fujaba.de/

  4. Jacobson, I., Booch, G., Rumbaugh, J.: The Unified Software Development Process. Addison-Wesley, Reading (1999) ISBN 0-201-57169-2

    Google Scholar 

  5. Koskimies, K., Männistö, T., Systä, T., Tuomi, J.: SCED - An environment for dynamic modeling in object-oriented software construction. In: Proc. Nordic Workshop on Programming Environment Research 1994 (NWPER 1994), Lund, Department of Computer Science, Lund Institute of Technology, Lund University, pp. 217–230 (1994)

    Google Scholar 

  6. Köhler, H., Nickel, U., Niere, J., Zündorf, A.: Integrating UML Diagrams for Production Control Systems. In: Proc. of ICSE 2000 - The 22nd International Conference on Software Engineering, Limerick, Ireland, June 4-11, pp. 241–251. ACM press, New York (2000)

    Chapter  Google Scholar 

  7. Mäkinen, E., Systä, T.: MAS: An Interactive Synthesizer to Support Behavioral Modeling in UML. In: Proc. 23rd International Conference on Software Engineering (ICSE 2001), Toronto, Canada, ACM Press, New York (2001)

    Google Scholar 

  8. Maier, T., Zündorf, A.: The Fujaba Statechart Synthesis Approach. In: 2nd International Workshop on Scenarios and State Machines: Models, Algorithms, and Tools (ICSE 2003), Portland, Oregon, USA (2003)

    Google Scholar 

  9. Nickel, U., Schäfer, W., Zündorf, A.: Integrative Specification of Distributed Production Control Systems for Flexible Automated Manufacturing. In: Nagl, M., Westfechtel, B. (eds.) Modelle Werkzeuge und Infrastrukturen zur Unterstützung von Entwicklungsprozessen, Wiley-VCH, Chichester (2003)

    Google Scholar 

  10. Somé, S.: Beyond Scenarios: Generating State Models from Use Cases. In: Scenarios and state machines: models, algorithms, and tools (ICSE 2002 Workshop), Orlando, Florida, USA (2002)

    Google Scholar 

  11. Whittle, J., Schumann, J.: Statechart Synthesis From Scenarios: an Air Traffic Control Case Study. In: Scenarios and state machines: models, algorithms, and tools (ICSE 2002 Workshop), Orlando, Florida, USA (2002)

    Google Scholar 

  12. Zündorf, A.: Rigorous Object Oriented Software Development, Habilitation Thesis, University of Paderborn (2001)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Geiger, L., Zündorf, A. (2004). Transforming Graph Based Scenarios into Graph Transformation Based JUnit Tests. In: Pfaltz, J.L., Nagl, M., Böhlen, B. (eds) Applications of Graph Transformations with Industrial Relevance. AGTIVE 2003. Lecture Notes in Computer Science, vol 3062. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-25959-6_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-25959-6_5

  • Publisher Name: Springer, Berlin, Heidelberg

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

  • Online ISBN: 978-3-540-25959-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics