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
| Term | Meaning | Example |
|---|---|---|
| Error (mistake) | A human mistake | A developer writes > 6 instead of >= 8 |
| Defect / bug | The flaw in the software | The form accepts 6-character passwords |
| Failure | What users see when the defect runs | A 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
- Bug: often used to mean the same thing.
- Severity: how serious a defect's impact is.
- Priority (in bug tracking): how soon a defect should be fixed.
- Test Case: the check that usually finds a defect.
Previous term: Debugging | Next term: Deliverable
Related guides
- Software Development vs Testing
- Technical Interview Questions for Freshers
- How to Choose the Right IT Career Path
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