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 条
  • [41] Enhancing Supervised Classifications with Metamorphic Relations
    Xu, Liming
    Towey, Dave
    French, Andrew P.
    Benford, Steve
    Zhou, Zhi Quan
    Chen, Tsong Yueh
    2018 IEEE/ACM 3RD INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2018), 2018, : 46 - 53
  • [42] Testing Chatbots Using Metamorphic Relations
    Bozic, Josip
    Wotawa, Franz
    TESTING SOFTWARE AND SYSTEMS (ICTSS 2019), 2019, 11812 : 41 - 55
  • [43] A metamorphic testing approach for supporting program repair without the need for a test oracle
    Jiang, Mingyue
    Chen, Tsong Yueh
    Kuo, Fei-Ching
    Towey, Dave
    Ding, Zuohua
    JOURNAL OF SYSTEMS AND SOFTWARE, 2017, 126 : 127 - 140
  • [44] Fault Detection Effectiveness of Metamorphic Relations Developed for Testing Supervised Classifiers
    Saha, Prashanta
    Kanewala, Upulee
    2019 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE TESTING (AITEST), 2019, : 157 - 164
  • [45] Effectiveness of symmetric metamorphic relations on validating the stability of code generation LLM
    Chan, Pak Yuen Patrick
    Keung, Jacky
    Yang, Zhen
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 222
  • [46] Metamorphic Testing for Convolutional Neural Networks: Relations over Image Classification
    Naidu, Prudhviraj
    Gudaparthi, Hemanth
    Niu, Nan
    2021 IEEE 22ND INTERNATIONAL CONFERENCE ON INFORMATION REUSE AND INTEGRATION FOR DATA SCIENCE (IRI 2021), 2021, : 99 - 106
  • [47] Leveraging Mutants for Automatic Prediction of Metamorphic Relations using Machine Learning
    Nair, Aravind
    Meinke, Karl
    Eldh, Sigrid
    PROCEEDINGS OF THE 3RD ACM SIGSOFT INTERNATIONAL WORKSHOP ON MACHINE LEARNING TECHNIQUES FOR SOFTWARE QUALITY EVALUATION (MALTESQUE '19), 2019, : 1 - 6
  • [48] Using Metamorphic Relations to Improve The Effectiveness of Automatically Generated Test Cases
    Saha, Prashanta
    Kanewala, Upulee
    2022 IEEE/ACIS 20TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING RESEARCH, MANAGEMENT AND APPLICATIONS (SERA), 2022, : 140 - 148
  • [49] Predicting metamorphic relations for testing scientific software: a machine learning approach using graph kernels
    Kanewala, Upulee
    Bieman, James M.
    Ben-Hur, Asa
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2016, 26 (03) : 245 - 269
  • [50] Metamorphic Testing for Adobe Data Analytics Software
    Jarman, Darryl C.
    Zhou, Zhi Quan
    Chen, Tsong Yueh
    2017 IEEE/ACM 2ND INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2017), 2017, : 21 - 27