All jobs / Automation developer / Framework Design
Automation developer interview question · 5+ years
Six squads share your framework, and every triage starts with somebody rerunning the test locally with extra logging turned on.
What must every run leave behind so that stops?
The strongest answer
A structured log per test, written by default: the steps taken, the requests and responses with secrets redacted, the data the test created, and the build and environment — attached to the test, not buried in one console stream
Why it works
Right — triage should read the run, not reproduce it, and default-on is the only setting that helps.
What a good answer covers
- Capture it on the first run.
- Structured log per test, by default.
- Redact secrets; keep the requests.
- Attach it to the test, not a stream.
Answers that fall short
- Close, but not the strongest: Screenshots, video and a trace for every failing test, uploaded as CI artefacts
Necessary and not sufficient: a video shows the symptom, not the request that caused it. - Weak: Verbose logging switched on everywhere, so that nothing is ever missing when somebody needs it
Full-volume logging buries the one line that matters and is how secrets end up in artefacts. - Red flag: A documented procedure for reproducing a failure locally, so triage is consistent across the squads
A procedure standardises the rerun instead of removing it; the run should already have this.
Who gets asked this
More Framework Design questions
- 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?
- What is Given / When / Then for in an automation suite?