Towards Generating Executable Metamorphic Relations Using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Metamorphic testing (MT) has proven to be a successful solution to automating testing and addressing the oracle problem. However, it entails manually deriving metamorphic relations (MRs) and converting them into an executable form; these steps are time-consuming and may prevent the adoption of MT. In this paper, we propose an approach for automatically deriving executable MRs (EMRs) from requirements using large language models (LLMs). Instead of merely asking the LLM to produce EMRs, our approach relies on a few-shot prompting strategy to instruct the LLM to perform activities in the MT process, by providing requirements and API specifications, as one would do with software engineers. To assess the feasibility of our approach, we conducted a questionnaire-based survey in collaboration with Siemens Industry Software, a worldwide leader in providing industry software and services, focusing on four of their software applications. Additionally, we evaluated the accuracy of the generated EMRs for a Web application. The outcomes of our study are highly promising, as they demonstrate the capability of our approach to generate MRs and EMRs that are both comprehensible and pertinent for testing purposes.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Jan 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 4.
7 papers.
- 2025Metamorphic Testing of Large Language Models for Natural Language Processingcited by 12
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2025AutoMT: A Multi-Agent LLM Framework for Automated Metamorphic Testing of Autonomous Driving Systemscited by 2
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
- 2026Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulationscited by 0
- 2026Multi-Agent LLM-based Metamorphic Testing for REST APIscited by 0
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)cited by 0
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026Multi-Agent LLM-based Metamorphic Testing for REST APIs27 May 2026
- 2026Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulations24 May 2026
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026
- 2025Metamorphic Testing of Large Language Models for Natural Language Processing3 Nov 2025
- 2025AutoMT: A Multi-Agent LLM Framework for Automated Metamorphic Testing of Autonomous Driving Systems22 Oct 2025
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsification14 Apr 2024