All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 0–1 years
A junior’s test is 80 lines of clicks with one expect at the end. What do you ask for?
The strongest answer
A readable arrange / act / assert — set the world, do one thing, check one outcome — so a failure names the story
Why it works
Exactly. Structure is how a red test teaches. A novel of clicks does not.
What a good answer covers
- Arrange, act, assert.
- One story per test.
- A failure should name the miss.
- Do not hide in a folder label.
Answers that fall short
- Close, but not the strongest: More expects on every line so coverage goes up
Assert spam is not a story. - Weak: A video attachment instead of asserts
A video without an oracle is a tour. - Red flag: Rename the file to “e2e” and leave the body
A folder name is not a design.
Who gets asked this
More Automation Fundamentals questions
- A test only checks that the page did not throw. What is missing?
- A UI test fails one in four CI runs. What is it?
- A PR adds a test that Playwright can click a native checkbox. What do you say?
- A test logs in, updates the profile, buys, refunds, and checks the invoice PDF. What do you do?
- A new date-parsing helper is wrong on leap days. Where does the first test go?
- How do you debug a flake that only happens in CI?
- The framework offers retries: 2 on every test. When do you use it?
- You quarantine a flake. What else is required?