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 条
  • [31] MetaExploreX: A Visualisation Tool for Selecting and Constraining Metamorphic Relations
    Duque-Torres, Alejandra
    Pfahl, Dietmar
    Klammer, Claus
    Fischer, Stefan
    2024 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING-COMPANION, SANER-C 2024, 2024, : 219 - 222
  • [32] Testing acoustic scene classifiers using Metamorphic Relations
    Moreira, Diogo
    Furtado, Ana Paula
    Nogueira, Sidney
    2020 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE TESTING (AITEST), 2020, : 47 - 54
  • [33] An Approach for Iteratively Generating Adequate Tests in Metamorphic Testing: A Case Study
    Ding, Junhua
    Zhang, Dongmei
    PROCEEDINGS 2016 IEEE 40TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE WORKSHOPS, VOL 1, 2016, : 263 - 268
  • [34] Metamorphic Relations Based Test Oracles for Image Processing Applications
    Jameel, Tahir
    Lin, Mengxiang
    Chao, Liu
    INTERNATIONAL JOURNAL OF SOFTWARE INNOVATION, 2016, 4 (01) : 16 - 30
  • [35] Test Oracles Based on Metamorphic Relations for Image Processing Applications
    Jameel, Tahir
    Lin, Mengxiang
    Chao, Liu
    2015 16TH IEEE/ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD), 2015, : 437 - 442
  • [36] Prioritization of Metamorphic Relations based on Test case Execution Properties
    Srinivasan, Madhusudan
    2018 29TH IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW), 2018, : 162 - 165
  • [37] Discovering Metamorphic Relations for Scientific Software From User Forums
    Lin, Xuanyi
    Simon, Michelle
    Peng, Zedong
    Niu, Nan
    COMPUTING IN SCIENCE & ENGINEERING, 2021, 23 (02) : 65 - 72
  • [38] Automated Generation of Metamorphic Relations for Query-Based Systems
    Segura, Sergio
    Alonso, Juan C.
    Martin-Lopez, Alberto
    Duran, Amador
    Troya, Javier
    Ruiz-Cortes, Antonio
    2022 IEEE/ACM 7TH INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2022), 2022, : 48 - 55
  • [39] GenMorph: Automatically Generating Metamorphic Relations via Genetic Programming
    Ayerdi, Jon
    Terragni, Valerio
    Jahangirova, Gunel
    Arrieta, Aitor
    Tonella, Paolo
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (07) : 1888 - 1900
  • [40] Metamorphic Relations via Relaxations: An Approach to Obtain Oracles for Action-Policy Testing
    Eniser, Hasan Ferit
    Gros, Timo P.
    Wuestholz, Valentin
    Hoffmann, Joerg
    Christakis, Maria
    PROCEEDINGS OF THE 31ST ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2022, 2022, : 52 - 63