QuestionQ101

VerifiedChapter 4: Test Analysis and Design

The following simplified version of a state-transition diagram specifies the behavior of a video poker game:

Question Image

What is the minimum number of test cases required to cover every unique sequence of up to 3 states/2 transitions, starting in the “Start” state and ending in the “End” state?

Explanation

With a maximum of two transitions, there are three valid complete paths: the direct Start-to-End path, and the two Start-to-Bet-to-End paths created by the distinct Min credits and Max credits transitions. Paths through either Deal state require more than two transitions before reaching End.

Community Discussion

No comments yet. Be the first to start the discussion!