Model-based Test Script Generation

Model-driven Test Script Generation from Abstract Test Data Models

Application systems represent an important group of software systems in today’s companies. One main characteristic of these systems is their usage of databases to store customer or product information. However, the databases can add additional complexity to the testing activities because different test cases may require the databases to contain specific but different information.

As it is essential for the functional testing of application systems to have a database containing the right test data, processes and techniques to provide the data are necessary parts of the test preparation.

Previous work focussed on generating test data from test design specifications. However, the generated test data is still in an platform-independent object-oriented but abstract format. In order to use the generated test data in actual automated tests, the data must be transformed into a platform-specific format.


The goal of this thesis is to develop a Model-driven Architecture to transform models of abstract test data into platform-specific test data formats such as Hibernate, SQL, XML, JSON, CSV etc.

Open questions in this context are

  • How should the transformations be designed in order to be extendable and customizable for a variety of different systems under test?
  • Does the target data format require certain constraints on the source data format?

Possible Tasks

  • Analyze popular and common data formats (SQL, XML, JSON, CSV, etc.)
  • Analyze popular and common test execution frameworks (JUnit, TestNG, Robot, …)
  • Create an extendable architecture and transformations based on the previous analysis
  • Implement the architecture using Eclipse EMF to demonstrate and evaluate the applicability
  • Implement additional constraints to ensure well-formedness of input and output models

Further Information

  • Steinberg, D.; Budinsky, F.; Paternostro, M. & Merks, E. EMF: Eclipse Modeling Framework, Addison-Wesley Professional, 2008
  • Lämmel, R.; Meijer, E. Mappings make data processing go ‘round. In Proceedings of the 2005 international conference on Generative and Transformational Techniques in Software Engineering (GTTSE'05)
  • Ralf Lämmel and Erik Meijer. 2006. Revealing the X/O impedance mismatch: changing lead into gold. In Proceedings of the 2006 international conference on Datatype-generic programming (SSDGP'06)
  • Meijer, Erik, Wolfram Schulte, and Gavin Bierman. Unifying tables, objects, and documents. Workshop on Declarative Programming in the Context of Object-Oriented Languages. 2003.
  • Meijer, Erik, Wolfram Schulte, and Gavin Bierman. Programming with circles, triangles and rectangles. XML Conference and Exposition. Vol. 85. 2003.


  • Language: German, English


Project information



Thesis for degree:



Stefan Ossendorf