Defect: A flaw where the software doesn't meet its requirements. Many teams use defect and bug to mean the same thing; some use defect for issues formally logged during testing.

Example

The requirement says passwords must be at least eight characters, but the form accepts six. The tester logs a defect with steps, expected and actual results, and a screenshot.

Error, Defect, Failure

TermMeaningExample
Error (mistake)A human mistakeA developer writes > 6 instead of >= 8
Defect / bugThe flaw in the softwareThe form accepts 6-character passwords
FailureWhat users see when the defect runsA weak password is accepted at sign-up

This distinction is a common question in testing interviews.

Logging a Defect Well

  • A clear, specific title.
  • Steps to reproduce, expected result, and actual result.
  • Environment, build, and test data used.
  • Screenshots, logs, or a recording.
  • Severity and priority.

Defect Metrics

Teams track defects found per release, how many reach production (defect leakage), how quickly they are fixed, and how many are reopened. These help improve the process, not blame people.

Related terms

Previous term: Debugging  |  Next term: Deliverable

Related guides

Frequently asked questions

What is a defect in software testing?

A defect is a flaw where the software doesn't meet its requirements, usually found and logged during testing.

What is the difference between a bug and a defect?

Many teams use them interchangeably. Some use defect for issues formally logged against requirements.

What is the difference between error, defect, and failure?

An error is a human mistake, a defect is the resulting flaw in the software, and a failure is the wrong behaviour users see.

What is defect leakage?

Defects that escape testing and are found later, often in production.

Explore more internship terms

The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.

Browse all 199 terms
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.