CTAL-TA_SYLL2019 · Question #52
Consider the following state diagram for a simple ATM. The decision has been made to add the following capabilities: Allow the customer to go from Get Balance to Deposit, Withdrawal or Menu. Allow…
The correct answer is C. 13. A 0-switch test case is a test case that covers one transition from one state to another. To achieve 100% 0-switch coverage, all the transitions in the state diagram must be tested. The state diagram has seven states: Login, Menu, Logout, Withdraw, Deposit, Get Balance, and…
Question
Consider the following state diagram for a simple ATM. The decision has been made to add the following capabilities:
Allow the customer to go from Get Balance to Deposit, Withdrawal or Menu. Allow the customer to go from Deposit to Withdrawal, Get Balance or Menu From Withdrawal the customer still will be able to go only to Menu. How many test cases are required to achieve 100% 0-switch coverage of the new and existing capabilities?
Exhibit
Options
- A6
- B9
- C13
- D16
How the community answered
(45 responses)- A11% (5)
- B2% (1)
- C82% (37)
- D4% (2)
Explanation
A 0-switch test case is a test case that covers one transition from one state to another. To achieve 100% 0-switch coverage, all the transitions in the state diagram must be tested. The state diagram has seven states: Login, Menu, Logout, Withdraw, Deposit, Get Balance, and Access Account. There are 13 transitions in the state diagram, as shown by the arrows. Therefore, 13 0-switch test cases are needed. Reference = ISTQB Certified Tester Advanced Level Syllabus Technical Test Analyst1, page 2 How to Design Test Cases Using State Transition Testing Technique?2, section "0-switch coverage" State Transition Testing - Tutorialspoint3, section "State Transition Diagram"
Topics
Community Discussion
No community discussion yet for this question.
