CAREER GROWTH

Talking About Test Automation (and AI) in a Technical Interview

Technical interviews for QA automation roles have a failure mode I see over and over: the candidate clearly knows their tools but can't explain the thinking behind their choices. They say "I used pytest" or "we had a BDD framework" and never get to why, what broke, or what they'd change. The interviewers worth impressing, the ones who build test infrastructure themselves, are listening for exactly that reasoning. Tooling is table stakes. Decision-making is the interview.

There's now a newer question in almost every one of these conversations: "How do you use AI in your testing work?" It's easy to answer badly in both directions. "I don't really use it" sounds out of date, and "Copilot writes most of my tests" sounds like nobody is checking them. What a good interviewer wants to hear is how you use coding agents and how you keep their output honest, because generating tests is cheap now and judging them is the actual skill.

This is a practical guide to preparing that conversation: framing your framework, walking through code, answering the AI question with substance, and handling the trade-off and failure questions that trip up even experienced engineers.

Build an API Automation Framework in Python

Learn Python, Behave, GitHub Copilot, APIs, and CI/CD by building a real framework you can finish in a weekend.

Learn more

Frame your architecture, not your stack

The first question is usually about your framework, and most candidates answer with an ingredients list: "Python, pytest, requests, Jenkins." The follow-up is always "and how was that structured?" because the interviewer wants to know whether you made decisions or inherited them.

Describe layers and responsibilities instead: "There was an HTTP client layer that handled authentication and retries, a data layer for fixtures and environment config, and a test layer where the assertions lived. That separation meant we could change the auth mechanism without touching the tests." That tells an interviewer you understand separation of concerns, you've thought about maintenance, and you've probably felt the pain of not having it.

One preparation exercise I recommend: draw your framework as a box diagram before the interview. If you can't draw it cleanly, you probably can't explain it cleanly either, and that's better to find out at your desk.

  • Lead with structure. Name the layers before the libraries.
  • Tie every tool to a problem. "We used Behave because the product team reviewed the scenarios" beats "BDD is best practice."
  • Be honest about inherited decisions. "The framework was already chosen; my part was refactoring the fixture layer" is a strong answer.
  • Prepare one concrete failure story. A flaky suite you diagnosed, a fixture leaking state, a pipeline producing false greens.

Answer the AI question with a workflow

When the interviewer asks how you use AI, describe a workflow with a review gate in it, not a feeling. A shape I'd be glad to hear from a candidate:

"I use Copilot or a coding agent to draft tests and step definitions, mostly for parametrised edge cases and boilerplate. The repo has an instructions file that tells it our conventions: which client to use, how to tag tests, and to assert on documented behaviour, not on whatever the endpoint currently returns. I review every generated test against the spec, and the thing I reject most is a test that snapshots the current response and calls it an assertion."

That answer shows you use the tools, you've set them up deliberately, and you know their characteristic mistake. If your repo uses .github/copilot-instructions.md or an equivalent agent file, mention what's in it. Concrete beats enthusiastic.

Be ready for the follow-ups:

  • "How do you know the generated tests are any good?" Talk about checking assertions against requirements, deliberately breaking the code to see the test fail, and looking for missing negative cases. I cover this review process in reviewing AI-suggested test coverage before you commit it.
  • "What would you not let an agent do?" A good answer: change an existing assertion or delete a failing test to make CI green without a human deciding that's correct.
  • "Have you tested an AI feature?" If you have, explain how you handled non-deterministic output: running the same check several times and judging a pass rate, keeping a fixed set of example inputs, checking structure and tool calls rather than exact wording. If you haven't, say so and explain how you'd approach it. Reasoning honestly through a new problem is a fine answer.

Don't claim more than you've done. Interviewers who work with these tools will ask one level deeper, and a vague answer falls apart quickly.

Walk through code without fumbling

Whether you're writing code live or walking through existing work, slow down and narrate. Interviewers are watching how you think as much as what you type.

For existing code, explain intent before syntax: "This fixture builds test users. I used a factory because we had many user types and hardcoding them was becoming a maintenance problem." Now the interviewer has context before reading a line.

For live exercises, state your assumptions first: "I'll assume JSON responses and a base URL in an environment variable. I'll write a fixture for the client, then a test that checks the status code and the response shape." That shows you think about setup, and it lets the interviewer correct you before you spend ten minutes on the wrong path. If the exercise allows an AI assistant, use it the way you would at work and talk through what you accept and reject. That narration is often more revealing than the code.

For API testing specifically, be ready to go beyond the happy path: token refresh, schema validation, and tests that expect 4xx responses on purpose. Those details separate someone who has written a few GET requests from someone who has maintained a real suite.

Mistakes to avoid:

  • Apologising in advance. "This is kind of messy" undermines you before the interviewer has an opinion. If there's a trade-off, name it.
  • Skipping the assertions. Candidates explain request setup in detail and rush past the assert. The assertion is where the test does its job.
  • Not knowing why a helper exists. If you can't remember, reason through what problem it probably solved. That's still credible.
  • Treating errors as an afterthought. If there's no error handling, say why, or say what you'd add.

The hard questions: trade-offs and failures

"What would you do differently if you rebuilt this?" and "Tell me about a time your tests gave you false confidence" separate people who've done the work from people who've read about it. They're also the questions candidates prepare for least.

Prepare by interrogating your past work. A monolithic conftest.py nobody could find their way around. Over-mocked HTTP layers that missed integration bugs. A pipeline that ran everything on every commit until developers stopped waiting for it. Each is a good answer once framed as situation, decision, consequence, lesson:

"The full suite was slow enough that developers stopped running it before merging. We split it into a fast smoke run on every PR and a nightly full regression. The trade-off was that some bugs surfaced overnight instead of at merge time. That was acceptable for that team, but I'd draw the line differently on a payments system."

AI-assisted work gives you good material here too. A generated test that passed for weeks while asserting nothing useful, or a batch of agent-written tests that all shared one hidden assumption, makes a strong story if you explain how you caught it and what review rule you added afterwards.

Don't pretend you've never had flaky tests or false negatives. Anyone who has run automation at any scale has. Own the failure, explain how you diagnosed it, and describe what you changed.

Prepare the evidence before the conversation

All of this is easier if you have something concrete to point at. A small public repo with a clean API suite, a CI workflow and an agent instructions file gives you a ready-made walkthrough; building a test automation portfolio that gets interviews covers what to put in it. It's also worth checking which API testing skills show up in job postings so you know which parts of your work to lead with.

Finally, be ready to talk about what you're still learning. Saying "I'm working out how to test features that call a model, where the same input doesn't always give the same output" signals honesty and growth. Strong teams want people who know where their edges are. If you want hands-on material to talk about, my API testing courses build a full suite with Behave or Cucumber, VS Code and GitHub Copilot, which gives you a project you can explain end to end.