Automated Testing Support for Reactive Domain-Specific Modelling Languages

被引:11
|
作者
Meyers, Bart [1 ]
Denil, Joachim [1 ]
David, Istvan [1 ]
Vangheluwe, Hans [2 ,3 ]
机构
[1] Univ Antwerp, Modelling Simulat & Design Lab, Antwerp, Belgium
[2] McGill Univ, Modelling Simulat & Design Lab, Montreal, PQ, Canada
[3] Univ Antwerp, Antwerp, Belgium
关键词
Domain-Specific Modelling; Language Engineering; Model Testing;
D O I
10.1145/2997364.2997367
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Domain-specific modelling languages (DSML) enable domain users to model systems in their problem domain, using concepts and notations they are familiar with. The process of domain-specific modelling (DSM) consists of two stages: a language engineering stage where a DSML is created, and a system modelling stage where the DSML is used. Because techniques such as metamodelling and model transformation allow for an efficient creation of DSMLs, and using DSMLs significantly increases productivity, DSM is very suitable for early prototyping. Many systems that are modelled using DSMLs are reactive, meaning that during their execution, they respond to external input. Because of the complexity of input and response behaviour of reactive systems, it is desirable to test models as early as possible. However, while dedicated testing support for specific DSMLs has been provided, no systematic support exists for testing DSML models according to DSM principles. In this paper, we introduce a technique to automatically generate a domain-specific testing framework from an annotated DSML definition. In our approach, the DSML definition consists of a metamodel, a concrete syntax definition and operational semantics described as a schedule of graph rewrite rules, thus covering a large class of DSMLs. Currently, DSMLs with deterministic behaviour are supported, but we provide an outlook to other (nondeterministic, real-time or continuous-time) DSMLs. We illustrate the approach with a DSML for describing an elevator controller. We evaluate the approach and conclude that compared to the state-of-the-art, our testing support is significantly less costly, and similar or better (according to DSM principles) testing support is achieved. Additionally, the generative nature of the approach makes testing support for DSMLs less error-prone while catering the need for early testing.
引用
收藏
页码:181 / 194
页数:14
相关论文
共 50 条
  • [1] Domain-specific languages for ecological modelling
    Holst, Niels
    Belete, Getachew F.
    ECOLOGICAL INFORMATICS, 2015, 27 : 26 - 38
  • [2] Unit Testing for Domain-Specific Languages
    Wu, Hui
    Gray, Jeff
    Mernik, Marjan
    DOMAIN-SPECIFIC LANGUAGES, PROCEEDINGS, 2009, 5658 : 125 - +
  • [3] Testing domain-specific languages in eclipse
    Wu, Hui
    Gray, Jeff
    Proc Conf Object Orient Program Syst Lang Appl OOPSLA, (173-174):
  • [4] Modelling the Operational Semantics of Domain-Specific Modelling Languages
    Wachsmuth, Guido
    GENERATIVE AND TRANSFORMATIONAL TECHNIQUES IN SOFTWARE ENGINEERING II, 2008, 5235 : 506 - 520
  • [5] A framework for families of domain-specific modelling languages
    Braatz, Benjamin
    Brandt, Christoph
    SOFTWARE AND SYSTEMS MODELING, 2014, 13 (01): : 109 - 132
  • [6] A framework for families of domain-specific modelling languages
    Benjamin Braatz
    Christoph Brandt
    Software & Systems Modeling, 2014, 13 : 109 - 132
  • [7] Composition of multilevel domain-specific modelling languages
    Rodriguez, Alejandro
    Macias, Fernando
    Duran, Francisco
    Rutle, Adrian
    Wolter, Uwe
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2023, 130
  • [8] FPTC: Automated Safety Analysis for Domain-Specific Languages
    Paige, Richard F.
    Rose, Louis M.
    Ge, Xiaocheng
    Kolovos, Dimitrios S.
    Brooke, Phillip J.
    MODELS IN SOFTWARE ENGINEERING, 2009, 5421 : 229 - +
  • [9] Embedding domain-specific modelling languages in Maude specifications
    Vlad Rusu
    Software & Systems Modeling, 2013, 12 : 847 - 869
  • [10] DOMAIN-SPECIFIC LANGUAGES FOR AGILE URBAN POLICY MODELLING
    Kraemer, Michel
    Ludlow, David
    Khan, Zaheer
    PROCEEDINGS 27TH EUROPEAN CONFERENCE ON MODELLING AND SIMULATION ECMS 2013, 2013, : 673 - +