Risk-based testing: what to test first
Risk-based testing ranks what you test by what a break would cost and how likely it is. A two-question method for small teams, worked through on a real app.
Risk-based testing is deciding what to test first by asking two questions about each part of your app: what does it cost if this breaks, and how likely is it to break? Test the costly, likely parts first and deepest. Test the cheap, stable parts last, or decide not to.
You are already doing a version of this, because nobody tests everything. The difference is whether the choice is made on purpose or by whatever the last person happened to click on.
Rank journeys, not pages
The unit that works is the user journey: one kind of user getting one thing done. “A visitor signs up.” “An editor creates an item.” “A member upgrades.”
Pages are the wrong unit. A journey crosses several pages, and it can break while every page still loads. Functions are the wrong unit too: users don’t experience a function, and you’d need hundreds to describe a small app.
Write your journeys down first. For a small product, a page or less. Then ask the two questions of each.
Question one: what does a break cost?
Cost has an order. For a typical SaaS it runs like this.

Money. Checkout, upgrades, renewals. A break here costs revenue directly, and worse, breaks in the other direction (charging twice, giving away what is paid) cost trust and refunds.
Getting in. Sign-up, login, password reset, the confirmation email. A broken sign-up is invisible from inside: your existing users are fine, your dashboards look normal, and new people quietly fail to arrive.
The main thing. Whatever your product is for. If people can get in and pay but can’t do that, they will leave politely.
Other people’s data. Who can see, change or delete what. These journeys are easy to rank too low because when they break nobody complains. The person who can suddenly open someone else’s item is not harmed, and the owner doesn’t know. One incident here can cost more trust than an outage.
Everything else. Profile pictures, notification settings, the about page.
Question two: how likely is a break?
Three things make a journey more likely to break:
- It changes a lot. The code you edit every week is where this week’s bugs will be. Look at where your last twenty changes landed.
- It depends on someone else. A payment provider, an email service, a login through another company. They change without telling you.
- It broke before. A part of the app that has regressed once has something about it (tangled code, unclear ownership) that tends to make it regress again.
And one thing makes it less likely: nobody has touched it in a year and nothing it depends on has moved.
Put the two together

That is our own practice app’s journeys, placed as if it were a product we shipped every week. The chances are our guess for such a product, not a measurement. The reasoning, row by row:
| Journey | Cost of a break | Chance of a break | So |
|---|---|---|---|
| Create an item, edit an item | The main thing | High: the forms change all the time | First. Every main case, on every deploy. |
| Log in | Nobody gets in | Low: rarely touched | Second. One journey, every deploy. |
| Another editor can’t open my item | A data leak | Low, and silent when it happens | Second. One journey, every deploy. |
| A plan’s button reaches its payment step | Money | Low | Second. One journey, every deploy. |
| Upload a file, download a report | An annoyance | Medium | Third. A good-input case, daily. |
| The set-up wizard | Seen once per account | Low | Last. Tested when it changes. |
Notice the second group. Low chance, high cost. This is where risk-based testing earns its name: you test login on every deploy precisely because you never expect it to break. The test costs seconds. Not having it costs a morning with nobody able to get in.
Depth, not only order
Ranking tells you what to test first. It should also tell you how much.
- Top right: the good input, the empty form, the wrong format, wrong then right, and the same step as another kind of user. See happy path vs edge cases.
- Top left: the journey from start to result, checked properly at the end. These are the core of your regression suite.
- Bottom right: the happy path only.
- Bottom left: nothing automated. Look at it when you change it.
A common mistake is to spread the same thin layer over everything: one shallow test per page, on every page. That gives you a large number and little protection. A few journeys tested deep where it matters beat many tested to “the page loaded”.
Critical path testing: the short version
If even the grid is too much this week, do the smallest useful thing. Write down the one path a new customer takes from landing on your site to getting value: arrive, sign up, confirm, do the main thing once. That is your critical path. Test that, end to end, on every deploy, and nothing else.
It isn’t complete, but it is the single journey whose failure costs you the most.
Review the ranking
The ranking goes stale as the product changes. Look at it again:
- when you add a way to pay or a new kind of user
- when something breaks in production (it moves up, and so do its neighbours)
- every quarter, for ten minutes, asking “what do we edit most now?”
What risk-based testing is not
Risk-based testing doesn’t excuse skipping what’s hard. Checkout is hard to test because you mustn’t really pay (we cover how in testing checkout without paying), and it is still at the top of the ladder. The method tells you where to spend effort, including the effort of solving an awkward testing problem.
Nor is it a risk register with scores from one to five in a spreadsheet nobody opens. Two questions and four boxes are enough for a small team. If the ranking takes longer than an hour, you are doing a bigger company’s version.
Where EveryRole helps and where it doesn’t
After EveryRole explores your app it suggests journeys for each kind of user, and you keep or skip each one. That choice is the ranking, and it stays yours: it can see that a form exists, not what that form is worth to your business.
What it takes off your hands is the cost of acting on the ranking. Main cases run at every form stop of every journey you keep, each stop is checked as the other kinds of user, and each plan’s button is walked to the payment step without paying (a button that says “Buy” waits for your yes, then runs on your preview or staging deploys). So “test first and deepest” doesn’t mean a week of writing scripts.


