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 条
  • [21] On the Correlation between the Effectiveness of Metamorphic Relations and Dissimilarities of Test Case Executions
    Cao, Yuxiang
    Zhou, Zhi Quan
    Chen, Tsong Yueh
    2013 13TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC), 2013, : 153 - 162
  • [22] Using Source Code Metrics for Predicting Metamorphic Relations at Method Level
    Duque-Torres, Alejandra
    Pfahl, Dietmar
    Klammer, Claus
    Fischer, Stefan
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022), 2022, : 1147 - 1154
  • [23] Predicting Metamorphic Relations for Matrix Calculation Programs
    Rahman, Karishma
    Kanewala, Upulee
    2018 IEEE/ACM 3RD INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2018), 2018, : 10 - 13
  • [24] AN EVALUATION APPROACH FOR THE PROGRAM OF ASSOCIATION RULES ALGORITHM BASED ON METAMORPHIC RELATIONS
    Zhang Jing Hu Xuegang Zhang Bin(School of Computer and Information
    Journal of Electronics(China), 2011, (Z1) : 623 - 631
  • [25] JFuzz: A Tool for Automated Java']Java Unit Testing Based on Data Mutation and Metamorphic Testing Methods
    Zhu, Hong
    2015 SECOND INTERNATIONAL CONFERENCE ON TRUSTWORTHY SYSTEMS AND THEIR APPLICATIONS, 2015, : 120 - 127
  • [26] Identifying the Failure-Revealing Test Cases in Metamorphic Testing: A Statistical Approach
    Zheng, Zheng
    Ren, Daixu
    Liu, Huai
    Chen, Tsong yueh
    Li, Tiancheng
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (02)
  • [27] Using Machine Learning Techniques to Detect Metamorphic Relations for Programs without Test Oracles
    Kanewala, Upulee
    Bieman, James M.
    2013 IEEE 24TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2013, : 1 - 10
  • [28] MUT Model: a metric for characterizing metamorphic relations diversity
    Xie, Xiaodong
    Li, Zhehao
    Chen, Jinfu
    Zhang, Yue
    Wang, Xiangxiang
    Kudjo, Patrick Kwaku
    SOFTWARE QUALITY JOURNAL, 2024, 32 (04) : 1413 - 1455
  • [29] Automated inference of likely metamorphic relations for model transformations
    Troya, Javier
    Segura, Sergio
    Ruiz-Cortes, Antonio
    JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 136 : 188 - 208
  • [30] Using metamorphic relations to verify and enhance Artcode classification
    Xu, Liming
    Towey, Dave
    French, Andrew P.
    Benford, Steve
    Zhou, Zhi Quan
    Chen, Tsong Yueh
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 182