Bug/Defect Lifecycle
What is the Defect Lifecycle?
The defect (or bug) lifecycle describes the various states a defect passes through, from the moment it is first identified to the moment it is closed.
Typical States in a Defect Lifecycle
- New: The defect has just been logged by a tester.
- Assigned: The defect is assigned to a developer for investigation and fixing.
- Open/In Progress: The developer is actively working on fixing the defect.
- Fixed: The developer has made the code change and believes the defect is resolved.
- Retest: The tester re-executes the original test case to confirm the fix.
- Verified/Closed: The fix is confirmed and the defect is closed.
- Reopened: If the retest fails, the defect goes back to the developer.
- Rejected/Deferred/Duplicate: Alternative end-states if the defect is invalid, postponed, or already reported.
Why the Lifecycle Matters
A well-defined defect lifecycle ensures every reported issue is tracked, investigated, and resolved in a consistent, auditable manner, preventing defects from being lost or forgotten.
Following One Bug Through the Cycle
A worked example makes the states easier to remember. A tester notices that the "Forgot password" email is never sent for addresses containing a plus sign.
- New: the tester logs it with a clear title, steps, test data, expected and actual results, environment details and a screenshot of the server error.
- Triage: the lead reviews it, confirms it is reproducible, and sets severity and priority.
- Assigned: it goes to the developer who owns the email service.
- Open: the developer finds the address is rejected by an over-strict validation rule.
- Fixed: the rule is corrected and the fix is deployed to the test environment, with the build number noted.
- Retest: the tester repeats the steps on that build and also tries a normal address to make sure nothing else broke.
- Closed: the email arrives in both cases, so the tester closes it with a comment.
If the email still failed, the tester would move it to Reopened with fresh evidence, and the cycle would continue from Assigned.
Severity and Priority in Triage
Two fields decide how fast a defect moves through the lifecycle.
| Severity | Priority | |
|---|---|---|
| Meaning | How badly the defect affects the system | How soon it should be fixed |
| Usually set by | Tester | Product owner or lead |
| Example | App crashes on a rarely used admin report: high severity | Company logo misspelled on the home page: high priority, low severity |
Workflow Rules That Keep It Clean
Tools such as Jira, Azure DevOps or Bugzilla let teams configure allowed transitions. A few rules are common:
- Only the tester or reporter can move a defect to Closed after verification.
- A Rejected status requires a reason, such as "works as designed" with a link to the requirement.
- Duplicate defects are linked to the original so history is not lost.
- Deferred defects carry a target release so they are not forgotten.
- Status changes are reviewed in a regular triage meeting.
Mistakes That Slow the Cycle
- Vague titles like "Login not working" with no steps; developers bounce them back as "Cannot reproduce".
- Closing a defect without retesting on the build that contains the fix.
- Logging several unrelated problems in a single defect.
- Arguing in comments instead of discussing disputed defects in triage.
- Reopening a defect for a new, different problem; log a fresh defect and link it.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.