
Root Cause Analysis (RCA)
π What is Root Cause Analysis (RCA)?
Root Cause Analysis is a problem-solving method used in software testing (and many other fields) to identify the main reason why a defect or issue occurredβinstead of just fixing the symptoms.
Think of it this way:
- Bug = Symptom
- Root Cause = Disease
If you only fix the bug, the problem may return. But if you remove the root cause, you prevent similar issues in the future.
βοΈ Common Techniques in RCA
- 5 Whys β Keep asking βWhy?β until you reach the real cause.
- Example: Login not working β Server error β Server overloaded β No load testing β Requirement gap.
- Fishbone Diagram (Ishikawa) β A Visual way to find causes under categories like People, Process, Tools, Environment.
- Pareto Analysis (80/20 rule) β 80% of defects often come from 20% of causes. Focus on the key ones.
β Example in Testing
Bug: User can log in without entering a password.
- Why? β No password validation in code.
- Why? β Developer skipped implementation.
- Why? β Requirement document didnβt mention it.
- Root Cause: Missing requirement in SRS.
π― Benefits of RCA in QA
- Prevents repetitive bugs.
- Improves software quality long-term.
- Saves time and cost on rework.
- Strengthens requirement analysis and processes.