Interviews
June 22, 2026
5 min read

QA Interview Questions: Worked Answers and Test Cases

Practice QA interviews with a password-reset test matrix, an API scenario, a complete defect report, and honest sample answers.

#qa interview #interview questions #testing #job interview
Share:

Practice with a feature, not a memorized definition

A useful QA interview answer connects a requirement, a test, an observed result, and a release decision. The fictional password-reset feature below gives you something concrete to practice. These are illustrative answers, not claims about your work history. Replace them with situations you can explain from your own experience.

Practice requirement: A user requests a password-reset email. The link expires after 15 minutes and can be used once. Requesting a link must not reveal whether an email address has an account. Successful reset invalidates the token.

How would you design test cases for password reset?

Sample answer: “I would clarify whether requesting another link invalidates the previous one and whether resetting a password ends existing sessions. Then I would test the stated rules separately: email delivery, token expiry, one-time use, and account-disclosure behavior. I would test the time boundary with a controllable clock so the result does not depend on waiting.”

Case Action Expected result for this practice requirement
Valid token Reset within 15 minutes Password changes; the old password fails on a fresh login
Reused token Submit the same token after a successful reset Second submission is rejected; password remains unchanged
Expired token Submit after 15 minutes Reset is rejected; user can request a new link
Unknown email Request a reset for an address without an account Public response does not disclose account existence
Missing password Submit a valid token without a new password Validation error; password remains unchanged
Boundary time Submit just before and exactly at expiry Result follows the agreed definition of expiry

Why this answer works: It separates documented behavior from questions requiring a product decision. “Test all edge cases” is too vague; naming one boundary and its expected result shows your reasoning.

How would you test the API behind this feature?

Sample answer: “I would start from the API contract. For each request I would check the status, response shape, and persisted effect. A success response alone does not prove the password changed. I would also test malformed input, expired credentials, and concurrent attempts to redeem the same token.”

For a practice endpoint, imagine POST /api/v1/password-resets/confirm accepts token and password. Two simultaneous valid requests must not both redeem a single-use token. The exact status codes and error fields come from the contract; do not invent a universal API convention in your answer.

Use disposable test accounts. Avoid placing passwords, reset tokens, or customer data in screenshots, logs, or interview materials. If a test depends on an email provider, distinguish your application's behavior from delivery by that external service.

What makes a useful defect report?

Here is a complete fictional example you can discuss:

  • Title: A redeemed password-reset token can change the password a second time.
  • Environment: Test environment, build QA-42, desktop browser; disposable account.
  • Precondition: A fresh reset link has been issued for the test account.
  • Steps: Redeem the link with password A; open the same link again; submit password B; attempt a fresh login.
  • Expected: The second redemption is rejected and password A remains valid.
  • Actual: The second submission succeeds and password B works.
  • Evidence: Sanitized request sequence, timestamps, and build identifier; no passwords or live tokens.
  • Impact: Anyone retaining that redeemed link could attempt another reset during its validity period.

Severity describes the impact; priority describes when the team should address it. Explain the affected users and reproduction conditions rather than guessing a company's severity label. For this scenario, I would escalate before release because the observed behavior breaks an explicit security requirement.

What would you automate, and what would you explore manually?

Sample answer: “I would automate stable contract checks and a small number of complete user journeys. I would explore confusing messages, interrupted flows, and navigation manually. I would not automate every visual variation through a slow browser test when a smaller test can establish the same rule.”

For browser tests, prefer selectors tied to user-visible roles and labels, independent test data, and assertions that wait for the expected state. Playwright documents these practices. Avoid arbitrary sleeps that make tests slow and still fail when the environment is busy.

If you have only used manual testing, say so. Explain a manual scenario thoroughly and describe the automation you are learning. Naming a framework is not evidence that you maintained a suite with it.

How do you investigate a flaky test?

Sample answer: “First I would preserve the failure trace and compare the failed run with a passing one. I would check shared data, asynchronous updates, dependency failures, and whether the test assumes a particular order. I would reproduce the cause before increasing timeouts.”

A temporary quarantine may keep unrelated delivery moving, but it needs an owner and follow-up. Retrying until green can hide a real race condition. Explain what evidence would distinguish a test problem from a product problem.

What if the release is due in an hour?

Sample answer: “I would identify what changed, test the affected critical journeys, and run the relevant stable regression checks. I would report what passed, what failed, and what remains untested. The release owner needs the remaining risk, not a blanket claim that the product is bug-free.”

For the reset feature, a broken single-use rule matters more than a cosmetic alignment issue. Your recommendation should state the observed consequence and any available mitigation. Do not claim authority to approve a release if that decision belongs to someone else.

Rehearse your own answer

Choose one feature you tested. Write its requirement, three test cases, one failure, and the decision that followed. Practice explaining it in 90 seconds, then answer a follow-up about a trade-off you made. Use the interview preparation tool to organize practice only if its prompts fit your target role; verify every generated answer against your experience.

Sources and further reading

  • Playwright: best practices explains isolated tests, user-visible behavior, resilient locators, and waiting assertions. The interview scenario and defect report above are original fictional exercises.

Use These Tools Next

Use a working tool to apply this guidance to your own resume or job description.

Related Resume Pages

Explore related keyword and resume guidance pages to keep improving your application materials.

Using this guidance

Use these guides to check a specific part of your application. Automated feedback is guidance, not a hiring prediction. Check suggested edits against your own experience.

Related Articles

Continue with another guide on this topic.

Ready to Optimize Your Resume?

Use our AI-powered resume analyzer to get personalized feedback, ATS optimization, and keyword suggestions tailored to your industry.

Analyze My Resume Free