State transition testing is a black-box testing technique where test cases are designed to cover states and transitions of a state machine.
Given the state model with the following transitions:
To cover all transitions at least once, we need to create a sequence that covers all six transitions.
Option A: IN PRODUCTION -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED -> PLACED
- Misses SHIPPED -> INVOICED and INVOICED -> CANCELLED transitions.
Option B: IN PRODUCTION -> SHIPPED -> INVOICED -> CANCELLED -> PLACED -> IN PRODUCTION
- Covers all transitions.
Option C: PLACED -> IN PRODUCTION -> SHIPPED -> CANCELLED (ISTQB not-for-profit association) (Udemy)sses INVOICED -> CANCELLED transition.
Option D: PLACED -> CANCELLED -> PLACED -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED
- Misses SHIPPED -> INVOICED and INVOICED -> CANCELLED transitions.
Given these, Option B covers all the transitions【6†source】【9†source】.
[References:, Certified Tester Foundation Level v4.0, 10 Sample Exams ISTQB Foundation Level (CTFL) v4.0, ]