In brief
Defect management is an agreed way of taking every bug from report to closure: who assesses it, who fixes it, who verifies the fix and who may defer it. At its core is regular triage, a short meeting where new defects get a severity, a priority, an owner and a decision. Severity describes the impact of the bug, priority the order of fixing, and the decision to defer a critical defect belongs to the business owner, not the tester.
The defect lifecycle
Every tool names the statuses a little differently, but the flow is similar. What matters is that each status has a clear entry condition and a person allowed to change it.
| Status | What it means | Who moves it on |
|---|---|---|
| New | reported, not yet assessed | the triage team |
| Rejected | not a bug: behavior matches the requirement, or the test is wrong | the triage team, with a reason |
| Duplicate | the same bug is already reported | the triage team, with a link to the first report |
| Cannot reproduce | nobody but the reporter can repeat it | a developer, after trying to reproduce it |
| Assigned | has an owner and a priority | the developer after the fix |
| Fixed | the fix is in a build that will reach the test environment | the tester once the build is deployed |
| Ready for retest | waiting to be checked in that build | the tester |
| Closed | the fix confirmed by a test | nobody, unless the bug returns |
| Reopened | the fix does not work or the bug came back | the triage team |
| Deferred | consciously left for later | the business owner |
Two rules prevent most arguments. The tester closes a defect after the retest, not the developer after the commit. Deferring a high-severity defect needs sign-off from the person responsible for the business risk, because they carry the consequences.
Severity versus priority
Severity says how serious the impact of the bug is for users and the company. Priority says in what order to fix things. They usually go together, but not always.
| Severity | Example | Typical priority |
|---|---|---|
| critical | a transfer posts twice, the system rejects payments | fix immediately, blocks the release |
| high | a report omits some transactions, an important feature fails with no workaround | before the release |
| medium | a feature works with a workaround, a wrong validation message | in the next release |
| low | a typo, a misaligned element on screen | when there is time |
A gap between severity and priority is normal. A typo in the bank's name on the login page has low severity but high priority, because every customer sees it. A bug in an annual report that runs once a year has high severity, but its priority depends on how much time is left before the deadline. Severity is usually set by the reporter with the lead tester, and priority by the product owner or release manager.
Triage: who, how often and which decisions
Triage is a short meeting that goes through new and reopened defects. In a project during intensive testing it happens daily, in calmer periods twice a week. It involves the lead tester, a developer representative (ideally the tech lead), and the product owner or business analyst. When a vendor is involved in the integration, someone from their side joins too.
Each defect gets one decision:
- Fix now: the defect blocks testing or the release, and gets an owner and a deadline.
- Fix in the next release: it goes into the backlog with a priority.
- Defer with risk acceptance: you record who accepted the risk and until when.
- Reject or mark as duplicate: with a reason visible to the reporter.
- Clarify: the report is incomplete and goes back to its author with a specific question.
One defect should take no more than two or three minutes. When a longer analysis is needed, it gets an analysis owner and returns at the next meeting. Fast triage depends on the quality of reports: steps, data, expected and actual result, as described in How to write a bug report.
Root cause analysis: where defects come from
A closed defect is half the job. The other half is asking why it arose and why it was not caught earlier. A simple classification of causes at closure is enough:
- requirement: missing, contradictory or misread,
- code: a logic, exception handling or integration error,
- configuration and data: an environment parameter, a dictionary, reference data,
- environment: a component version, a certificate, access,
- test: a wrong test case, a wrong expected value.
After a few weeks, the classification shows a pattern. If a third of the defects originate in requirements, more testing at the end will not help. What helps is reviewing requirements with a tester before coding starts, as discussed in Shift-left and shift-right.
Defect metrics that mean something
The number of reported defects says little on its own: it can grow because testing got better or because the code got worse. Metrics that lead to a decision work better:
| Metric | What it shows |
|---|---|
| open defects by severity, over time | whether you are approaching release readiness |
| age of open defects | whether something is stuck between teams |
| share of rejected reports | report quality and understanding of requirements |
| share of reopened defects | quality of fixes and retesting |
| defect detection effectiveness (DDE) | what share of all defects was found before production |
Detection effectiveness is calculated as defects found in testing divided by the sum of defects from testing and from production within an agreed period after release. Quality measures are covered in more depth in Software quality metrics. The state of defects is also one of the main inputs to the release decision, described in Test entry and exit criteria.
In programs with several vendors, a shared defect process is often the first thing to put in order, as in the case study on test management during a claims system replacement. In test automation work, B2Bnetwork engineers also agree who responds to a red result, so that failures from automated runs enter the same lifecycle as manual reports.
Questions and answers
Who sets a defect's priority?
The product owner or release manager, because they decide the order of work and answer for the deadline. The tester proposes the severity and supplies the facts: impact, scope, workaround. The developer estimates the cost of the fix. The decision is made at triage so everyone hears the same reasoning.
What should you do with defects that cannot be reproduced?
Do not close them right away. Collect logs from the time it occurred, the session or transaction ID and the environment details. If the bug comes back, even rarely, it often points to a concurrency or data problem. If it does not recur within an agreed time, close it with a note and reopen it the next time it appears.
Should the vendor and the client use one defect tool?
Ideally yes, or at least with automatic status synchronization. Two tools without synchronization means two lists that drift apart and arguments about which defect is fixed. A shared tool gives one change history, which helps at acceptance and during audits.
What should you do with hundreds of old, deferred defects?
Review them once, over a few sessions. Close defects in features that no longer exist. Reassess the ones that still occur against today's risk. The rest are usually trivia that can be closed with a "won't fix" decision. A list nobody reads hides important defects among irrelevant ones.