You are applying state transition testing to the hotel room reservation system modeled by the following state transition table, with 4 states and 5 different events: Events State Available NotAvailable ChangeRoom Cancel Pay S1: Requesting S2 S3 S2: Confirmed S1 S4 S4 S3: Waiting list S2 S4 S4: End Assuming all test cases start in the ‘Requesting’ state, which of the following test cases, represented as sequences of events, achieves the highest valid transitions coverage?
| Events | |||||
|---|---|---|---|---|---|
| State | Available | NotAvailable | ChangeRoom | Cancel | Pay |
| S1: Requesting | S2 | S3 | |||
| S2: Confirmed | S1 | S4 | S4 | ||
| S3: Waiting list | S2 | S4 | |||
| S4: End |
Answer Options
Correct Answer
B: Available, ChangeRoom, NotAvailable, Available, Pay