Skip to content
Bugwise
Menu
Tutorials

Escaped Bugs and Root Cause Analysis

What to do when a bug reaches users, from the first hours of an incident to a blameless review, with the two questions every analysis needs, the 5 whys, contributing factors, and actions that actually prevent the next escape.

intermediate Mobile & web
Short on time? Switch to the quick version.

Monday morning, three days after QuickBite 3.10 went out. Support has 140 new tickets with the same complaint: “All my saved addresses are gone.” In the team chat, someone writes what everyone is thinking: “How did QA not catch this?”

Every team ships bugs. Even very good teams with strong automation do, because no amount of testing covers everything. What separates good teams from the rest is what happens next: how fast they protect users, and whether they learn enough to stop the same kind of bug from escaping again. This lesson covers both, and the tester’s part in each.

Part Not started

When a bug escapes

An escaped bugEscaped bugA bug found after release, by users, support or monitoring, instead of during the team's testing.Open in glossary → is a bug found after release, by users, support, monitoring or anyone outside the team’s testing. A serious one becomes an incidentIncidentA problem in production serious enough that the team drops other work to deal with it.Open in glossary →: something the team has to drop other work for.

The first hours: users first

During an incident, the questions are practical. Analysis waits until users are safe.

  1. Reproduce it. Use the details from support, crash reportsCrash reporting toolA service built into an app that sends crash reports from users' devices to a dashboard, such as Firebase Crashlytics or Sentry.Open in glossary → and logs. Note the exact steps, versions and conditions.
  2. Find out who is affected. All users or some? Which platform, version, country, account type? “Only users who updated from 3.8” is a very different incident from “everyone”.
  3. Help contain it. Is there a kill switchKill switchA remote switch, usually a feature flag, that turns a broken feature off for everyone within minutes.Open in glossary →? Should the rolloutStaged rolloutReleasing a new app version to a growing share of users (for example 1%, 10%, 50%, 100%) instead of everyone at once.Open in glossary → be halted? Is there a workaround support can give users?
  4. Verify the fix on the exact build that will ship, plus a focused regression around it. See the hotfix routine in Release Testing.
  5. Keep notes with times: when it was noticed, what was tried, what worked. They become the timeline for the review later.

And one thing not to do: argue about whose fault it is while users are still affected. “QA missed it” and “the developer broke it” are both true for most escaped bugs, and neither helps anyone right now.

“How did QA not catch this?”

You’ll hear it. Don’t get defensive, and don’t take all the blame either. A calm answer works best: “Let’s fix it first. Afterwards, let’s look at how it got through. I’ll bring what we tested and what we didn’t.”

Remember that a bug reaching users means the whole team’s safety net had a hole: the requirement, the code review, the unit tests, the testing, the release checks and the monitoring. Testing is one layer, not the only one. Your job in the review is to look honestly at your layer, not to defend it or to carry the others.

Check this part

  1. A serious bug reaches users. What comes first?

  2. Why does it matter exactly which users are affected?

An escaped bug is one found after release; in the first hours, testers help reproduce it, find who is affected, contain the damage and verify the fix. Analysis comes later.

Part Not started

The two questions

Root cause analysis (RCA)Root cause analysis (RCA)Looking past the obvious answer to the conditions that made a problem possible, so it can be prevented.Open in glossary → (RCA) means looking past the obvious answer to the conditions that made a problem possible. For an escaped bug, it always asks two questions:

  1. Why did the bug happen? A missing case in the code, an unclear requirement, a risky change merged late.
  2. Why didn’t we catch it? Where in our process should it have been found, and why wasn’t it?

Teams often answer only the first. The developer fixes the code, and the hole in the safety net stays open for the next bug. The second question is where testers contribute most.

Why bugs get through testing

Most escapes fall into a handful of patterns:

PatternExample
Not in scopeUpgrade from older versions wasn’t part of the plan
Nobody thought of itGoing back from checkout to the cart and forward again
Test data or environment differs from productionStaging has 20 products; production has 8,000. Staging never times out
Device, OS or setting not coveredOnly on Android 11, only with a large font, only in Portuguese
Testing cut for timeThe area was planned but dropped when the build came late
A test existed but its result was ignoredA flaky testFlaky testA test that sometimes passes and sometimes fails without any change to the code.Open in glossary → (one that fails now and then for no real reason) failed for weeks, so nobody noticed when it failed for real
Changed after testingA “small” change went in after the release candidateRelease candidateA build believed ready to ship, pending final testing.Open in glossary → was tested
Only appears at scale or over timeMany users at once, after 30 days, at midnight, at the end of the month

Each pattern points to a different improvement. “Nobody thought of it” calls for better test ideas: reviews, checklists, error guessingError guessingChoosing tests based on experience of typical mistakes developers make.Open in glossary →. “Environment differs” calls for better data or tools. “Testing cut for time” calls for earlier warning and better risk planning. “Changed after testing” calls for a stricter code freezeCode freezeThe point after which no new features go into a release, only fixes, so the tested build is the one that ships.Open in glossary →. That’s why naming the pattern matters: it tells you what kind of fix the process needs.

Where it should have been caught

It helps to ask at which layer the bug could have been stopped, and how cheaply. Take the address bug from the start of the lesson. The 3.10 update expected data in the 3.9 format. For users who updated straight from 3.8, converting the saved data (the migrationData migrationCode that converts data saved by an older app version into the format a newer version expects.Open in glossary →) failed, and the app’s recovery code reset its local database, addresses included. Only the upgrade from 3.9 had been tested.

LayerCould it have caught the address bug?
RequirementsYes: “supported upgrade paths” was never written down
Code reviewPossibly: the recovery code that resets the database
Automated testsYes: a migration test from every supported version
Manual testingYes: an upgrade from 3.8
Staged rollout and monitoringPartly: a spike in “address missing” errors on day one

Usually several layers could have caught it. Improvements at the earlier, cheaper layers protect more.

Check this part

  1. Which two questions does every analysis of an escaped bug ask?

  2. The bug only happens with 8,000 products, but staging has 20. Which pattern is that?

Every analysis asks two questions: why did the bug happen, and why didn't we catch it. The second one has a typical set of answers testers should know.

Part Not started

The 5 whys

The simplest RCA technique is the 5 whys5 whysA technique that finds a root cause by asking "why?" again and again about each answer.Open in glossary →: state the problem, ask “why?”, and keep asking “why?” about each answer until you reach a cause you can change. Five is a guide, not a rule; sometimes three is enough, sometimes it takes seven.

Three rules keep it useful:

  • Answer with facts, from logs, code, tickets and data, not with guesses.
  • Never stop at a person. “The developer was careless” or “the tester missed it” ends the analysis without explaining anything. Ask instead: what made this mistake easy to make, and hard to notice?
  • Never stop at “human error” or “bad luck”. People will always make mistakes. The root cause is the condition that let a normal mistake reach users.

Try it

🔍 Ask why, five times

QuickBite 3.10: users who updated straight from 3.8 lost all saved addresses. Pick the answer that keeps the analysis going at each step.

  1. Why did it happen?

    Why #1: Why did users lose their saved addresses?

Step 1 of 5

When one chain isn’t enough

Real problems often have several causes at once, as in the address bug: the migration skipped a version, the recovery code threw user data away, and the upgrade tests covered only the previous version. If one “why” has two good answers, follow both.

Some teams draw a fishbone (Ishikawa) diagram for this: the problem at the head, and branches for categories such as people, process, tools, environment, requirements and data. Each branch collects the factors that contributed. It’s a good way to make sure the discussion doesn’t fixate on the first cause someone named.

Check this part

  1. The analysis reaches 'the developer forgot a case'. What next?

  2. Do you always need exactly five whys?

The 5 whys digs from symptom to root cause by asking why again and again; stop at a condition you can change, never at a person or 'human error'.

Part Not started

The blameless review

After a serious incident, the team writes a short review, often called a blameless postmortemBlameless postmortemA written incident review that looks for the conditions behind a problem, not for someone to blame.Open in glossary →.

Blameless doesn’t mean nobody is responsible. It means the team assumes people acted reasonably with what they knew at the time, and looks for the conditions that made the mistake possible. This matters for a very practical reason: people only tell the whole story when they aren’t afraid of being punished for it. Without the whole story, the analysis finds the wrong causes.

A simple format

SectionWhat goes in it
ImpactWho was affected, how many, for how long, and the cost
TimelineWhen it shipped, when it was noticed, contained and fixed. Times matter: the gap between “shipped” and “noticed” is a finding too
What happenedThe technical story, in plain words, without names
Why it happenedThe causes in the product and the code
Why it wasn’t caughtThe gaps in reviews, tests, release checks and monitoring
ActionsA few concrete improvements, each with an owner and a date

Write about what failed, not who. “The checkout change didn’t account for the coupon already applied on the cart screen” describes the problem. “Nikola forgot” describes a person, and the next person will forget too.

Writing without blame

Instead ofWrite
“Nikola forgot that the coupon is applied on the cart screen.”“The checkout change didn’t account for the coupon already applied on the cart screen. Nothing in the code or the tests made that dependency visible.”
“QA didn’t test going back to the cart.”“Our coupon test cases cover the forward path only. Back-and-forth navigation isn’t in the checkout checklist.”
“Root cause: human error.”“Root cause: discounts are calculated in two places with no shared rule or test.”

The tester’s part in the review

  • Bring facts: what was planned, what was tested, on which build and devices, and what wasn’t tested and why.
  • Own your layer honestly: “Our upgrade tests only covered the previous version. That’s a gap in our checklist, and I’ll fix it.”
  • Look for the class of bug, not just this one. If coupons broke on back navigation, what else breaks on back navigation?

Check this part

  1. What does 'blameless' mean in a blameless review?

  2. Why does the timeline matter in an incident review?

A blameless incident review looks for conditions, not culprits, and follows a simple format: impact, timeline, what happened, why it happened, why it wasn't caught, and actions.

Part ProNot started

Actions that actually prevent the next escape

A review is only worth what changes afterwards. Good actions:

  • Fix the class, not just the case. A test for “SUMMER10 applied twice” protects one coupon. A test for “any discount applied twice after back navigation”, or a single place where discounts are calculated, protects them all.
  • Change conditions, not intentions. “Be more careful” changes nothing measurable. A checklist item, an automated test, a review rule or a tool does.
  • Are few and owned. Three actions with an owner and a date beat twelve that nobody does. Check them in the next retroRetrospectiveThe meeting at the end of a sprint where the team decides how to work better next time.Open in glossary →.
  • Cover both questions: at least one action for why it happened and one for why it wasn’t caught.

Actions that change something

“Upgrade tests from the oldest supported and the two most-used old versions, taken from analytics, added to the release checklist. Owner: QA (Ana), by Friday.”

Actions that change nothing

“Testers will be more careful with upgrades.”

Measuring escapes, carefully

Many teams track escaped bugs per release, sometimes as a share of all bugs found (often called defect leakageDefect leakageThe share of bugs found after release compared with all bugs found in a period, a measure of how many escape testing.Open in glossary →). Used well, it shows whether the safety net is getting better: fewer serious escapes over time, and faster detection when they happen.

Used badly, it becomes a weapon. If testers are judged by escapes alone, they start testing defensively, logging every trivial issue and hiding gaps instead of reporting them. Track it for the team, look at severity, not just counts, and always read it together with what changed in the process.

Check this part

  1. Which action is most likely to prevent the next escape?

  2. Why should actions have an owner and a date?

Good actions fix the class of bug, improve tools and process, have an owner and a date, and are checked later; 'be more careful' is not an action.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Part ProNot started

Practice: review an incident review

QuickBite 3.10 had a second escape: coupons applied twice at checkout. Here’s the team’s first draft of the review. It has a good impact summary and timeline, but six things would stop the team from learning anything. Find them.

🐞 Bug hunt: Coupon incident review

This demo has 6 hidden bugs. Explore it like a tester, then check your findings.

Found0/6

Incident review · QuickBite 3.10.0

Coupons applied twice at checkout

Impact

From 14 to 16 October, 2,140 orders got the coupon discount twice. Cost: about €9,800.

Timeline

  • 14 Oct 10:00 · 3.10.0 released to 100%
  • 16 Oct 09:15 · Finance notices low revenue
  • 16 Oct 11:40 · Coupons switched off with a flag
  • 17 Oct 18:00 · Hotfix 3.10.1 released

What happened

Nikola changed the checkout code in 3.10 and forgot that the coupon is already applied on the cart screen. When a user went back from checkout to the cart and forward again, the discount was added a second time.

Root cause

Human error.

Actions

  • Nikola will be more careful with checkout changes.
  • Testers will be more careful when testing coupons.
  • Add a regression test: apply SUMMER10, go back to the cart, return to checkout, check the total.
  1. 1

    Hint: Read "What happened".

  2. 2

    Hint: Read the Root cause section.

  3. 3

    Hint: Which of the two questions is missing?

  4. 4

    Hint: Read the second action.

  5. 5

    Hint: Look at all three actions.

  6. 6

    Hint: Read the third action closely.

Check this part

  1. Which section is missing from the draft review?

  2. Why is a test for only SUMMER10 a weak action?

Review a real-looking incident review for an escaped coupon bug and find the six things that would stop the team from learning from it.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Checklist

Escaped bug checklist

0 of 11 checked

Key takeaways

  • Every team ships bugs. What matters is how fast users are protected and whether the same kind of bug can escape again.
  • In an incident, users first: reproduce, find who is affected, contain, verify the fix. Analysis later.
  • Root cause analysis asks two questions: why did it happen, and why didn’t we catch it.
  • The 5 whys digs from symptom to cause. Never stop at a person, “human error” or “bad luck”.
  • A blameless review looks for conditions, not culprits, so people share the whole story.
  • Good actions fix the class, change conditions, are few, and have an owner and a date.

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.