Towards Model-Based Testing of Domain-Specific Modelling Languages - - PowerPoint PPT Presentation

towards model based testing of domain specific modelling
SMART_READER_LITE
LIVE PREVIEW

Towards Model-Based Testing of Domain-Specific Modelling Languages - - PowerPoint PPT Presentation

Towards Model-Based Testing of Domain-Specific Modelling Languages J. Merilinna, Olli-Pekka Puolitaival, J. Prssinen VTT TECHNICAL RESEARCH CENTRE OF FINLAND Index Testing Domain-Specific Modelling Languages (DSML) Model-Based


slide-1
SLIDE 1

Towards Model-Based Testing of Domain-Specific Modelling Languages

  • J. Merilinna, Olli-Pekka Puolitaival, J. Pärssinen
slide-2
SLIDE 2

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

2

Index

  • Testing Domain-Specific Modelling Languages (DSML)
  • Model-Based Testing (MBT)
  • Application Testing
  • Modelling Language Testing
  • Test Suite Generation in Practice
  • Case Lego
  • Future research
slide-3
SLIDE 3

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

3

Testing Domain-Specific Modelling Languages (DSML)

  • Currently: Manual testing during iterative and incremental DSML

development

  • Problems:
  • Test applications in synch in metamodel?
  • Test coverage
  • How DSML testing can be systematized and automated?
slide-4
SLIDE 4

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

4

Model-Based Testing (MBT)

  • MBT is a black box testing

technique

  • Phases:
  • 1. Modelling
  • 2. Test generation
  • 3. Test execution
  • MBT is decreasing test suite

maintenance efforts and improves coverage.

Implementing MBT

Modelling Test case generation Test Execution

Application

Implementing Requirements

slide-5
SLIDE 5

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

5

Application Testing

  • Tests and the implementation

are generated from the same model

  • Code generator and metamodel

(from the utilized parts) are under testing

  • Comprehensive test suite is

automatically generated and always in synch with implementation

slide-6
SLIDE 6

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

6

Modelling Language Testing

  • One application can be

considered as one test case. Multiple test cases are required!

  • Metamodel describes rules of

the language

  • We argue that applications can

be generated from metamodel definitions

slide-7
SLIDE 7

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

7

Test Suite Generation in Practice

  • DSM tool requirements
  • Allows exporting the

metamodel and importing the application models

  • MetaEdit+ fulfils the

requirements

  • MBT tool requirements
  • Supports model importing

and exporting the test cases

  • Conformiq Qtronic fulfils

the requirements

Met2QML

Conformiq Qtronic Metaedit+ XML Test suite Code generator Mod2QML Q M L

Application models Application generator Test generator Metamodel Application model Metamodel Testing Application Test executor

Q M L

slide-8
SLIDE 8

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

8

Case Lego: Generating Application

Generated code

Compiling Application model Application Execution

slide-9
SLIDE 9

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

9

Application Model

slide-10
SLIDE 10

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

10

Generated Code

slide-11
SLIDE 11

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

11

Compiling

slide-12
SLIDE 12

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

12

Application Execution

slide-13
SLIDE 13

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

13

Case Lego: Generating Tests

Application model Model into QML format Test cases Test generation

slide-14
SLIDE 14

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

14

Application Model

slide-15
SLIDE 15

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

15

Transform the Model into QML Format

slide-16
SLIDE 16

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

16

Test Generation

slide-17
SLIDE 17

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

17

Test Execution

slide-18
SLIDE 18

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

18

Case Lego: One Generated Test Case

1. 1. 2. 2. 3. 3.

slide-19
SLIDE 19

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

19

Future Research

  • More applications model tests
  • Metamodel testing and make a demo of that
  • Identifying the most potential domains, and possible restrictions.
  • Identifying effects in quality, processes…
slide-20
SLIDE 20

VTT TECHNICAL RESEARCH CENTRE OF FINLAND

20

Questions?