All jobs / Automation developer / Framework Design
Automation developer interview question · 3–5 years
A feature flag is off in staging and on in the PR preview. How do tests cope?
The strongest answer
They name the flag they need, set it through a supported test API, and skip with a reason when the flag cannot be set — they do not assert both worlds in one silent test
Why it works
Exactly. Flags are environment. Tests either control them or declare the skip.
What a good answer covers
- Set flags through a test API.
- Skip with a reason if you cannot.
- Do not hard-code lucky URLs.
- Do not assert two worlds silently.
Answers that fall short
- Close, but not the strongest: They ignore flags; the UI will show something
Ignoring flags is a random product. - Weak: They hard-code the preview URL that happened to have the flag
A lucky URL is not a contract. - Red flag: They fail the suite if any flag exists
Flags are how we ship; banning them is not a strategy.
Who gets asked this
More Framework Design questions
- Six squads share your framework, and every triage starts with somebody rerunning the test locally with extra…
- What does a test-platform team ship?
- A vendor wants all oracles inside their cloud recorder. What do you keep local?
- What does a paved road for tests look like on day one of a new service?
- Give the one sentence you want every squad to say about test platform.
- Someone opens the test report at eight in the morning. What questions does it have to answer?
- How do you get a user into “has items in cart” for a test?
- A spec file contains a staging password. What do you do?