Interviewers are not counting test cases, they are listening to how you think. A six-step structure, worked through on a login page.
"How would you test a login page?" is one of the most common questions in QA interviews, along with the pen, the lift and the ATM. Many candidates answer with a fast list: valid login, invalid login, empty fields. The list is not wrong, but it does not show how you think, and that is what the interviewer is listening for.
Use the same six steps for any scenario question. Here they are, worked through on a login page.
- 6Check the data, not only the screen
- 5Say what you would automate
- 4Then the edges
- 3Then the unhappy paths
- 2Start with the main path
- 1Ask what it is for
1. Ask what it is for
Start with one or two questions before any test case:
- Who logs in here? Customers, staff, admins?
- How do they log in? Email and password, phone and code, Google sign-in?
- What must never go wrong? For a bank, a stranger getting in. For a shop, a customer locked out during a sale.
Asking first shows you test against risk, not against a checklist. Interviewers notice.
2. Start with the main path
The thing most users do, working from start to end: a registered user enters the right email and password and lands on the right page, already logged in. Check that the session stays when they move between pages, and that logging out really ends it.
3. Then the unhappy paths
What happens when people do things wrong?
- Wrong password, unknown email, both fields empty.
- An account that is locked, not verified yet or deleted.
- No network halfway through, or a very slow one.
For each one, say what the user should see. A good error message helps the user without telling an attacker which emails are registered.
4. Then the edges
This is where strong candidates stand out.
- Limits: a very long email, a password at the maximum length, spaces before and after.
- Timing: a session that expires, a login from two devices, the back button after logging out.
- Repeated actions: tapping Login five times quickly, many wrong passwords in a row. Is there a limit or a lockout?
- Security basics: the password is hidden as you type, the page uses HTTPS, the password never appears in the address bar or the logs.
- Accessibility: every field has a label, the form works with a keyboard alone, errors are read out by a screen reader.
- Email: very long, spaces before and after, capital letters, an address that is not registered.
- Password: hidden as you type, at the maximum length, pasted from a password manager.
- Error message: helps the user without saying which field was wrong, so it never reveals who has an account.
- Button: tapped five times fast, pressed with no network, reached with the keyboard alone.
- Links: open the right page and keep the email already typed.
5. Say what you would automate
Interviewers want to hear judgement. A sensible answer: automate the main path and the common wrong-input cases, because they run on every release and rarely change. Keep the one-off checks manual, such as how the page looks on a new device or how clear an error message reads.
6. Check the data, not only the screen
The screen can say "Welcome" while something is wrong underneath. Say what you would check behind it: a session or token is created and expires on time, failed attempts are counted, the last-login time is saved, and the password is never stored in plain text.
Practise it out loud
Reading the steps is easy. Saying them under pressure is the skill. Pick a scenario and answer it out loud in five minutes, using the same six steps:
- A search box on a shopping site.
- A coupon code field at checkout.
- Withdrawing cash from an ATM.
Record yourself once. You will hear exactly where you jump to test cases before asking what the thing is for.