Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Manual Testing  ›  Capstone Project

Root Cause Analysis

RCA 15 minRoot cause analysis traces a defect back past its symptom to the underlying cause in the process, so a fix can stop the whole class of defect from happening again.

Root Cause Analysis

Some Basketly customers were charged twice for the same order. A developer quickly disables the Pay button after the first press, and the tickets stop. Problem solved? Only the symptom. Next month the same kind of bug appears in "Book slot", because nothing about how the team works has changed.

The rule

Fix the symptom today; fix the cause so it never returns.

Root cause analysis (RCA) traces a defect back past what you saw (the symptom) to why it could happen at all (the root cause). The goal is a fix that prevents the whole class of defect, not just this instance.

Two simple tools:

  • The five whys: ask "why?" about the problem, then about each answer, roughly five times, until you reach something in the process or system you can change. Five is a guide, not a rule.
  • The fishbone (cause-and-effect) diagram: write the problem at the head, then brainstorm causes along bones such as people, process, tools, environment, requirements. It helps when many causes could be involved.

RCA must be blameless. "Ravi forgot" is never a root cause; people forget, so the real question is why the process let one person's slip reach customers. Blame makes people hide mistakes, and hidden mistakes cannot be analysed.

A good RCA ends with actions: one that fixes this defect, and one that changes the process.

The shortcut

Keep asking why until the answer is something you can change in the process, not a person. Stop too early and you get a patch; blame a person and you get silence.

Five whys on the double chargeStep 1 of 5
  1. Why charged twice?

    Two payment requests reached the gateway for one order.

The trap is stopping at "the button was not disabled". That fix helps one screen; the process fix protects every screen built after it.

Drills

Answer fast — trust the rule.

quick drill

What is the goal of root cause analysis?

quick drill

A five-whys chain ends with "because Priya made a mistake". What is wrong?

quick drill

Which is a process-level fix for the double charge?

quick drill

When is a fishbone diagram especially useful?

Remember

  • Fix the symptom today; fix the cause so it never returns.
  • Ask why until the answer is a process you can change, not a person.
  • End every RCA with a code action and a process action.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainFive whys on a double charge

Some Basketly customers were charged twice when they pressed Pay twice on a slow network. Run a five-whys analysis, name the root cause, and propose one fix for the code and one fix for the process.