All jobs / Automation developer / Framework Design

Automation developer interview question · 3–5 years

Your framework offers per-test, per-file and per-run fixtures. Setting up a tenant takes thirty seconds; signing a user in takes two.

How do you decide the scope of each fixture?

The strongest answer

Run scope only for things that stay read-only and are expensive, like the tenant; test scope for anything a test mutates, like the user and its data. A shared fixture that is ever written to is the next order-dependent failure

Why it works

Exactly — the question is not speed, it is whether anything writes to the shared thing.

What a good answer covers

Answers that fall short

Who gets asked this

More Framework Design questions