Automated inference of likely metamorphic relations for model transformations

被引:27
|
作者
Troya, Javier [1 ,2 ]
Segura, Sergio [1 ]
Ruiz-Cortes, Antonio [1 ]
机构
[1] Univ Seville, Dept Comp Languages & Syst, Seville, Spain
[2] Univ Seville, ETS Ingn Informat, Room E0-40-A,Avda Reina Mercedes S-N, E-41012 Seville, Spain
关键词
Model-Driven engineering; Metamorphic testing; Metamorphic relations; Model transformations; Automatic inference; Generic approach; SOFTWARE; VALIDATION; ATL;
D O I
10.1016/j.jss.2017.05.043
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Model transformations play a cornerstone role in Model-Driven Engineering (MDE) as they provide the essential mechanisms for manipulating and transforming models. Checking whether the output of a model transformation is correct is a manual and error-prone task, referred to as the oracle problem. Metamorphic testing alleviates the oracle problem by exploiting the relations among different inputs and outputs of the program under test, so-called metamorphic relations (MRs). One of the main challenges in metamorphic testing is the automated inference of likely MRs. This paper proposes an approach to automatically infer likely MRs for ATL model transformations, where the tester does not need to have any knowledge of the transformation. The inferred MRs aim at detecting faults in model transformations in three application scenarios, namely regression testing, incremental transformations and migrations among transformation languages. In the experiments performed, the inferred likely MRs have proved to be quite accurate, with a precision of 96.4% from a total of 4101 true positives out of 4254 MRs inferred. Furthermore, they have been useful for identifying mutants in regression testing scenarios, with a mutation score of 93.3%. Finally, our approach can be used in conjunction with current approaches for the automatic generation of test cases. (C) 2017 Elsevier Inc. All rights reserved.
引用
收藏
页码:188 / 208
页数:21
相关论文
共 50 条
  • [1] Demystifying Model Transformations: An Approach Based on Automated Rule Inference
    Nanda, Mangala Gowri
    Mani, Senthil
    Sinha, Vibha Singhal
    Sinha, Saurabh
    [J]. OOPSLA 2009, CONFERENCE PROCEEDINGS, 2009, : 341 - 360
  • [2] Demystifying Model Transformations: An Approach Based on Automated Rule Inference
    Nanda, Mangala Gowri
    Mani, Senthil
    Sinha, Vibha Singhal
    Sinha, Saurabh
    [J]. ACM SIGPLAN NOTICES, 2009, 44 (10) : 341 - 360
  • [3] Dynamic Inference of Likely Metamorphic Properties to Support Differential Testing
    Su, Fang-Hsiang
    Bell, Jonathan
    Murphy, Christian
    Kaiser, Gail
    [J]. 10TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TEST AST 2015, 2015, : 55 - 59
  • [4] An Automated Metamorphic Testing Technique for Designing Effective Metamorphic Relations
    Gagandeep
    Singh, Gurdeepak
    [J]. CONTEMPORARY COMPUTING, 2012, 306 : 152 - +
  • [5] Metamorphic Testing in Fault Localization of Model Transformations
    Du, Keke
    Jiang, Mingyue
    Ding, Zuohua
    Huang, Hongyun
    Shu, Ting
    [J]. STRUCTURED OBJECT-ORIENTED FORMAL LANGUAGE AND METHOD (SOFL+MSVL 2019), 2020, 12028 : 299 - 314
  • [6] Automated Generation of Metamorphic Relations for Query-Based Systems
    Segura, Sergio
    Alonso, Juan C.
    Martin-Lopez, Alberto
    Duran, Amador
    Troya, Javier
    Ruiz-Cortes, Antonio
    [J]. 2022 IEEE/ACM 7TH INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2022), 2022, : 48 - 55
  • [7] Most Likely Transformations
    Hothorn, Torsten
    Moest, Lisa
    Buehlmann, Peter
    [J]. SCANDINAVIAN JOURNAL OF STATISTICS, 2018, 45 (01) : 110 - 134
  • [8] METAMORPHIC SYSTEM TRANSFORMATIONS
    TASCHDJIAN, E
    [J]. CYBERNETICA, 1985, 28 (04): : 273 - 284
  • [9] MUT Model: a metric for characterizing metamorphic relations diversity
    Xie, Xiaodong
    Li, Zhehao
    Chen, Jinfu
    Zhang, Yue
    Wang, Xiangxiang
    Kudjo, Patrick Kwaku
    [J]. SOFTWARE QUALITY JOURNAL, 2024, : 1413 - 1455
  • [10] Automated Metamorphic Testing using Transitive Relations for Specializing Stance Detection Models
    Arno, Alisa
    Iwama, Futoshi
    Takeuchi, Mikio
    [J]. 2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE, ICSE-SEIP, 2023, : 467 - 470