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.
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
Ammann, P., Offutt, J.: Introduction to Software Testing, 1st edn. Cambridge University Press, New York (2008)
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)
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)
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)
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)
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)
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)
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)
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)
Ciancone, A., Filieri, A., Mirandola, R.: MANTra: Towards Model Transformation Testing. In: QUATIC 2010, pp. 97–105. IEEE (2010)
Darabos, A., Pataricza, A., Varró, D.: Towards Testing the Implementation of Graph Transformations. ENTCS 211, 75–85 (2008)
DeMillo, R., Lipton, R., Sayward, F.: Hints on Test Data Selection: Help for the Practicing Programmer. Computer 11(4), 34–41 (1978)
DeMillo, R., Offutt, J.: Constraint-based Automatic Test Data Generation. Software Engineering, IEEE Transactions on 17(9), 900–910 (1991)
Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Springer (2006)
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)
Fleurey, F., Baudry, B., Muller, P.A., Traon, Y.: Qualifying input test data for model transformations. SoSyM 8, 185–203 (2009)
Geiger, L.: Fehlersuche im Modell – Modellbasiertes Testen und Debuggen. Ph.D. thesis, Universität Kassel (2011)
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)
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)
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)
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)
McQuillan, J., Power, J.: White-Box Coverage Criteria for Model Transformations. In (prel.) Proc. MtATL 2009, pp. 63–77. AtlanMod INRIA & EMN (2009)
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)
Rozenberg, G. (ed.): Handbook of graph grammars and computing by graph transformation: volume I. foundations. World Scientific, River Edge (1997)
Schmidt, D.: Guest Editor’s Introduction: Model-Driven Engineering. IEEE Computer Society Computer 39(2), 25–31 (2006)
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)
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)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)