Automation tester interview questions and how to answer them
Automation tester interview questions check whether you can take a feature or a manual test case, decide which checks are worth automating, script them in the team's tool, and keep the results honest enough that developers act on a red run. Most interviews include a hands-on round, such as automating a short user journey on a demo site, writing checks from a user story, or triaging a failed nightly report. Interviewers care as much about what you choose to assert and how you explain a failure as about the code itself.
By Evin JohnPublished 11 min read
What an automation tester does all week
In most teams an automation tester owns a growing set of automated checks for one product or a few services. A typical week includes reading new stories and acceptance criteria, agreeing with developers which checks belong in unit tests and which need a browser or API test, writing and reviewing test code, keeping the regression suite green, triaging the nightly run before stand-up, and raising clear defects when a failure is real. Many also run exploratory sessions on new features, because they still know the product better than the scripts do.
The title overlaps with nearby jobs. A QA engineer may do more test strategy and manual work; an SDET is usually hired as a developer who builds test infrastructure and passes a harder coding round. The automation tester sits in the middle: solid scripting in one language, good test design, and the discipline to keep a suite useful. Postings often name a stack, such as Java with Selenium and TestNG, Python with pytest, or TypeScript with Playwright, plus an API tool and a CI system.
How automation tester interviews are usually structured
- ScreenTools and languages you use, how big the suites you maintained were, how often they ran, and how much of your time was manual versus automated.
- Test design conversationA feature such as a checkout or a search box, and the question: what would you test, and which of those checks would you automate first?
- Hands-on scripting roundAutomate a short journey on a demo site or a provided app, often with a time limit and your own setup, or extend an existing small framework.
- Code and report reviewRead a test that is poorly written, or a failed run report, and explain what is wrong and what you would do next.
- Team roundHow you work with developers and product owners, handle pressure before a release, and keep learning.
From a story or manual case to an automated check
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Here is a user story with three acceptance criteria. Which automated checks would you write? | Turning requirements into checks | One check per criterion, plus the obvious negative path, each named after the behavior it proves, and a note on what stays manual |
| This manual regression case has fourteen steps. How would you automate it? | Decomposition | Set up state through an API or test data instead of clicking through it, keep only the steps that matter in the UI, and split it if it checks several behaviors |
| What should this test assert? | Assertion quality | The business outcome (order created with the right total), not only that a page loaded; avoid asserting on text that changes for unrelated reasons |
| Which of these twenty regression cases would you automate first? | Prioritizing | High-use, high-risk, stable flows that run every release; leave rarely used or still-changing screens for later |
| Should this check be a UI test, an API test or a unit test? | Choosing the layer | The lowest layer that can catch the bug; a pricing rule belongs in a unit or API test, the checkout wiring in one UI test |
| The acceptance criteria are vague. What do you do before you write anything? | Collaboration | Ask the product owner for examples, write them down as concrete cases, and get agreement before scripting |
| How do you name and organize tests so the next person can find them? | Maintainability | By feature and behavior, readable names, tags for smoke and regression, and no test that depends on another test's leftovers |
The hands-on scripting round
This round decides many offers. You might be asked to log in to a demo store, add two items, apply a discount and check the total, using the tool named in the posting. Reviewers watch how you choose locators, how you wait for the page, whether you set up data sensibly, and whether your assertions would catch a real bug. Talk while you work: say why you picked a locator, what you are waiting for, and what you would improve with more time.
import { test, expect } from "@playwright/test";
test("discount code lowers the basket total", async ({ page, request }) => {
// Arrange through the API: faster and less brittle than clicking through setup.
const basket = await request.post("/api/test/baskets", {
data: { items: [{ sku: "MUG-01", qty: 2 }] },
});
const { id } = await basket.json();
await page.goto(`/basket/${id}`);
await page.getByLabel("Discount code").fill("WELCOME10");
await page.getByRole("button", { name: "Apply" }).click();
// Web-first assertions wait for the condition instead of sleeping.
await expect(page.getByTestId("discount-line")).toContainText("10%");
await expect(page.getByTestId("basket-total")).toHaveText("18.00");
});- Which locator did you choose and why? Prefer what users see (role and label) or a stable test ID agreed with developers; explain why a long XPath copied from the browser breaks on the next redesign.
- Why no sleep? Fixed waits slow every run and still fail on a slow day. Wait for a condition: an element state, a network response or a web-first assertion.
- What would you add with another hour? A negative case (an expired code), test data cleanup, a page object or helper if the flow repeats, and running it in CI.
- How would this test fail if the discount logic broke? If you cannot answer, the assertion is too weak. Interviewers ask this on purpose.
- Your script works on your machine but not in their environment. What do you check? Base URL and credentials, browser version, screen size in headless mode, and test data that exists only locally.
Triaging a failed run
Many interviews hand you a report from a nightly run: forty tests, six red. The question is not how to rerun them until they pass, but how to sort the failures and tell the team something useful before stand-up. Group failures by cause, read the first error rather than the last, check screenshots, logs and the commit range, and label each group: product bug, test bug, test data, or environment. Some interviewers ask you to write a small helper for this, which is a fair coding question for the role.
function groupFailures(results) {
const groups = new Map();
for (const r of results) {
if (r.status !== "failed") continue;
const firstLine = (r.error || "unknown error").split("\n")[0];
// Drop numbers such as ids and timings so the same cause groups together.
const key = firstLine.replace(/\d+/g, "#").trim();
if (!groups.has(key)) groups.set(key, []);
groups.get(key).push(r.name);
}
return [...groups.entries()]
.map(([cause, tests]) => ({ cause, count: tests.length, tests }))
.sort((a, b) => b.count - a.count);
}
const run = [
{ name: "login works", status: "passed" },
{ name: "basket total", status: "failed", error: "Timeout 5000ms waiting for #total\n at ..." },
{ name: "apply code", status: "failed", error: "Timeout 7000ms waiting for #total" },
{ name: "invoice pdf", status: "failed", error: "Expected 200, received 503" },
];
console.log(groupFailures(run));
// [ { cause: 'Timeout #ms waiting for #total', count: 2, ... },
// { cause: 'Expected #, received #', count: 1, ... } ]- Six tests failed with the same timeout on one element. Six bugs? Probably one cause: a slow service, a changed locator or a missing feature flag. Report it once and link the tests.
- A test failed but the feature works when you try it by hand. Now what? Look for timing, data or environment differences before calling it flaky; record what you found either way.
- How do you report a real product bug found by automation? Steps a human can follow, the data used, the expected and actual result, the build, and the link to the run and its screenshot or trace.
- A developer asks you to just disable the failing test before a release. How do you respond? Agree on a visible decision: skip it with a ticket and an owner, tell the release owner the risk, and set a date to fix it.
Tool, language and API questions
- Which language and tool would you choose for a new web project, and would the team's skills change that? Name a real trade-off: the developers' language, browser coverage needs, and how the tool handles waits and debugging. Deeper tool comparisons are in the automation testing guide.
- How do you handle login in a large suite? Sign in once through an API or a saved session and reuse it, keeping a few dedicated tests for the login screen itself.
- How do you test an API without a UI? Send requests with Postman, REST Assured, pytest with an HTTP library or the browser tool's request API; check status, body, headers and error cases. See the API testing guide.
- Where do test data and secrets live? Data built by the test or by fixtures, never hard-coded production accounts; secrets in the CI system's store, not in the repository.
- How do you use Git as a tester? Branch per change, small pull requests, review from a developer, and no direct pushes to the main branch.
- What do you check before adding a new dependency to the test framework? Maintenance activity, license, whether the team needs it, and whether it slows every run.
- How do you know your suite is still worth running? Look at which tests caught real bugs, which never fail, and which fail often for non-product reasons; prune and fix accordingly.
Questions for testers moving from manual to automation
- Why do you want to move into automation? Give a reason grounded in work: the regression cycle you ran by hand every sprint and the checks you already scripted to save time.
- What have you automated so far, even at a small scale? A personal project or a few checks at work, in a public repository if you can share it, beats a course certificate alone.
- How does your manual testing background help? You know where products break, how users behave and how to write steps a developer can follow. Say how that shapes what you automate.
- What do you still find hard? Name it honestly, such as structuring a framework or async code, and show what you are doing about it.
Fictional example
- I was the automation tester for a pharmacy booking site. I had written an API check that booked a vaccine slot and then cancelled it, mostly to keep test data clean. One night it failed on the cancel step with a server error. The UI tests were green, because no UI test cancelled a booking. I reproduced it by hand: cancelling a slot booked for the next day failed for one clinic whose time zone was set differently. I filed the bug with the request, response and clinic ID, and flagged it to the release owner because the release was two days away. The developers fixed a date conversion, and I added two checks for clinics in different time zones. The lesson I took was that cleanup steps are behavior too, so I now assert on them instead of treating them as plumbing.
Behavioral questions you should expect
- Tell me about a suite you inherited. What state was it in and what did you change first?
- Describe a disagreement with a developer about whether something was a bug.
- Tell me about a release you were asked to sign off with known failures.
- How do you decide when to stop automating and start exploring by hand?
- Describe a time you had to learn a new tool in a short time.
The behavioral interview guide explains a clear story structure for these. If the product is an ASP.NET web app, the ASP.NET developer guide shows the endpoints, validation and authorization rules your tests will exercise, and if you will own the pipeline that runs the suite on AWS, the AWS DevOps engineer guide covers that side.
One week to get ready
- Day 1: pick a public demo shop and write ten test ideas for its checkout, marking which you would automate and at which layer.
- Days 2 and 3: automate three of them in the posting's tool, with API setup, stable locators and no fixed waits. Time the first one.
- Day 4: write five API checks for the same app or a public test API, including error cases.
- Day 5: break your own tests on purpose (change a locator, slow a response) and practise explaining the failure from the report alone.
- Day 6: prepare three stories: a bug automation found, a suite you improved, and a disagreement you resolved.
- Day 7: rehearse the scripting round aloud, narrating your choices as you type.
Narrating while you script is a skill of its own, and most people only notice their silences and filler on a recording. Natively, an AI interview assistant for Mac and Windows, transcribes a practice session on your computer so you can check whether you explained each locator and assertion or just typed. While you rehearse it can read a task or an error from a screenshot and suggest a next step, and with Pro or the free trial it can work from your résumé and the job posting, which helps when you prepare stories about the exact stack the team uses. The transcript and notes stay available afterward.
Questions people ask
What questions are asked in an automation tester interview?
Expect test design questions on a feature or user story, which checks to automate first, a hands-on scripting task in Selenium, Playwright, Cypress or an API tool, triage of a failed run, and questions on how you work with developers.
What is the practical test in an automation tester interview?
Usually a short journey on a demo site or provided app, such as login, basket and checkout, automated in the posting's tool within a time limit. Reviewers look at locators, waits, test data setup and whether the assertions would catch a real bug.
How is an automation tester different from an SDET?
An automation tester mainly writes and maintains automated checks in one stack. An SDET is usually hired as a developer who builds test infrastructure, and faces a harder coding round.
Can a manual tester get an automation tester job?
Many do. Show automated checks you have written, even small ones in a public repository, and explain how your manual testing experience shapes what you choose to automate.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
