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
- 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.
- 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.
- 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…
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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.
- 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.
- 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
- 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.
- 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.
- 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
- 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.
- 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.
- 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
- 20
Mobile testing with Appium and devices
Appium drives apps through the platform own automation tools. Real phones behave differently from emulators.
- 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.
- 22
Basic security and accessibility checks
A tester can run simple security and accessibility checks and know what automation cannot find.
- 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.
- 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.