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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Beck, K.: Extreme Programming Explained: Embrace Change. Addison-Wesley, Reading (1999) ISBN 0-201-61641-6
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)
Fujaba Homepage, Universität Paderborn, http://www.fujaba.de/
Jacobson, I., Booch, G., Rumbaugh, J.: The Unified Software Development Process. Addison-Wesley, Reading (1999) ISBN 0-201-57169-2
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)
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)
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)
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)
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)
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)
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)
Zündorf, A.: Rigorous Object Oriented Software Development, Habilitation Thesis, University of Paderborn (2001)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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