QA glossary

What is metamorphic testing?

Metamorphic testing checks how outputs change when the input changes in a known way, instead of checking each output against a fixed expected value. It is used when nobody can say in advance what the exact right answer is, but everyone can say how two answers should relate.

An example from QA practice

Nobody can say exactly which results a product search should return for "red running shoes". The team can still say that adding a filter for size 42 must never return more results than before, and that searching "Red Running Shoes" must return the same results as the lower-case query. Each rule is a metamorphic relation. The tester runs the first query, then the changed one, and the test fails if the relation does not hold.

How it works

  • Start from a source test case, ideally one that already passed.
  • Apply a metamorphic relation to derive follow-up test cases: a rule that says how a change in the input should show in the output.
  • Check the relationship between the outputs, not their absolute values: consistency, monotonicity (output moves in a set direction) or invariance (output stays the same).

This follows the ISTQB AI Testing syllabus (CT-AI v2.0, section 6.1.5) and the Test Analyst syllabus (CTAL-TA v4.0, section 3.3.2).

Its limit

A relation can be wrong or incomplete, and then the tests give false confidence. Metamorphic testing finds relational flaws, not every absolute error, so the syllabus advises combining it with other techniques.

How BetterQA does it

Our engineers use relations like these where a client's feature has no single right answer: search, ranking, recommendations and AI output. Failures go into BugBoard with the source and follow-up inputs side by side, so a developer can rerun the pair. Where AI suggests relations or test cases, an engineer reviews every AI-generated result before it is used.

Related terms

Further readingAI testing guide

Testing when the right answer is not fixed.

ServiceTest techniques

The design techniques behind a good test set.