QuestionQ11

VerifiedTest Analysis and Test Design

Below is a state transition diagram modelling the behaviour of the component that verifies whether the PIN entered by the user is correct. The system starts operating in the “Welcome screen” state and finishes in the “End” state.

Question Image

The system should permit three attempts to enter the PIN. If the user enters the correct PIN on any of these attempts, the system performs a withdrawal and ends the operation. If the third attempt is incorrect, the system blocks the card and ends the operation. As a test analyst, you review this diagram for potential defects that could be introduced into the system created from this model.

What should be the conclusion of your analysis?

Explanation

Because try starts at 1, the third incorrect entry satisfies try ≤ 3 and increments the counter to 4. The transition that blocks the card is not taken until a subsequent incorrect PIN entry satisfies try > 3, so blocking occurs only after a fourth incorrect attempt.

Community Discussion

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