Identifying metamorphic relations: A data mutation directed approach

Chang-ai Sun*, Hui Jin, SiYi Wu, An Fu, ZuoYi Wang, Wing Kwong Chan

*Corresponding author for this work

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review

3 Citations (Scopus)
24 Downloads (CityUHK Scholars)

Abstract

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 μMT, a data mutation directed approach to identifying MRs. μ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 μMT and the performance of MRs identified by μMT with respect to fault detection capability and statement coverage. The empirical results show that μ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. © 2023 John Wiley & Sons, Ltd.
Original languageEnglish
Pages (from-to)394-418
JournalSoftware - Practice and Experience
Volume54
Issue number3
Online published18 Oct 2023
DOIs
Publication statusPublished - Mar 2024

Research Keywords

  • metamorphic relation
  • metamorphic testing
  • software testing
  • test Oracle

Publisher's Copyright Statement

  • COPYRIGHT TERMS OF DEPOSITED POSTPRINT FILE: This is the peer reviewed version of the following article: Sun, C., Jin, H., Wu, S., & Fu, A. et al. (2023). Identifying metamorphic relations: A data mutation directed approach. Software - Practice and Experience, Advance Online Publication
  • which has been published in final form at https://doi.org/10.1002/spe.3280. This article may be used for non-commercial purposes in accordance with Wiley Terms and Conditions for Use of Self-Archived Versions. This article may not be enhanced, enriched or otherwise transformed into a derivative work, without express permission from Wiley or by statutory rights under applicable legislation. Copyright notices must not be removed, obscured or modified. The article must be linked to Wiley’s version of record on Wiley Online Library and any embedding, framing or otherwise making available the article or pages thereof by third parties from platforms, services and websites other than Wiley Online Library must be prohibited.

Fingerprint

Dive into the research topics of 'Identifying metamorphic relations: A data mutation directed approach'. Together they form a unique fingerprint.

Cite this