7 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?
Asked at
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.
Also asked at Белл интегратор
Similar questions
- What was the balance between frontend and backend testing in your current role?
- Please briefly describe your experience testing backend systems and microservice integrations.
- What’s the split between your web and backend testing, and how many automated tests have been written for each?
- Could you tell me specifically about the web product: what did your work look like, and what did the tests cover?
- What specific tools did you use to test the frontend and backend?