Metamorphic Relation

A Metamorphic Relation (MR) describes how changes in test inputs affect expected outputs in software testing. It establishes a connection between source and follow-up test cases based on input modifications.

Key Aspects:

  • Input Changes: Defines how altering inputs leads to different outputs.
  • Expected Outputs: Specifies what results should occur with modified inputs.
  • Testing Framework: Provides a basis for creating new test cases from existing ones.

Metamorphic relations help in situations where it is difficult to determine expected outputs directly, allowing testers to derive results based on known relationships between inputs and outputs.