arrow
Return

Testing bidirectional model transformation using metamorphic testing

delete2018-12-01
delete10
PRE
AI
何啸 (Xiao He) *
陈星 (Xing Chen)
S
Sibo Cai
张瑛 (Ying Zhang)
G
Gang Huang
DOI:10.1016/j.infsof.2018.07.010delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Context In model-based software development, bidirectional model transformation (BX) provides a fundamental solution to model synchronization that can retain the consistency among models. Similar to conventional programs, a BX program may also contain bugs. Accordingly, a BX program must be tested prior to being used in practice. A challenging problem of testing BX programs is to construct test oracles (e.g., assertions and expected output models), which are usually difficult and/or expensive to manually specify. Objective: In we paper, we investigate how to alleviate the oracle problem in BX testing via reducing the costs of developing test oracles. Method: We propose a metamorphic testing approach for BX. First, we identify three generic metamorphic relations for BX. Afterwards, we define a metamodel MT4MT to establish metamorphic test groups and test scripts. We also propose a testing framework to support metamorphic testing based on MT4MT. Results: We conducted an experimental study of mutation analysis and a case study on three ATL-based ad-hoc BXs. The results of the experimental study and the case study showed that our approach killed 79.38% mutants and enabled us to test real-world ATL-based ad-hoc BXs. We also demonstrated that MT4MT can be used to test the semantics properties of BXs. Conclusion: Our approach is an effective and practical approach with lower costs of developing test oracles.
Keywords:
Metamorphic testing
Bidirectional model transformation
Model driven engineering
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.7K
Citations:
7.7K

Organization

P
peking university
Scholars:
11.7W
Papers: 8.7W
Citations: 146
F
fuzhou university
Scholars:
3.2W
Papers: 2.1W
Citations: 31