QAAnywhere

Remote QA & testing jobs, worldwide.

Guides

SDET interview questions: coding, framework design and CI

By Denis Bojkovski, Test Automation Architect · Published December 2, 2026

How SDET interviews differ

An SDET (software development engineer in test) is hired to write production-quality code whose job is testing. The interview reflects that: expect a coding round close to a developer's, a design round about test infrastructure, and questions about pipelines. Tool trivia matters less.

On 1 December 2026, 25 of the 190 remote QA roles on QAAnywhere were SDET roles. Of the 11 with a full description, 8 mention CI/CD and 8 APIs. They also pay above the general QA level: the SDET salary page shows a median of $141,000 a year across 29 roles that stated a salary. The guide on how to become an SDET covers the path into the role. This one is about the interview.

The coding round

What to expect. Usually one or two problems of easy to medium difficulty, in the language of your choice, solved in a shared editor. Typical themes: strings and arrays, hash maps, parsing a log or a CSV, grouping and counting, and sometimes a simple class design.

What sets an SDET apart here: test your own code. After writing a solution, list your test cases out loud before the interviewer asks: empty input, one element, duplicates, very large input, invalid characters, and the boundary values. Then run a few. This is the single strongest signal in an SDET coding round.

A problem to practise: "Given a list of test results (name, status, duration), return the names of tests that failed in at least two of the last three runs." It involves grouping, ordering and an edge case (fewer than three runs), and it is close to real SDET work: finding flaky or broken tests.

Other common requests:

  • Reverse the words in a sentence, find the first non-repeating character, or check whether brackets are balanced.
  • Parse a log file and report the most frequent errors.
  • Implement a simple retry helper with a maximum number of attempts and a delay. Then explain why retrying hides problems if used carelessly.

"What's the time complexity?" Know Big O for the basic operations: a list lookup by value is O(n), a hash map lookup O(1) on average, sorting O(n log n). You rarely need more than that.

Framework design

"Design a test automation framework from scratch for our product."

Ask questions first: what kind of product (web, mobile, APIs), which languages the developers use, how often they release, and who will write tests. Then describe layers:

  1. Tests: short, readable, one behaviour each.
  2. Domain layer: page objects or screen objects, API clients, and business actions such as "create a customer".
  3. Core: configuration per environment, driver or HTTP client setup, logging, retries for known transient failures only.
  4. Test data: builders and factories, data created through APIs, cleanup.
  5. Reporting: results in the CI system, screenshots, traces and logs for failures.

Then cover the decisions that show experience: same language as the product code so developers contribute; tests run in parallel from day one, so they must not share state; a small, reliable smoke set before a large unreliable one. The guide to test automation framework design covers this in detail.

"How would you make tests independent?"

Each test creates the data it needs, with unique values, and doesn't depend on order. Shared, read-only reference data is acceptable. Anything a test changes belongs to that test alone.

Testing services and APIs

"How would you test a microservice that depends on three others?"

Layer it:

  • Unit tests in the service, owned by its developers.
  • Component tests: the service running alone, with its dependencies replaced by stubs (WireMock or similar) and a real database in a container (Testcontainers).
  • Contract tests with the services it calls and the services that call it. See contract testing explained.
  • A few end-to-end tests for the most important journeys, in a shared environment.

The point is that most confidence should come from fast, isolated tests. Few end-to-end tests, chosen carefully. The test pyramid in practice explains the balance.

"How do you test asynchronous processing, for example a message queue?"

Publish a message, then poll for the expected result (a database row, an API state, an outgoing message) with a timeout, instead of sleeping for a fixed time. Also test the unhappy cases: a malformed message, a duplicate delivery (is the consumer idempotent?), and what happens when a downstream service is down.

CI/CD

"Where do tests run in your pipeline, and how do you keep it fast?"

A typical answer:

  • On each pull request: unit and component tests, plus a smoke UI set, ideally in under ten minutes.
  • After merge: the wider regression, in parallel shards.
  • After deployment to staging: smoke tests against the real environment.
  • In production: synthetic checks on critical journeys.

Keep it fast with parallel runs, test impact analysis where the tooling supports it, caching dependencies, and moving checks down the pyramid. The guide to GitHub Actions for test automation has a working example.

"A test fails in CI one run in twenty. What do you do?"

Don't just add a retry. Collect evidence across runs (logs, traces, timing), look for patterns (always on the same agent? only when run in parallel?), reproduce by running it many times locally, then fix the cause: shared data, a race condition in the test, an actual bug in the product. Quarantine it in the meantime, visibly. See flaky tests in CI.

"How do you use Docker in testing?"

Running dependencies (databases, queues, mock services) in containers for tests, running browsers in containers for repeatable UI runs, and packaging the test suite itself so it runs the same locally and in CI. The guide to Docker for testers covers the basics.

Strategy and collaboration

"Developers on the team don't write tests. How do you change that?"

Make it easy before asking: fast local runs, good helpers and examples, clear failure messages. Pair with developers on their first tests. Agree in the team on a definition of done that includes tests, and review test code with the same care as product code (reviewing test code). Show the value with data, such as bugs caught before release.

"How do you decide what not to automate?"

Tests that run rarely, features about to change, checks that need human judgement (visual polish, usability), and anything where the automation would cost more to maintain than it saves. Exploratory testing finds different problems from automation. Both have a place.

Preparing

  • Practise five or six easy-to-medium coding problems in your main language, always finishing with your own test cases.
  • Prepare one story about a framework you built or improved, with numbers: suite time, flaky rate, coverage of key journeys.
  • Prepare one story about a hard bug you found through automation and how you diagnosed it.
  • Read the company's engineering blog if it has one, to learn their stack.

For the questions every QA interview shares, see QA interview questions for remote roles. The Playwright and Selenium guides cover tool-specific rounds.

The open roles below are SDET roles.

Open remote QA roles

  1. Senior SDET - Real EstateTruelogic · Brazil
  2. Senior SDET, PAMKeeper Security · Remote, US
  3. Senior Software Development Test Engineer (SDET), AI & AutomationKeeper Security · Remote, US
  4. Software Development Test Engineer (SDET), AndroidKeeper Security · Remote, US
  5. Software Development Test Engineer (SDET), IOSKeeper Security · Remote, US

More guides