Risk Based Testing
What is Risk-Based Testing?
Risk-based testing is a testing approach that prioritises test activities based on the likelihood and impact of potential failures, ensuring the highest-risk areas of the application receive the most testing attention.
Steps in Risk-Based Testing
- Risk Identification: Identify potential product and project risks.
- Risk Assessment: Evaluate each risk's likelihood and impact.
- Risk Mitigation: Prioritise test design and execution based on assessed risk levels.
- Ongoing Review: Reassess risks as the project progresses and new information emerges.
Benefits
Risk-based testing helps allocate limited testing time and resources most effectively, ensuring that the areas most likely to cause serious problems are tested thoroughly, even under tight schedules.
Scoring Risks With a Simple Matrix
Most teams rate each risk on two scales, often from 1 (low) to 5 (high), and multiply them:
- Likelihood: how probable is a failure? Consider new or changed code, complex logic, past defect history, inexperienced teams and many integrations.
- Impact: how bad would it be? Consider money lost, legal or safety issues, data loss, number of users affected and damage to reputation.
Risk score = likelihood × impact. The score is not a precise measurement; it is a shared, agreed way to rank areas so the team can discuss priorities openly instead of by gut feeling.
Worked Example: An Online Store Release
| Area | Likelihood | Impact | Score | Test response |
|---|---|---|---|---|
| Payment gateway (new provider) | 4 | 5 | 20 | Deep functional, negative, integration and security testing; test early |
| Discount engine (rewritten) | 4 | 4 | 16 | Boundary and combination tests; exploratory sessions |
| Order history page | 2 | 3 | 6 | Standard functional tests and regression |
| Footer links | 1 | 1 | 1 | Quick smoke check only |
With limited time, the team tests the payment gateway first and most thoroughly, then the discount engine. If the schedule is cut, the low-score items are reduced, and stakeholders are told clearly which risks remain untested.
Turning Scores Into a Test Plan
Once areas are ranked, the risk level should change what the team actually does:
- Order of execution: high-risk areas are tested first, so serious defects appear while there is still time to fix them.
- Depth of testing: more techniques, more data combinations and more reviewers for high scores; lighter coverage for low ones.
- Automation focus: high-risk, frequently changing areas are strong candidates for automated regression.
- Exit criteria: for example, no open critical defects in any area scored high.
- Reporting: status reports show progress per risk level, so managers see coverage of what matters most, not just a pass percentage.
Remember to separate product risks, such as a calculation error, from project risks, such as a late test environment or a missing specialist. Product risks shape what you test; project risks shape how and when you can test, and usually need management action.
Mistakes and a Practical Checklist
- Scoring risks alone as a tester; involve product owners, developers and support staff who see real user problems.
- Doing the risk analysis once and never revisiting it after requirements or code change.
- Ignoring low-risk areas completely instead of giving them a light check.
- Using the matrix to justify skipping testing without telling stakeholders what was skipped.
Checklist: list features and quality attributes, score likelihood and impact together, rank by score, map each level to test depth, record the decisions in the test plan, and review the list at each milestone or after major defects.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.