Towards Testing Model Transformation Chains Using Precondition Construction in Algebraic Graph Transformation

Complex model-based tools such as code generators are typi- cally designed as chains of model transformations taking as input a model of a software application and transforming it through several intermedi- ate steps and representations. The complexity of intermediate models is such that testing is more conveniently done on the integrated chain, with test models expressed in the input language. To achieve a high test cover- age, existing transformation analyses automatically generate constraints guiding the generation of test models. However, these so called test ob- jectives are expressed on the complex intermediate models. We propose to back-propagate test objectives along the chain into constraints and test models in the input language, relying on precondition construction in the theory of Algebraic Graph Transformation. This paper focuses on a one-step back-propagation.

[1]  Hartmut Ehrig,et al.  Fundamentals of Algebraic Graph Transformation (Monographs in Theoretical Computer Science. An EATCS Series) , 1992 .

[2]  Gabriele Taentzer,et al.  Translation of Restricted OCL Constraints into Graph Constraints for Generating Meta Model Instances by Graph Grammars , 2008, GT-VMT@ETAPS.

[3]  Gregor Engels,et al.  Test Suite Quality for Model Transformation Chains , 2011, TOOLS.

[4]  Detlef Plump,et al.  A Hoare Calculus for Graph Programs , 2010, ICGT.

[5]  W. Marsden I and J , 2012 .

[6]  Alan Bundy,et al.  Constructing Induction Rules for Deductive Synthesis Proofs , 2006, CLASE.

[7]  Jordi Cabot,et al.  EMFtoCSP: A tool for the lightweight verification of EMF models , 2012, 2012 First International Workshop on Formal Methods in Software Engineering: Rigorous and Agile Approaches (FormSERA).

[8]  Yves Le Traon,et al.  Barriers to systematic model transformation testing , 2010, Commun. ACM.

[9]  Esther Guerra,et al.  Specification-Driven Test Generation for Model Transformations , 2012, ICMT@TOOLS.

[10]  Juan de Lara,et al.  Synthesis of OCL Pre-conditions for Graph Transformation Rules , 2010, ICMT@TOOLS.

[11]  Annegret Habel,et al.  Weakest Preconditions for High-Level Programs , 2006, ICGT.

[12]  Jordi Cabot,et al.  ATLTest: a white-box test generation approach for ATL transformations , 2012, MODELS'12.

[13]  Frédéric Jouault,et al.  Transforming Models with ATL , 2005, MoDELS.

[14]  Gabriele Taentzer,et al.  Formal foundation of consistent EMF model transformations by algebraic graph transformation , 2011, Software & Systems Modeling.

[15]  Jordi Cabot,et al.  Static Analysis of Model Transformations for Effective Test Generation , 2012, 2012 IEEE 23rd International Symposium on Software Reliability Engineering.