Back to search

University of Cincinnati

Examining Metamorphic Testing with Requirements Knowledge in Practical Settings

Abstract

dc:description

Given a test input, not knowing the expected output of the software under test (SUT) is called the oracle problem. An emerging method of alleviating the oracle problem is metamorphic testing (MT). Rather than focusing on the correctness of output from a single execution of the SUT, MT exploits metamorphic relations (MRs) as derived oracles for checking the functional correctness of the code. Although researchers have argued that MT can be a simple and effective technique to help software developers, little is known about the actual cost of constructing MRs in real-world software and the relationship between MT and the already well-adopted method in software development. This research examines a series of practices to evaluate the effectiveness of MT during software development. Our investigation is conducted within the context of a real-world scientific software, the Storm Water Management Model (SWMM), developed and maintained by the U.S. Environmental Protection Agency (EPA). To ensure SWMM's accuracy in modeling stormwater runoff and executing hydraulic and water quality simulations, the development team continually evolves the software. Among the challenges they face, software testing stands out as one of the most technically complex tasks. Our research initially investigates the current testing practices and software quality assurance (QA) workflows in scientific software development, taking the SWMM as a case study. The value of our work resides in the qualitative characterizations and quantitative assessments of the tests that scientific software developers have independently written and released within the SWMM context. Our findings indicate that oracles indeed play a role in scientific software testing. Furthermore, by employing an empirical approach, we identified four critical requirements for the improved integration of MT into scientific software development. Constructing MRs is critical because without them, MT cannot be performed. Meanwhile, constructing MRs is typically a costly task. Therefore, we present an approach to classifying input and output (I/O) variables from scientific software's user manual, then mining these variables' associations from the user forum to reduce the cost of constructing MRs. On the other hand, regression testing has long been used by scientific software developers to tackle the oracle problem amid code changes. Although MT has the potential to complement regression testing by checking functional correctness more directly, the cost of constructing MRs and their added advantage in an evolving and highly specialized scientific software system are not yet understood. To further explore this, we conducted an exploratory case study focusing on MR construction by scientific software developers, enabling us to critically evaluate the value addition MT brings to software development. This dissertation offers significant contributions in three distinct areas: Firstly, it fosters a better understanding of the software QA workflow and existing test practices, which in turn aids in more effective support for MT adoption. Secondly, it provides automated support for enhancing the diversity of MRs and reducing the cost associated with MT. Lastly, it scrutinizes the feasibility of MT and its additional advantages compared to regression testing, demonstrated through a real-world system.

Degree

thesis:*
Name thesis:degree_name
PhD
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
Engineering and Applied Science: Computer Science and Engineering
Grantor dc:publisher
University of Cincinnati
Year dc:date
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Peng, Zedong
Chair dc:contributor.committeechair
  • Niu, Nan

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Peng, Zedong. Examining Metamorphic Testing with Requirements Knowledge in Practical Settings. doctoral thesis, University of Cincinnati, 2023. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1692299078054155