Skip to content
Preptima

Top 4 Test automation Interview Questions

Browse 4 real-world technical and behavioral interview questions about Test automation. Review scenarios, edge cases, and architectural best practices.

Your test suite fails randomly about one run in five. How do you get it under control?

Quarantine and measure before fixing: keep per-test pass history so you can rank offenders and restore a trustworthy signal, then work the root-cause families one at a time. Retries belong in a narrow, logged, budgeted policy, because a blanket rerun turns a real product race condition into a green build.

hardscenario

How do you decide what to automate and what to leave manual?

Automate what runs often, has a deterministic oracle, sits on a stable interface, and guards an expensive escaped bug. Push each check to the cheapest layer that can still fail meaningfully, treat flakiness as a defect rather than noise, and keep human time for exploratory testing, not scripted regression.

mediumconcept

What belongs in a page object, and what should never go in one?

A page object owns locators and the mechanics of interacting with a screen, and nothing else. Assertions, test data and workflow belong in the test, because the moment a page object asserts, the test's intent stops being readable from the test.

easyconcept

Which tests should run on every commit and which should run nightly, and how do you decide?

Give the blocking stage a fixed time budget and put only fast, deterministic, developer-diagnosable tests inside it; everything slow, environment-dependent or exploratory moves to a scheduled run with a named owner. Use this ci cd answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects test automation to the point an interviewer is testing.

mediumconcept