Defect Lifecycle · All Levels

Defect Management

From the moment you find a bug to the moment it’s confirmed fixed — defect management is the process that keeps bugs tracked, prioritised, and resolved systematically.

Junior Senior Test Lead ISTQB CTFL v4.0 — Ch. 5

The defect lifecycle

Standard defect lifecycle states
StateWho owns itWhat happens
NewTesterBug reported, not yet reviewed
AssignedLead / ManagerTriaged, assigned to developer
Open / In ProgressDeveloperBeing investigated and fixed
FixedDeveloperCode change made, ready for retest
RetestTesterVerify the fix works
ClosedTesterVerified fixed in all affected environments
RejectedDeveloper / LeadNot a bug — by design, duplicate, or not reproducible
DeferredLead / PMWon’t fix this release, scheduled for later

Writing good bug reports

A good bug report lets a developer reproduce the issue without asking you anything. It contains:

  • Title — one sentence: what breaks, where, and under what condition. Not "Login broken" — "Login fails with HTTP 500 when password contains special characters".
  • Steps to reproduce — numbered, specific, reproducible steps from a known starting state.
  • Expected result — what should happen.
  • Actual result — what actually happens. Include error messages verbatim.
  • Environment — browser, OS, version, test environment.
  • Severity and priority — (see below).
  • Evidence — screenshot, video, log snippet.

Severity vs priority

These are different dimensions. Both must be set, and they often conflict.

Severity vs priority matrix
SeverityDefinitionExample
CriticalSystem crash, data loss, security breachPayment processed but order not created
HighMajor function broken, no workaroundUsers can’t submit the main form
MediumFunction broken, workaround existsExport to CSV fails but PDF works
LowMinor issue, cosmetic, or rarely hitTooltip text has a typo

Priority is a business decision: how urgently does this need to be fixed, relative to everything else? A low-severity cosmetic bug on the homepage might be high priority if a CEO demo is tomorrow. A high-severity crash in a rarely used report might be deferred.

Testers set severity; product/business sets priority. This distinction matters — don’t conflate them.

Root cause analysis

For high-severity or recurring defects, root cause analysis (RCA) asks not just "what broke" but "why." Common RCA techniques: 5 Whys, fishbone diagram, fault tree analysis. The goal: prevent the same class of bug recurring. RCA findings feed into process improvements and updated testing checklists.

Defect metrics

  • Defect density — defects per unit of code or per feature area. Identifies unstable modules.
  • Defect removal efficiency (DRE) — percentage of defects found before release vs total defects found (pre + post release). Target: > 90%.
  • Mean time to detect (MTTD) — average time from defect introduction to detection.
  • Defect escape rate — how many defects reach production. The key quality signal for leads.

ISTQB mapping

ISTQB reference
RefTopicLevel
CTFL Ch. 5Defect management — defect reports, lifecycle, workflowFoundation
CTAL-TA Ch. 6When defects can be detected, defect report fields, classificationAdvanced
CTAL-TM Ch. 4Defect management process, metrics, root cause analysisLead

Try It — Severity or priority?

Five bugs have been reported on a NZ banking portal. Assign the correct Severity (Critical/High/Medium/Low) and Priority (P1-Urgent/P2-High/P3-Medium/P4-Low) to each.

BugSeverityPriority
Payment is processed and money debited, but no confirmation email is sent and the transaction doesn’t appear in transaction history
Bank logo in the footer is pixelated — CEO demo to the board is tomorrow
Bulk payment CSV export fails — workaround is to export individual payments one by one
Session expires after 15 minutes with no warning — RBNZ security guidelines require 20-minute timeout with a warning
"Help" tooltip on the password field has a typo in a rarely visited screen