Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Automation & CISeniorOccasionalStrategy

How would you distribute automated checks across unit, service and UI layers?

Answer

Place each assertion at the lowest layer that can provide trustworthy feedback. Use many focused component and service checks, keep UI tests for critical integrated behaviour, and retain a small set of end-to-end journeys.

Strong answer includes

  • fast feedback
  • layer chosen by risk
  • avoids duplicated UI suites

Practical example

For a discount-calculation feature, the team writes 20 unit tests covering every pricing rule combination (fast, milliseconds each), 5 service-level tests confirming the pricing service integrates correctly with the product catalog API, and just 2 UI tests confirming a discount actually displays correctly on the checkout page — instead of testing all 20 pricing rules through slow, brittle browser automation.

Sources

DOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topicsPlaywright best practicesMicrosoft · Reliable modern browser automation