By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A support bot has thousands of possible questions. An agent has dozens of tool combinations. You will never cover them all, and attempting to is how teams end up with a two-hour test suite nobody runs. Risk-based testing is simply deciding where the failures would hurt most, and pointing your effort there.
Likelihood is how often real users will hit that input. Get it from evidence:
If you have no traffic yet, use the ten questions a new customer asks on day one. They are remarkably predictable: where is my order, how do I return this, do you ship to my country, how do I use a discount code, my item arrived damaged.
| Impact | Consequence | Nova example |
|---|---|---|
| Critical | Money leaves, law breaks, someone is harmed | Promises a refund; gives wrong customs advice; leaks another customer's order |
| High | Customer acts on wrong information and trusts it | Wrong returns window; says a country is served when it is not |
| Medium | Customer has to ask again or contacts support | Unhelpful retrieval; ignores the 80-word limit |
| Low | Slightly worse experience | Wrong tone; missing source title |
Fill this in for your own product and put it at the top of the test plan. Two axes, nine cells, and a decision in each: how much testing, how often.
| Low impact | Medium impact | Critical impact | |
|---|---|---|---|
| High likelihood | Automate, check every release | Automate with thresholds, every release | Automate + red-team, block release on failure |
| Medium likelihood | Spot-check monthly | Automate, every release | Automate + manual review before launch |
| Low likelihood | Skip; revisit quarterly | Sample in the regression set | Red-team once, then regression forever |
Risk also tells you how to test, not just what:
| Test type | Cost per run | Best for |
|---|---|---|
| Deterministic unit tests (mocked LLM) | Free, milliseconds | Prompt assembly, parsers, scoring maths, guardrails |
| Single-call eval (LLM-as-judge) | Cents, seconds | Every prompt change, every commit |
| Dataset eval (50+ cases) | Dollars, minutes | Pre-release, nightly, model changes |
| Human review | Hours, expensive | Calibrating the judge, ambiguous cases, red-team findings |
| Load test | Dollars, minutes | Before traffic changes, before launch |
Key takeaways
You cannot test everything; risk tells you where to spend effort.
Likelihood comes from traffic data, not intuition.
Impact is measured in money, safety and trust — not vibes.
Match test type to risk level: cheap deterministic tests for logic, expensive evals for quality.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.