All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 0–1 years
A test logs in, updates the profile, buys, refunds, and checks the invoice PDF. What do you do?
The strongest answer
Split it — one reason to fail per test — and share setup helpers so you do not paste the login five times
Why it works
Exactly. A saga hides which step died. Helpers share setup; they do not merge stories.
What a good answer covers
- One reason to fail.
- Share helpers, not mega-tests.
- Retries are not a split.
- Do not exile the saga; cut it.
Answers that fall short
- Close, but not the strongest: Keep it; one test that “does the journey” is efficient
A journey demo is not a pack of checks. - Weak: Add retries because a long test will flake
Retries do not split a story. - Red flag: Move it to nightly and never look at it
Nightly is where sagas go to rot.
Who gets asked this
More Automation Fundamentals questions
- 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?
- When do you stub the payment API in a UI test?
- The UI pack is 70% of runtime and finds 10% of bugs. What do you do?
- How do you talk about flakes with a director?
- People rerun the PR pipeline “until green.” What do you change?