Skip to content
← All CTFL glossary terms

Defect

An imperfection or flaw in a work product that can cause it to fail to meet its requirements; also called fault or bug.

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

Defect in a practice question

Question 1

Which of the following is a typical objective of testing?

  1. Improving the development processes so that fewer defects are introduced
  2. Causing failures and finding defects
  3. Analysing the causes of a failure and eliminating them
  4. Proving that the test object contains no remaining defects
Show answer
  • Improving the development processes so that fewer defects are introducedImproving processes preventively is quality assurance, not a test objective.
  • Correct answer: Causing failures and finding defectsCausing failures and finding defects is a named typical test objective.
  • Analysing the causes of a failure and eliminating themFinding, analysing and eliminating a failure's causes is debugging, a non-testing activity.
  • Proving that the test object contains no remaining defectsTesting shows the presence, not the absence, of defects; it cannot prove correctness.

Causing failures and finding defects is named among the typical test objectives. Improving processes so that fewer defects arise is the preventive, process-oriented approach of quality assurance; analysing the causes of a failure and eliminating them is debugging, which the syllabus calls a non-testing activity; and the first testing principle states that testing cannot prove the absence of defects.

Syllabus section 1.1.1

Question 2

A tester executes a test that fails. A developer then reproduces the problem, locates the faulty code, and fixes it. Which statement correctly describes these activities?

  1. Both the tester's and the developer's activities are testing
  2. The tester performed debugging and the developer performed confirmation testing
  3. The tester performed testing; reproducing, locating and fixing the defect is debugging
  4. Both activities are debugging because a defect was involved
Show answer
  • Both the tester's and the developer's activities are testingThe developer's reproduce-locate-fix work is debugging, so the two activities are not both testing.
  • The tester performed debugging and the developer performed confirmation testingThe roles are reversed: executing a failing test is testing, and fixing the cause is debugging.
  • Correct answer: The tester performed testing; reproducing, locating and fixing the defect is debuggingExecuting tests to trigger failures is testing; reproducing, locating and fixing the cause is debugging.
  • Both activities are debugging because a defect was involvedExecuting the test that revealed the failure is testing, not debugging.

Testing triggers failures and identifies defects, while debugging is the development activity of reproducing a failure, finding its cause, and fixing it. After the fix, confirmation testing checks whether the fix resolved the problem.

Syllabus section 1.1.2

Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.