Defect management
Defect management is the process of recording, classifying, prioritising, fixing and retesting faults found in software during testing or in live use. Each defect carries a severity, which measures its impact, and a priority, which sets the order of repair.
What it is
Defect management is the process that takes a fault in software from the moment someone finds it to the moment it is fixed, retested and closed. A defect is a place where the system behaves differently from what the requirements, the design or the user reasonably expect. The process keeps one record per defect so that nothing found in testing is lost or fixed twice.
The ISTQB (International Software Testing Qualifications Board) lists defect management as a topic of its Foundation Level syllabus, including how to write a clear defect report. Its Test Management syllabus describes defect management tools as the place where severity and priority are tracked.
A defect record follows a life cycle and carries a few standard fields:
- A short title and a description with the steps needed to reproduce the fault.
- The environment and the build in which it appeared.
- Severity: the size of the impact on the system, the business or the user.
- Priority: how soon the fix is wanted, set by the project owner and the delivery team.
- Status: for example open, assigned, fixed, retested, closed or rejected.
Severity and priority are separate. A cosmetic fault on the main screen can have low severity and high priority. A serious fault in a function nobody uses before the next release can have high severity and low priority.
Why it matters
Testing produces a stream of findings from several test teams. Without one shared record, the same fault is reported twice, a fix is lost between teams, or a serious fault is closed without retesting. The record also gives the evidence for the release decision: how many defects are open, how serious they are and how fast they are being closed.
Worked example
Illustrative numbers. A payments project finishes a test cycle with 40 logged defects. Of these, 2 have the highest severity, 8 are major, 20 are minor and 10 are cosmetic.
The project agrees a rule before testing: no open defect of the highest severity and no more than 3 open major defects at go-live. Developers fix both severe defects and 6 major ones. Testers rerun the failed tests and confirm both severe fixes and 5 of the 6 major fixes. One fix fails retest and returns to the developers.
Open at the end of the cycle: 3 major defects (2 unfixed plus 1 reopened). The rule is met exactly, so the decision rests on the risk of the remaining items and on the regression results.
How to read it
A count of open defects by severity says more than a total. A falling number of defects found per test cycle suggests testing is converging. A rising number of reopened defects points to poor fixes or weak retesting.
Who uses it
- Business analysts confirm whether a reported behaviour is a defect, a missing requirement or a change request.
- Project managers track open defects by severity against the exit criteria for each test phase.
- Project office analysts report defect trends to the steering group.
- Product owners set the priority of each defect and decide which ones can wait.
- Testers log defects, retest fixes and close them.
Common confusions
- Severity and priority are treated as one field. Severity describes impact; priority describes the order of repair.
- A defect is mistaken for a change request. A defect is a departure from agreed behaviour; a request to behave differently is a change.
- Closing a defect when the developer marks it fixed. The record closes only after a retest passes.
- Fixing a defect is assumed to be safe. A fix can break other functions, which is why regression testing follows.