Can ChatGPT advance software testing intelligence? An experience report on metamorphic testing
Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:M4L4DH6Srecord.jsonopen to challenge →
read the original abstract
While ChatGPT is a well-known artificial intelligence chatbot being used to answer human's questions, one may want to discover its potential in advancing software testing. We examine the capability of ChatGPT in advancing the intelligence of software testing through a case study on metamorphic testing (MT), a state-of-the-art software testing technique. We ask ChatGPT to generate candidates of metamorphic relations (MRs), which are basically necessary properties of the object program and which traditionally require human intelligence to identify. These MR candidates are then evaluated in terms of correctness by domain experts. We show that ChatGPT can be used to generate new correct MRs to test several software systems. Having said that, the majority of MR candidates are either defined vaguely or incorrect, especially for systems that have never been tested with MT. ChatGPT can be used to advance software testing intelligence by proposing MR candidates that can be later adopted for implementing tests; but human intelligence should still inevitably be involved to justify and rectify their correctness.
This paper has not been read by Pith yet.
Forward citations
Cited by 4 Pith papers
-
MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis
MR-Coupler leverages functional coupling analysis and LLMs to generate valid metamorphic test cases for over 90% of tasks while detecting 44% of real bugs, outperforming baselines by 64.90% in validity and 36.56% in f...
-
Multi-Agent LLM-based Metamorphic Testing for REST APIs
ARMeta uses multi-agent LLMs to identify and execute metamorphic relations for REST API testing, showing complementary coverage to scenario-based baselines on two public applications.
-
Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulations
A multi-agent LLM workflow extracts Given-When-Then metamorphic relations from specifications to generate and run tests on FMU simulations, demonstrated on a lube oil cooling system FMU.
-
Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
A systematic survey of 93 studies that maps the bidirectional relationship between metamorphic testing and LLMs, proposing a taxonomy for MT applied to LLMs and LLMs applied to MT.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.