In brief
Risk-based testing sets the order and depth of tests by risk level, meaning the combination of the likelihood of failure and its business impact. Areas where a defect is both likely and expensive, such as fee calculation or balance migration, are tested first and most thoroughly. Low-risk areas get shallower or later tests. The method gives you a justification when there is less time for testing than work to do, which is almost always.
What the risk-based approach is about
The ISTQB Foundation Level syllabus defines risk as a potential event, hazard or situation whose occurrence has negative consequences, and describes it with two attributes: likelihood and impact. Together they determine the risk level. Risk-based testing is an approach in which risk analysis decides what to test, in what order, with which techniques and how thoroughly.
The syllabus distinguishes two kinds of risk:
- project risk: relates to running the project, for example a delayed environment, no access to a partner's system, a key person leaving;
- product risk: relates to the quality of the system, for example an incorrect premium calculation, a slow response at peak traffic, a data leak in logs.
Risk-based testing is primarily about product risk. Project risk goes into the test plan as an assumption or a threat to the schedule.
How to assess likelihood and impact
The assessment comes out of a workshop with business, analysts, the architect, developers and testers. Each group sees a different half of the picture: the business knows the impact, the technical team knows the likelihood.
The likelihood of failure is affected by, among other things:
- complexity of the logic and the number of business rules;
- a new technology or a new vendor;
- a big change in old code without tests;
- the number of integrations and external systems;
- defect history in the module;
- time pressure and team turnover.
The impact is made up of:
- financial loss, for example incorrect posting or customer refunds;
- regulatory and legal consequences;
- the number of users the defect affects;
- reputational damage and customer churn;
- the cost of a workaround and manual handling until a fix.
Both attributes are rated on a simple scale, for example 1 to 5. The risk level is the product or a position in a matrix. The precision of the scale matters less than everyone rating against the same descriptions: a “5” for impact might mean a sales stoppage or an obligation to notify the regulator.
A risk matrix in practice
An example for replacing a card system at a bank. The numbers illustrate the method and are not an assessment of any specific system.
| Area | Likelihood | Impact | Level | Consequence for testing |
|---|---|---|---|---|
| Transaction authorization | 3 | 5 | 15 | E2E tests with the card scheme, limit boundary values, performance tests |
| Fee and commission calculation | 4 | 4 | 16 | Decision tables for all tariffs, comparing results with the old system |
| Card and limit migration | 4 | 5 | 20 | Full data reconciliation before and after migration, dress rehearsals |
| PDF statements | 2 | 2 | 4 | Smoke tests, a few document templates |
| Internal reports | 2 | 2 | 4 | Post-deployment check, fixes in the next release |
The table gives the order: migration first, then fees and authorization, statements and reports last. It also gives the depth. Migration gets a full reconciliation of all records, reports get only a check of a few summaries.
How risk translates into the test plan
The risk level drives several decisions at once:
- Order. High-risk areas are tested earliest, so defects surface while there is still time to fix them.
- Techniques. High risk justifies formal techniques: decision tables, boundary value analysis in the three-value variant, state transition tests. Low risk can be covered with exploratory testing.
- Independence. Critical areas are worth handing over for review or testing to someone outside the team that built them.
- Test levels. High performance risk means a separate load test, high security risk means a penetration test.
- Exit criteria. For high-risk areas the threshold is stricter, for example zero open serious defects.
The same risk map then serves regression: areas with high impact go into the core of tests run in every release, as we describe in the article on regression with weekly releases.
Risk control and reporting
The ISTQB syllabus describes risk control as two activities: mitigation and monitoring. Testing is one way of responding to product risk, but not the only one: the syllabus also lists accepting the risk, transferring it to another party and a contingency plan. In IT projects a contingency plan might be a phased rollout, a feature flag or a prepared rollback procedure.
Monitoring means the risk assessment lives throughout the project. When the fee calculation module produces many defects, the likelihood goes up and the area gets more testing. When the business drops some functionality at launch, the risk goes down.
A test report is better written in the language of risk than in a count of test cases. The sentence “82% of cases were tested” says little. The sentence “the migration and authorization areas are fully verified, in fees two corporate tariffs remain with incomplete coverage, workaround: manual correction” lets you make a decision. How to choose numbers for such a report is described in the article on software quality metrics.
Product and project risk analysis is part of the ISTQB Foundation Level syllabus. You can take the exam at our accredited exam center.
Questions and answers
Who should assess risk in a project?
The team, with the business involved. The tester runs the workshop and keeps the scale consistent, but cannot assess financial or regulatory impact alone. The product owner and business representatives contribute the impact assessment, the architect and developers the likelihood assessment. An assessment prepared by testers alone usually overrates technical risks and underrates the consequences for the customer.
Does risk-based testing mean some areas are not tested at all?
Sometimes yes, but it is an explicit, documented decision. An area with very low risk may get only a smoke test or a check after deployment. The difference from having no plan is that the business knows what was not checked and consciously accepts it. The list of risks accepted without testing should go into the report before release.
How often should the risk analysis be updated?
At every significant scope change and based on test results. In agile projects a good rhythm is a review when planning each release or every few sprints. Signals to update are a new integration, a large number of defects in one module, a schedule change, a new regulatory requirement and a production incident in a similar system.
How does risk differ from test case priority?
Risk describes an area of the system and the possible consequences of failure. Test case priority is the execution order, which follows from risk but also accounts for dependencies: sometimes a lower-risk test has to run earlier because it prepares data for others. The ISTQB syllabus treats test case prioritization as a separate skill.