Skip to main content

Systematic Testing of Graph Transformations: A Practical Approach Based on Graph Patterns

  • Conference paper
Theory and Practice of Model Transformations (ICMT 2013)

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

Abstract

Correctness is an essential property of model transformations. Although testing is a well-accepted method for assuring software quality in general, the properties of declarative transformation languages often prevent a direct application of testing strategies from imperative programming languages. A key challenge of transformation testing concerns limiting the testing effort by a good stop criterion. In this work, we tackle this issue for programmed graph transformations, and present a practical methodology to derive sufficient test suites based on a new coverage notion inspired by mutation analysis. We systematically generate requirement (graph) patterns from the transformation under test, applying different requirement construction strategies, and analyze the approach in terms of practicability, test suite quality and the ability to guide and support test case construction.

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 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 72.00
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. Ammann, P., Offutt, J.: Introduction to Software Testing, 1st edn. Cambridge University Press, New York (2008)

    Book  MATH  Google Scholar 

  2. Anjorin, A., Lauder, M., Patzina, S., Schürr, A.: eMoflon: Leveraging EMF and Professional CASE Tools. In: INFORMATIK 2011. LNI, vol. 192, p. 281. GI (2011)

    Google Scholar 

  3. Anjorin, A., Oster, S., Zorcic, I., Schürr, A.: Optimizing Model-Based Software Product Line Testing with Graph Transformations. In: Margaria, T., Padberg, J., Taentzer, G. (eds.) Proc. GT-VMT 2012. Electr. Comms. of the EASST, vol. 47, EASST (2012)

    Google Scholar 

  4. Baldan, P., König, B., Stürmer, I.: Generating Test Cases for Code Generators by Unfolding Graph Transformation Systems. In: Ehrig, H., Engels, G., Parisi-Presicce, F., Rozenberg, G. (eds.) ICGT 2004. LNCS, vol. 3256, pp. 194–209. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  5. Baudry, B., Dinh-Trong, T., Mottu, J.M., Simmonds, D., France, R., Ghosh, S., Fleurey, F., Le Traon, Y.: Model transformation testing challenges. In: Proc. ECMDA workshop on Integration of MDD and MDT, Bilbao, Spain (2006)

    Google Scholar 

  6. Baudry, B., Ghosh, S., Fleurey, F., France, R., Le Traon, Y., Mottu, J.M.: Barriers to Systematic Model Transformation Testing. Commun. ACM 53(6), 139–143 (2010)

    Article  Google Scholar 

  7. Bauer, E., Küster, J.M., Engels, G.: Test Suite Quality for Model Transformation Chains. In: Bishop, J., Vallecillo, A. (eds.) TOOLS 2011. LNCS, vol. 6705, pp. 3–19. Springer, Heidelberg (2011)

    Chapter  Google Scholar 

  8. Benavides, D., Segura, S., Ruiz-Cortés, A.: Automated analysis of feature models 20 years later: A literature review. Inf. Syst. 35(6), 615–636 (2010)

    Article  Google Scholar 

  9. Cabot, J., Claris, R., Guerra, E., de Lara, J.: A UML/OCL framework for the analysis of graph transformation rules. SoSyM 9, 335–357 (2010)

    Article  Google Scholar 

  10. Ciancone, A., Filieri, A., Mirandola, R.: MANTra: Towards Model Transformation Testing. In: QUATIC 2010, pp. 97–105. IEEE (2010)

    Google Scholar 

  11. Darabos, A., Pataricza, A., Varró, D.: Towards Testing the Implementation of Graph Transformations. ENTCS 211, 75–85 (2008)

    Google Scholar 

  12. DeMillo, R., Lipton, R., Sayward, F.: Hints on Test Data Selection: Help for the Practicing Programmer. Computer 11(4), 34–41 (1978)

    Article  Google Scholar 

  13. DeMillo, R., Offutt, J.: Constraint-based Automatic Test Data Generation. Software Engineering, IEEE Transactions on 17(9), 900–910 (1991)

    Article  Google Scholar 

  14. Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Springer (2006)

    Google Scholar 

  15. Fischer, T., Niere, J., Torunski, L., Zündorf, A.: Story Diagrams: A New Graph Rewrite Language Based on the Unified Modeling Language and Java. In: Ehrig, H., Engels, G., Kreowski, H.-J., Rozenberg, G. (eds.) TAGT 1998. LNCS, vol. 1764, pp. 296–309. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  16. Fleurey, F., Baudry, B., Muller, P.A., Traon, Y.: Qualifying input test data for model transformations. SoSyM 8, 185–203 (2009)

    Article  Google Scholar 

  17. Geiger, L.: Fehlersuche im Modell – Modellbasiertes Testen und Debuggen. Ph.D. thesis, Universität Kassel (2011)

    Google Scholar 

  18. Guerra, E.: Specification-driven test generation for model transformations. In: Hu, Z., de Lara, J. (eds.) ICMT 2012. LNCS, vol. 7307, pp. 40–55. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  19. Heckel, R., Mariani, L.: Automatic Conformance Testing of Web Services. In: Cerioli, M. (ed.) FASE 2005. LNCS, vol. 3442, pp. 34–48. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  20. Hildebrandt, S., Lambers, L., Giese, H., Petrick, D., Richter, I.: Automatic Conformance Testing of Optimized Triple Graph Grammar Implementations. In: Schürr, A., Varró, D., Varró, G. (eds.) AGTIVE 2011. LNCS, vol. 7233, pp. 238–253. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  21. Küster, J.M., Abd-El-Razik, M.: Validation of Model Transformations – First Experiences Using a White Box Approach. In: Kühne, T. (ed.) MoDELS 2006. LNCS, vol. 4364, pp. 193–204. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  22. McQuillan, J., Power, J.: White-Box Coverage Criteria for Model Transformations. In (prel.) Proc. MtATL 2009, pp. 63–77. AtlanMod INRIA & EMN (2009)

    Google Scholar 

  23. Mottu, J.-M., Baudry, B., Le Traon, Y.: Mutation Analysis Testing for Model Transformations. In: Rensink, A., Warmer, J. (eds.) ECMDA-FA 2006. LNCS, vol. 4066, pp. 376–390. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  24. Rozenberg, G. (ed.): Handbook of graph grammars and computing by graph transformation: volume I. foundations. World Scientific, River Edge (1997)

    Google Scholar 

  25. Schmidt, D.: Guest Editor’s Introduction: Model-Driven Engineering. IEEE Computer Society Computer 39(2), 25–31 (2006)

    Google Scholar 

  26. Sen, S., Baudry, B., Mottu, J.-M.: Automatic Model Generation Strategies for Model Transformation Testing. In: Paige, R.F. (ed.) ICMT 2009. LNCS, vol. 5563, pp. 148–164. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  27. Wieber, M., Schürr, A.: Gray Box Coverage Criteria for Testing Graph Pattern Matching. In: Krause, C., Westfechtel, B. (eds.) Proc. GraBaTs 2012. Electronic Communications of the EASST, vol. 54, EASST (2012)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wieber, M., Schürr, A. (2013). Systematic Testing of Graph Transformations: A Practical Approach Based on Graph Patterns. In: Duddy, K., Kappel, G. (eds) Theory and Practice of Model Transformations. ICMT 2013. Lecture Notes in Computer Science, vol 7909. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38883-5_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-38883-5_18

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-38882-8

  • Online ISBN: 978-3-642-38883-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics