Title :
Static Analysis of Model Transformations for Effective Test Generation
Author :
Mottu, J.-M. ; Sen, Satyaki ; Tisi, M. ; Cabot, Jordi
Author_Institution :
LINA, LUNAM Univ., Nantes, France
Abstract :
Model transformations are an integral part of several computing systems that manipulate interconnected graphs of objects called models in an input domain specified by a metamodel and a set of invariants. Test models are used to look for faults in a transformation. A test model contains a specific set of objects, their interconnections and values for their attributes. Can we automatically generate an effective set of test models using knowledge from the transformation? We present a white-box testing approach that uses static analysis to guide the automatic generation of test inputs for transformations. Our static analysis uncovers knowledge about how the input model elements are accessed by transformation operations. This information is called the input metamodel footprint due to the transformation. We transform footprint, input metamodel, its invariants, and transformation pre-conditions to a constraint satisfaction problem in Alloy. We solve the problem to generate sets of test models containing traces of the footprint. Are these test models effective? With the help of a case study transformation we evaluate the effectiveness of these test inputs. We use mutation analysis to show that the test models generated from footprints are more effective (97.62% avg. mutation score) in detecting faults than previously developed approaches based on input domain coverage criteria (89.9% avg.) and unguided generation (70.1% avg.).
Keywords :
automatic test pattern generation; constraint satisfaction problems; graph theory; program diagnostics; software fault tolerance; Alloy; automatic test input generation; computing systems; constraint satisfaction problem; effective test generation; input domain coverage criteria; input metamodel footprint; interconnected object graphs; invariant set; metamodel; model transformations; mutation analysis; static analysis; test models; transformation operations; transformation preconditions; unguided generation; white-box testing approach; Analytical models; Data models; Electronic mail; Metals; Testing; Transforms; Unified modeling language; Alloy; Automatic Model Completion; Model Transformation Testing; Model-Driven Engineering; Mutation Analysis; White Box Testing;
Conference_Titel :
Software Reliability Engineering (ISSRE), 2012 IEEE 23rd International Symposium on
Conference_Location :
Dallas, TX
Print_ISBN :
978-1-4673-4638-2
DOI :
10.1109/ISSRE.2012.7