Root cause
The earliest underlying source of a defect; removing it prevents similar defects from recurring.
Syllabus chapters: 1
Sources: ISTQB® Certified Tester Foundation Level syllabus 4.0.1 and the official ISTQB® Glossary. Glossary content © International Software Testing Qualifications Board; source: glossary.istqb.org.
Related terms
Root cause in a practice question
Question 1
A developer misunderstands a requirement and writes an incorrect calculation into the code. When a user later runs the application, it displays a wrong total. Which of the following maps these events correctly?
- The misunderstanding is the failure, the incorrect code is the error, the wrong total is the defect
- The misunderstanding is the error, the incorrect code is the defect, the wrong total is the failure
- The misunderstanding is the root cause, the incorrect code is the failure, the wrong total is the defect
- The misunderstanding is the defect, the incorrect code is the error, the wrong total is the failure
Show answer
- The misunderstanding is the failure, the incorrect code is the error, the wrong total is the defectA human mistake is the error, not a failure; the runtime wrong total is the failure.
- Correct answer: The misunderstanding is the error, the incorrect code is the defect, the wrong total is the failureThe human mistake is the error, the flawed code is the defect, the wrong total is the failure.
- The misunderstanding is the root cause, the incorrect code is the failure, the wrong total is the defectThe flawed code is a defect, not a failure; the failure is the wrong total observed at runtime.
- The misunderstanding is the defect, the incorrect code is the error, the wrong total is the failureThe human mistake is the error, not a defect; the defect is the resulting flaw in the code.
An error (mistake) is a human action that produces an incorrect result — here the misunderstanding. The defect (fault, bug) is the resulting flaw in the work product — the incorrect code. A failure is the deviation observed at runtime — the wrong total displayed to the user.
Syllabus section 1.2.3
Question 2
Under heavy end-of-sprint time pressure, a developer misreads the rounding rule in the requirements and writes code that rounds discounts down instead of up. Weeks later a customer receives an invoice on which the discount is one cent too low. Which assignment of this chain is correct?
- Root cause: misreading the rule; error: the time pressure; defect: the invoice; failure: the rounding code
- Root cause: the rounding code; error: the invoice; defect: misreading the rule; failure: the time pressure
- Root cause: the time pressure; error: misreading the rule; defect: the rounding code; failure: the invoice
- Root cause: the time pressure; error: the rounding code; defect: misreading the rule; failure: the invoice
Show answer
- Root cause: misreading the rule; error: the time pressure; defect: the invoice; failure: the rounding codeThis swaps the fundamental situation with the human mistake, and the flaw in the code with the observed symptom.
- Root cause: the rounding code; error: the invoice; defect: misreading the rule; failure: the time pressureThis inverts the whole chain, treating the flaw in the code as the fundamental reason for the problem.
- Correct answer: Root cause: the time pressure; error: misreading the rule; defect: the rounding code; failure: the invoiceThe time pressure is the fundamental reason, misreading is the mistake, the code holds the defect, and the invoice is the failure.
- Root cause: the time pressure; error: the rounding code; defect: misreading the rule; failure: the invoiceRoot cause and failure are right, but the human mistake is the error and the flaw it left in the code is the defect.
A root cause is a fundamental reason for the occurrence of a problem, such as a situation that leads to an error — here the time pressure. Human beings make errors (mistakes), which produce defects, which in turn may result in failures: misreading the rule is the error, the code that rounds the wrong way is the defect, and the invoice showing the wrong discount is the failure produced when that defect is executed.
Syllabus section 1.2.3
Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.