Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
You've been given a new REST endpoint for creating a user. What will you test?JuniorHow would you test a REST endpoint for creating an order, POST /orders? What would you check besides a successful response?Mid-levelYour service is integrated with an external payment provider, and on the test environment it's either unavailable or takes a minute to respond. How would you test this integration?Mid-levelThere's an endpoint POST /api/users: it accepts JSON with the fields email and name, and on success returns status 201 and the created user with the fields id, email, name and createdAt. Write automated tests for this endpoint: a positive scenario that checks the response schema, and a couple of negative ones.Mid-levelHow would you test a payment creation API for idempotency and concurrent requests?SeniorIn a system of twenty microservices, the end-to-end tests take a long time and fail constantly. How would you apply contract testing, and what won't it cover?Senior