Bird
0
0

In a banking app, the states are LoggedOut, LoggedIn, Locked. Transitions:

hard📝 Application Q9 of 15
Testing Fundamentals - Functional Testing Techniques
In a banking app, the states are LoggedOut, LoggedIn, Locked. Transitions:
LoggedOut -login-> LoggedIn
LoggedIn -logout-> LoggedOut
LoggedIn -fail_attempt-> Locked
Locked -reset-> LoggedOut
If a user fails login twice, then resets, then logs in successfully, what is the final state?
ALocked
BError
CLoggedOut
DLoggedIn
Step-by-Step Solution
Solution:
  1. Step 1: Trace the events step-by-step

    Start at LoggedOut. Two 'fail_attempt' events from LoggedOut do not cause transitions, so user remains LoggedOut. Then 'reset' from LoggedOut keeps user LoggedOut. Finally, 'login' moves LoggedOut to LoggedIn.
  2. Step 2: Determine final state

    After all events, the user is LoggedIn.
  3. Final Answer:

    LoggedIn -> Option D
  4. Quick Check:

    Event sequence ends in LoggedIn state [OK]
Quick Trick: Check if events cause transitions from current state [OK]
Common Mistakes:
  • Assuming fail_attempt from LoggedOut changes state
  • Ignoring reset effect
  • Confusing Locked and LoggedOut states

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes