| TC01 | Valid OTP on first attempt | 1. Send a valid OTP2. Submit it immediately | Login successful, no lockout |
| TC02 | Invalid OTP on first attempt | 1. Submit wrong OTP once | System allows retry, no lockout |
| TC03 | Invalid OTP on second attempt | 1. Submit wrong OTP twice | System allows retry, no lockout |
| TC04 | Invalid OTP on third attempt | 1. Submit wrong OTP three times | Lock user account for 5 minutes |
| TC05 | Submit OTP after lockout period ends | 1. Submit wrong OTP thrice2. Wait for 5 minutes3. Try again with any OTP | Lock lifted, user can try again |
| TC06 | Submit OTP during lockout period | 1. Submit wrong OTP thrice2. Immediately try again | Error: Account locked, try after 5 minutes |
| TC07 | Multiple OTP requests during lockout | 1. Submit wrong OTP thrice2. Request new OTP before 5 mins | Should not generate/send new OTP |
| TC08 | Successful OTP submission after reset | 1. Fail 3 times2. Wait >5 min3. Enter correct OTP | Unlock and allow login |
| TC09 | Correct OTP submitted during lockout | 1. Fail 3 times2. Enter correct OTP before 5 mins | Still locked; ignore OTP |
| TC10 | OTP expiry before submission | 1. Get OTP2. Let OTP expire (e.g., 2 min timeout)3. Enter expired OTP | Reject OTP as expired |
| TC11 | Time-based edge case – exactly 5 minutes later | 1. Fail 3 times2. Submit OTP at exactly 5 minutes from lockout time | Should accept if lockout duration is over |
| TC12 | Resend OTP resets timer | (If applicable)1. Fail 2 times2. Request resend OTP3. Fail one more time | Count resets to 0, now 1 failure against new OTP |
| TC13 | Concurrent OTP submissions | Simulate 3 failed OTPs within same second (e.g., via multiple threads) | Should still lock after 3 failures |
| TC14 | Clock drift / timezone issues | Set server time ahead/behind by few seconds | Lockout should be based on consistent time source (e.g., UTC) |
| TC15 | Session expiration during lockout | 1. Fail 3 times2. Session expires3. Start new session and submit OTP | Still locked until 5 mins pass |
| TC16 | OTP retry count stored persistently | 1. Fail 2 times2. Restart application3. Submit another wrong OTP | Count continues from 2 → lock after 3rd attempt |
| TC17 | Lockout applies per user, not globally | 1. User A fails 3 times2. User B tries OTP | User B should not be affected |
| TC18 | Lockout logs recorded | 1. Fail 3 times2. Check audit/log tables | Log entry of lockout event with timestamp and user |
| TC19 | Lockout bypass prevention | Try to bypass lockout using:- Different device/IP- Modify cookies/session- Use different OTP method (email vs SMS) | Lockout still applies if tied to user ID |
| TC20 | OTP validation with delay between attempts | Fail 3 times slowly (e.g., 1 min between each) | Lockout occurs only after 3rd attempt |