Module 2. Advanced testing · Lesson 11 of 41 · 12 min

Risk-based testing: what to test first

The risk matrix, the cost of a defect by phase and how to spend limited testing time.

There's always less time than checks

A full regression of a large product takes days, and the release is tomorrow. Risk-based testing answers one question: what do we check so the most expensive defects never reach users?

Risk = likelihood × impact

  • Likelihood of a defect is higher where there are fresh changes, complex logic, new technology, a history of bugs, or several teams working in one module.
  • Impact is higher where money, personal data, legal requirements, a key user journey or a large number of users are involved.
Risk matrix: likelihood × impactLikelihood of a defect →Business impact →HighMediumLowLowMediumHighCheckoutnew providerCartdiscounts changedSearchnew engineProfileFooterBlog
Risk matrix: likelihood × impact. Risk = likelihood of a defect × business impact. Start testing from the top-right corner: that's where the depth and regression go. Example for an online store.
Zone What we do
Red (high × high) Detailed cases, negative and boundary scenarios, full regression around the change, automation
Yellow Main scenarios plus selected negative ones
Green Smoke or an exploratory pass

Why it pays off

A defect found late costs far more. The exact multipliers vary between studies, but the order of magnitude is stable: a fix in production means a hotfix, customer communication and sometimes refunds or credits.

Relative cost of fixing a defect by phaseDesign: ×1×1DesignDevelopment: ×6.5×6.5DevelopmentTesting: ×15×15TestingProduction: ×100×100Production
Relative cost of fixing a defect by phase. A widely quoted estimate (IBM Systems Sciences Institute): a defect found in production costs tens of times more than one found in design. The exact multipliers are disputed and project-dependent — the order of magnitude is what matters.

How to roll it out in one sprint

  1. List the product's modules and rate each one's likelihood and impact on a 1–3 scale.
  2. Add the release context: what changed and what depends on the changes.
  3. Prioritize test cases: critical / high go into the red zone.
  4. Agree with the PO on what is deliberately tested less — that's a team decision, not QA's alone.
  5. After the release, compare where defects actually appeared and adjust the ratings.

A risk register is a living document. A module nobody touched for a year turns red the moment it's rewritten.

It's convenient to keep case priority right in the test set — in QA Tools, priority filters and a smoke suite of critical/high cases are built automatically.

Key takeaways

  • Risk is the likelihood of a defect multiplied by its business impact.
  • The red zone gets the deepest testing; the green zone gets smoke or exploration.
  • Testing priorities are agreed with the team and revisited after the release.

Check yourself

  1. 1. Checkout was rewritten for a new payment provider. Which risk zone?

  2. 2. What increases the likelihood of a defect?

  3. 3. Who decides to test an area less?

Practice: Drill: severity or priority