Identifying metamorphic relations: A data mutation directed approach

被引:0
|
作者
Sun, Chang-ai [1 ]
Jin, Hui [1 ]
Wu, Siyi [1 ]
Fu, An [1 ]
Wang, Zuoyi [1 ]
Chan, Wing Kwong [2 ]
机构
[1] Univ Sci & Technol Beijing, Sch Comp & Commun Engn, Beijing, Peoples R China
[2] City Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
基金
北京市自然科学基金; 中国国家自然科学基金;
关键词
metamorphic relation; metamorphic testing; software testing; test Oracle; WEB SERVICES; SOFTWARE;
D O I
10.1002/spe.3280
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Metamorphic testing (MT) is an effective technique to alleviate the test oracle problem. The principle of MT is to detect failures by checking whether some necessary properties, commonly known as metamorphic relations (MRs), of software under test (SUT) hold among multiple executions of source and follow-up test cases. Since both the generation of follow-up test cases and test result verification depend on MRs, the identification of MRs plays a key role in MT, which is an important yet difficult task requiring deep domain knowledge of the SUT. Accordingly, techniques that can direct a tester to identify MRs effectively are desirable. In this paper, we propose mu$$ \mu $$MT, a data mutation directed approach to identifying MRs. mu$$ \mu $$MT guides a tester to identify MRs by providing a set of data mutation operators and template-style mapping rules, which not only alleviates the difficulties faced in the process of MR identification but also improves the identification effectiveness. We have further developed a tool to implement the proposed approach and conducted an empirical study to evaluate the MR identification effectiveness of mu$$ \mu $$MT and the performance of MRs identified by mu$$ \mu $$MT with respect to fault detection capability and statement coverage. The empirical results show that mu$$ \mu $$MT is able to identify MRs for numeric programs effectively, and the identified MRs have high fault detection capability and statement coverage. The work presented in this paper advances the field of MT by providing a simple yet practical approach to the MR identification problem.
引用
收藏
页码:394 / 418
页数:25
相关论文
共 50 条
  • [1] μMT: A Data Mutation Directed Metamorphic Relation Acquisition Methodology
    Sun, Chang-ai
    Liu, Yiqiang
    Wang, Zuoyi
    Chan, W. K.
    2016 IEEE/ACM 1ST INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET), 2016, : 12 - 18
  • [2] A Template-Based Approach to Describing Metamorphic Relations
    Segura, Sergio
    Duran, Amador
    Troya, Javier
    Ruiz Cortes, Antonio
    2017 IEEE/ACM 2ND INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2017), 2017, : 3 - 9
  • [3] Metamorphic Relations for Enhancing System Understanding and Use
    Zhou, Zhi Quan
    Sun, Liqun
    Chen, Tsong Yueh
    Towey, Dave
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2020, 46 (10) : 1120 - 1154
  • [4] A New Method for Constructing Metamorphic Relations
    Liu, Huai
    Liu, Xuan
    Chen, Tsong Yueh
    2012 12TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC), 2012, : 59 - 68
  • [5] Addressing Data Quality Problems with Metamorphic Data Relations
    Auer, Florian
    Felderer, Michael
    2019 IEEE/ACM 4TH INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2019), 2019, : 76 - 83
  • [6] A Genetic Algorithm-Based Approach for Composite Metamorphic Relations Construction
    Xiang, Zhenglong
    Wu, Hongrun
    Yu, Fei
    INFORMATION, 2019, 10 (12)
  • [7] Metamorphic Relations for Data Validation: A Case Study of Translated Text Messages
    Yan, Boyang
    Yecies, Brian
    Zhou, Zhi Quan
    2019 IEEE/ACM 4TH INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2019), 2019, : 70 - 75
  • [8] Identifying Failed Test Cases through Metamorphic Testing
    Hui, Zhan-wei
    Huang, Song
    Chen, Tsong Yueh
    Lau, Man F.
    Ng, Sebastian
    2017 IEEE 28TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW 2017), 2017, : 90 - 91
  • [9] MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases
    Xu, Congying
    Terragni, Valerio
    Zhu, Hengcheng
    Wu, Jiarong
    Cheung, Shing-Chi
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (06)
  • [10] Measuring Effectiveness of Metamorphic Relations for Image Processing Using Mutation Testing
    Jafari, Fakeeha
    Nadeem, Aamer
    JOURNAL OF IMAGING, 2024, 10 (04)