QuestionQ82

VerifiedTest Analysis and Test Design

You are testing an ATM application. The existing solution has been in production for several years, and it always required users to return to the menu between transaction types. A new requirement has just been introduced allowing users to go directly from Deposit to Withdraw. You have found the following state diagram in the requirements documentation:

Question Image

Given this change in requirements, there is an error in the diagram that could lead to an incorrect implementation of the software. What is that error?

Explanation

In the state diagram, the Deposit state has only one outgoing transition, which leads to Withdraw (satisfying the new requirement that a user can go straight from Deposit to Withdraw). However, there is no transition defined from Deposit back to Menu. As a result, once a user enters the Deposit state, the only way to return to the Menu (for example, to log out or choose another transaction) is to first pass through the Withdraw state. This forces users who only intend to make a deposit to also traverse the Withdraw state, which is an unintended and inconvenient consequence of the diagram as drawn, and represents a defect that should be flagged before implementation.

Community Discussion

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