All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 0–1 years
You need to prove a discount rule. Where do you put the first automated check?
The strongest answer
On the API or the pricing function — same inputs, same outputs — and keep one UI case for the badge the shopper sees
Why it works
Exactly. The rule is data in, price out. The UI is one witness, not the only one.
What a good answer covers
- Test the rule where it lives.
- One UI witness for the shopper.
- Do not wait on a visual licence.
- Spreadsheets are not CI.
Answers that fall short
- Close, but not the strongest: Only in the browser; the rule is not real until a human could click it
A browser is a slow way to sample a table of cases. - Weak: Only in a spreadsheet the PM keeps
A spreadsheet is not a regression pack. - Red flag: I skip it until we buy a visual tool
You do not need pixels to test arithmetic.
Who gets asked this
More Automation Fundamentals questions
- Test B fails when you run it after test A, and passes alone. What is wrong?
- A junior’s test is 80 lines of clicks with one expect at the end. What do you ask for?
- 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?