All jobs / Automation developer / Automation Fundamentals

Automation developer interview question · 0–1 years

Test B fails when you run it after test A, and passes alone. What is wrong?

The strongest answer

Shared leftover state — a cookie, a row, a cart — tests must set up and leave the world as they found it, or use data only they own

Why it works

Exactly. Isolation is the job. Order dependence is a bug in the suite.

What a good answer covers

Answers that fall short

Who gets asked this

More Automation Fundamentals questions