Foundation Level study guide

Error vs Defect vs Failure

ISTQB explicitly separates the lifecycle of a bug into three distinct terms. An Error (Mistake) is a human action that produces an incorrect result. A Defect (Fault/Bug) is the physical manifestation of that error in the code. A Failure is the observable deviation of the software from its expected behavior during execution.

Practical example

Human Error: The developer was tired and typed a < instead of a <=. Defect (Bug): The source code now permanently contains the wrong mathematical operator. Failure: The user tries to buy exactly 10 items to get a discount, and the software crashes or denies the discount.

Exam scenario and common trap

Question: A piece of code contains a critical defect, but it is located in a dead-code branch that can never be reached by any user action. Will this defect cause a failure? The Trap: "Yes, critical defects always cause failures." The Correct Answer: No. A defect must be executed under specific conditions to cause a failure. If the defective code is never executed, it will never result in an observable failure.

Related syllabus sections cover this topic. Reference sections: 1.2.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.