Error, defect and failure

The cause-effect chain: human error, defect in the system and observable failure.

The cause-effect chain

A person makes an error (mistake), which introduces a defect (bug) into the software. When that defect is executed, it can produce a failure: an observable behavior different from the expected one. Distinguishing these three terms is one of the fundamentals of the QA vocabulary.

Error → Defect → Failure
TermWhat it isExample
Error (mistake)Incorrect human actionThe programmer writes '+' instead of '-'
Defect (bug)Imperfection in the artifactThe calculation code is incorrect
FailureIncorrect observable behaviorThe invoice shows a wrong total

Not every defect produces a failure: a defect only causes a failure if the faulty code runs under the right conditions. That is why 'not having seen a failure' does not mean 'there are no defects'.

QuestionTap to flip

The user sees a wrong total on screen. Is it an error, defect or failure?

The incorrect code that lives inside the system is called…

Want to save your progress?

Create a free account to save your progress, earn points and badges, and unlock the ISTQB and Automation campuses.

Create free account
Next Lesson