How do use cases help derive tests beyond the happy path?
Answer
Start from the main actor goal, preconditions and successful flow, then cover alternative flows, exceptions, permission differences, interrupted steps and postconditions. The result connects business intent to observable outcomes.
Strong answer includes
- actor goal
- alternative and exception flows
- checks postconditions
Practical example
For a 'place order' use case, the tester writes not just the happy path but also: user cancels mid-checkout, payment gateway times out, a discount code expires between validation and submission, and a guest user without saved address. Each alternative flow maps to a concrete test case with an expected postcondition.