Skip to content
Middle7 views

If we're talking about backend testing, could you tell me in more detail what exactly you tested, what you focused on, how you checked it, and what test cases you had?

Practice

AI answer

Backend testing usually covers API contracts, business logic, and interactions with the database and external services. The specific scope depends on the system; it is useful to describe it by layers:

  • API: methods and URLs, response codes and structure, headers, data format; positive and negative scenarios.
  • Validation: required fields, types, boundary values, invalid and extra data.
  • Business rules: valid state transitions, calculations, constraints, and repeated requests.
  • Authorization: access without a token, with an invalid or expired token, role-based access, and access to other users' resources.
  • Errors: expected statuses and messages, no leakage of internal details, and correct handling when dependencies are unavailable.
  • Data and integrations: saving to and reading from the database, transactions, migrations, and interactions with queues and external APIs.
  • Non-functional checks: performance, concurrent requests, and basic security — if these are within scope.

For example, for POST /orders, you might check successful creation, a missing required field, an invalid format, insufficient permissions, an unavailable product, a repeated request, and whether the expected data was saved in the database. Checks can be performed manually with Postman or automated with API tests; integration scenarios can use a test database or controlled dependency stubs. In an interview, it is useful to clarify exactly what you personally tested, which tools you used, and how you prepared test data.