InterviewDryRun
QA interview · Asked at junior and mid level

Write test cases for a login page

How the interviewer asks it

“We are releasing a new login page with email and password, a "remember me" option and account lockout after five failed attempts. Write the test plan: what you would test, at which level, and which cases matter most.”

Typed drills are free and unlimited: the AI scores your answer against the outline below.

What the interviewer is looking for

  • Risk-based priorities: lockout and security before cosmetic checks.
  • Positive, negative and boundary cases, including the fifth and sixth attempts.
  • Security: password masking, no user enumeration, rate limits, session handling, HTTPS.
  • The right test level for each case: unit, API, UI, manual exploratory.
  • Non-functional checks: accessibility, browsers, performance.

How to structure your answer

  1. 01

    Scope and risks

    List features and what would hurt most if broken: account takeover, lockout bugs, users unable to log in.

  2. 02

    Functional cases

    Valid login, wrong password, unknown email, empty fields, email case and spaces, remember-me expiry.

  3. 03

    Lockout

    Four failures then success resets the count; five failures locks; the message does not reveal whether the account exists; unlock flow.

  4. 04

    Security and sessions

    Generic error messages, session cookie flags, logout invalidates the session, brute force rate limiting.

  5. 05

    Automation plan

    Validation and lockout logic at unit and API level, a few happy-path UI tests, exploratory testing for the rest.

Best answers from candidates

No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.

Answers are shared by candidates, without names, after a privacy check. Add yours

Common mistakes

  • Listing fifty UI cases with no priority.
  • Forgetting the security cases entirely.
  • Automating everything through the browser.

Follow-up questions to expect

  • We are adding sign-in with a one-time code by text message. What new risks and cases does that bring?
  • How would you test the lockout without waiting for the real unlock time?

Now answer it out loud

Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.

Practice with Max

Free: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.

More qA and test engineer interview questions