All jobs / QA / manual tester / API Testing
QA / manual tester interview question · 3–5 years
Two clients consume one API. Where do you put the cheapest tests?
The strongest answer
On the contract — examples, status, required fields — before either UI, so both clients inherit the oracle
Why it works
Exactly. One contract, two clients. That is shift-left you can fund.
What a good answer covers
- Contract first.
- Share the examples.
- UI tests still walk a path.
- Do not wait for prod probes.
Answers that fall short
- Close, but not the strongest: Only in each UI, because that is “real”
Two UIs will drift and miss the same field. - Weak: Only in production synthetic probes
Prod probes are late and thin. - Red flag: In a slide deck of status codes
Slides are not executable oracles.
Who gets asked this
More API Testing questions
- You are asked to “test the API” and you will not write a framework in the room. What do you still cover?
- The OpenAPI file is stale. Tests use a different example. What do you do?
- You are asked to test authentication and authorisation on an API. What is on your list?
- Mobile, web, and a partner all break when you add a field. What quality object were you missing?
- An API returns 200 with an error object in the body. What do you report?
- What do GET, POST, PUT, PATCH and DELETE tell you before you write a single API test?
- An endpoint returns 400 for one request and 500 for another. What does that difference tell you?
- The UI looks fine; the list API dropped a field the mobile app still needs. Who should have caught it?