All jobs / QA / manual tester / API Testing
QA / manual tester interview question · 3–5 years
The OpenAPI file is stale. Tests use a different example. What do you do?
The strongest answer
I make one example the source — generate or fail CI when they drift — I do not keep three truths
Why it works
Exactly. One source, CI when they drift. Three truths are how mobile and web disagree.
What a good answer covers
- One example source.
- CI on drift.
- Keep a readable contract.
- Do not trust review alone.
Answers that fall short
- Close, but not the strongest: I delete the OpenAPI; tests are enough
Docs still onboard people. - Weak: I delete the tests; the doc is enough
Docs without tests drift. - Red flag: I accept drift; humans will reconcile in review
Review will not catch it every time.
Who gets asked this
More API Testing questions
- 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?
- Which request and response headers do you actually look at when testing an API?
- Pay is a POST. What conceptual API check do you insist on?