Skip to the page

Test automation · 24 concepts

Test automation for SDETs

From test design and bug reports to Selenium, Playwright, API tests, frameworks, flaky tests, mobile, load tests and the coding round, the way SDET interviews ask them.

Asked in these mock interviews

Part 1 · 4 concepts

Test design and strategy

  1. 01

    Test design: classes, boundaries and decision tables

    A tester does not write random cases. They split inputs into equivalence classes, test the edges of each class, and use a decision table when several conditions combine.

  2. 02

    Bug reports, severity and priority

    A good bug report lets someone else see the bug without asking you. Severity is how badly it hurts; priority is how soon the business wants it fixed.

  3. 03

    Risk-based testing and payment states

    When time is short, test what is likely to fail and what hurts most if it does. Payments are a good example, because a payment has many states, not only success and…

  4. 04

    The test pyramid and a regression plan

    Many fast unit tests, fewer API tests, and a thin layer of UI tests. A weekly release needs a plan: what runs on every pull request, every night and before release.

Part 2 · 6 concepts

UI automation

  1. 05

    Waits and stale elements in Selenium

    A sleep waits a fixed time and is always wrong. Use an explicit wait for the real condition, and find elements again after the page changes.

  2. 06

    Locators and the page object pattern

    A stable locator survives a page change. A page object keeps locators and user actions in one class, so a UI change is fixed in one place.

  3. 07

    Selenium 4, Grid and running in parallel

    Selenium 4 uses the W3C WebDriver protocol, manages drivers by itself, and adds BiDi. Grid runs many sessions at once, but the code must be safe for it.

  4. 08

    Frames, windows and shadow DOM

    Normal searches do not go inside iframes, other windows or shadow roots. You must switch or search the right context first.

  5. 09

    Playwright waits and web-first assertions

    Playwright checks that an element is ready before each action and retries assertions. It still does not know when the app itself is ready.

  6. 10

    Playwright login fixtures, Cypress and choosing a tool

    Log in once and reuse the saved state. Know how Cypress differs, and choose a tool by team and need, not by hype.

Part 3 · 3 concepts

API testing

  1. 11

    API checks: status codes and REST Assured

    An API test checks the status code, the body, the schema, the headers and the side effects, not only that the call worked.

  2. 12

    API authentication and expiring tokens

    Tests that log in once and run for a long time meet expired tokens. A token manager fixes this without slowing the suite.

  3. 13

    Test data, stubs and contract tests

    Good API tests make their own data, replace unstable third parties with stubs, and use contract tests to keep both sides in agreement.

Part 4 · 3 concepts

Frameworks and CI

  1. 14

    Framework design, TestNG and JUnit, and Cucumber

    A framework has layers, a runner, config, data handling and reports. Start from goals, not tools, and be able to explain your own framework with numbers.

  2. 15

    Parallel runs, CI speed and where browsers run

    To make a suite fast, measure first, cut setup, and run in parallel safely. A shared static driver breaks parallel runs.

  3. 16

    Useful reports and secrets in test repos

    A report must help someone fix a failure fast. A secret in a repo is a leak even if you delete the line.

Part 5 · 3 concepts

Flaky tests

  1. 17

    Flaky tests: CI, headless and environment causes

    When a test passes locally and fails in CI, find the difference first. Evidence comes before any fix.

  2. 18

    Flaky tests: timing, shared state and time zones

    Most flaky tests are races, shared state or time. Find which one with evidence, then remove the cause.

  3. 19

    Retries, quarantine and a suite that went red

    Retries hide problems and quarantine needs an owner and a date. After a big UI change, group the failures before you fix any.

Part 6 · 5 concepts

Mobile, performance and coding

  1. 20

    Mobile testing with Appium and devices

    Appium drives apps through the platform own automation tools. Real phones behave differently from emulators.

  2. 21

    Load testing with k6 and JMeter

    A load test needs a goal, thresholds and real user behaviour. Read results by errors and percentiles, not by the average.

  3. 22

    Basic security and accessibility checks

    A tester can run simple security and accessibility checks and know what automation cannot find.

  4. 23

    Coding problems testers get asked

    Testers get small coding tasks: count characters, find the second largest, find pairs, read a CSV, check links. Say the cost, handle edge cases and test your code.

  5. 24

    Writing and reviewing unit tests

    A test that cannot fail proves nothing. Parameterised tests with the right boundary values are strong, and a reviewer can spot weak ones fast.

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview