QA Fundamentals · Middle · Question 4 of 75
In state transition testing, why test invalid transitions?
- 1Invalid transitions never happen, so testing them is optional
- 2They make the test suite longer, which improves coverage
- 3The system must reject them, e.g. refunding an unpaid order
Show the answer
Correct answer: The system must reject them, e.g. refunding an unpaid order
Explanation
Bugs often allow actions in the wrong state: cancelling a delivered order, paying twice. Tests should check that such transitions are refused with a clear message.