Bug Life Cycle in Software Testing With Example
On this page
- In short
- What is the bug life cycle?
- Bug life cycle stages
- One bug from New to Closed: an OTP example
- Why every site shows a different number of stages
- Bug life cycle in Jira
- Hands-on: check a bug's history with Python
- Common mistakes
- What the official docs say
- Bug life cycle interview questions
- FAQ
- Your next step
- Sources
PassPython 3.13.18, December 2026. The checker script in the hands-on section was run and its real output is shown.
The bug life cycle is the path a defect report travels from the moment a tester logs it until someone closes it. On the way it picks up statuses such as New, Assigned, Open, Fixed, Retest, Reopened and Closed, and each status tells the team who owns the next move. Below we follow one OTP bug through every status, compare how Jira and Bugzilla handle the same idea, and run a short Python script that catches illegal status jumps.
In short
- Bug life cycle and defect life cycle mean the same thing: the statuses a defect report moves through, plus the moves allowed between them.
- The usual happy path is New, Assigned, Open, Fixed, Pending Retest, Retest, Verified, Closed.
- Rejected, Duplicate and Deferred are normal side exits. Reopened sends a bug back when the fix fails retest.
- Your tracker’s workflow settings decide the real statuses, so learn your team’s version instead of a memorised list.
What is the bug life cycle?
Start with the word itself. The ISTQB glossary describes a defect as a flaw in a work product that makes it miss its requirements or get in the way of what it is meant to do, and it lists bug, fault and flaw as synonyms. So if an interviewer says defect life cycle and your team says bug life cycle, you are both talking about the same thing.
Here is the part many tutorials skip. The life cycle is not really about the mistake sitting in the code. It is about the ticket that describes it. ISTQB calls that ticket a defect report, a record of where the defect showed up, what it is and what status it is in. There is even a glossary entry for the map of those statuses: the defect workflow, a state transition model of the life cycle that also says who is responsible at each step.
Keep that word “responsible” in mind. A status is a short answer to one question: whose turn is it now? If you want the other testing terms used in this guide in one place, our testing glossary has them.
Bug life cycle stages
Most teams start from something close to the table below. Read the second column carefully, because mixing up who owns a status causes more friction than any missing status does.
| Status | Usually set by | What it means | Common next status |
|---|---|---|---|
| New | Tester | Bug logged with steps, actual and expected result, build number and evidence | Assigned, Rejected, Duplicate, Deferred |
| Assigned | Test lead, dev lead or a triage meeting | Someone has read the report and given it an owner | Open |
| Open | Developer | The developer is reproducing it and working on a fix | Fixed, Rejected, Deferred |
| Fixed | Developer | Code has changed, but nobody has proved it on a test build yet | Pending Retest |
| Pending Retest | Developer or whoever deploys builds | The fix is waiting to reach the QA environment | Retest |
| Retest | Tester | The tester is repeating the original steps on the new build | Verified, Reopened |
| Reopened | Tester | The fix did not work, so the bug goes back | Assigned |
| Verified | Tester | Retest passed | Closed |
| Closed | Tester or lead | Nothing more to do on this ticket | None in most teams |
The side exits: Rejected, Duplicate and Deferred
Not every bug gets fixed, and a healthy tracker shows that honestly. Rejected means the developer or the triage group decided the report is not a defect. The app may be doing exactly what the requirement says, or nobody can reproduce the problem. Duplicate means the same problem already has a ticket, so you link the two and close the copy.
Deferred is the one freshers find confusing. The bug is real, but the fix moves to a later release, usually because the impact is small and the release date is close. Think of a spelling mistake on the “About us” screen of a banking app two days before launch. Nobody is pretending it is fine. It just waits.
Some tools split this into two fields. Bugzilla keeps Status and Resolution separately, so a ticket can sit in a resolved status with a resolution such as DUPLICATE or FIXED. Other teams add Not a Bug, Cannot Reproduce or Won’t Fix as statuses of their own.
One bug from New to Closed: an OTP example
Here is a made-up but very ordinary example. A food-delivery app sends a six-digit OTP at login. The tester taps Resend OTP, gets a fresh SMS, types the new code, and the app says “Invalid OTP”. The older code still logs in. We will call the ticket TP-101.
- New: the tester logs the phone model, app build, exact steps, a screen recording and the time each SMS arrived. A good bug report template saves a lot of back and forth here.
- Assigned: at the morning triage the lead agrees it blocks anyone who needed a resend, and gives it to the backend developer.
- Open: the developer reproduces it on staging and starts looking at how resend stores codes.
- Fixed, then Pending Retest: a fix is merged and the ticket waits for the next build to reach the QA environment.
- Retest, then Reopened: on the new build the new OTP works, but the old one still logs in too. Half fixed is not fixed, so the tester reopens it and writes exactly which check still fails.
- Assigned, Open, Fixed, Pending Retest, Retest again: this time both checks pass. The new code is accepted and the old code is refused.
- Verified, then Closed.
That is thirteen status changes for one small bug. Nothing about it is unusual, and the Reopened loop is precisely the part interviewers like to poke at.

Why every site shows a different number of stages
Search this topic and you will see six stages on one page, nine on another, eleven on a third. None of them is the official count, because there isn’t one. Bug trackers let an admin build the workflow. The Bugzilla admin guide describes a grid of statuses where each status appears once as a starting point and once as a target, and a checkbox decides whether that move is legal. Jira follows the same idea: a workflow is a set of statuses plus transitions, and a ticket can only move between two statuses if a transition exists.
Our honest take: for interviews, learn the eight-status happy path and the side exits, and say clearly that companies customise it. On the job, forget the textbook and open your project’s workflow screen in week one.
There is a real trade-off here. A long workflow with Pending Retest and Verified makes every handover visible, but it adds clicks, and busy people start skipping statuses. A short one like To Do, In Progress, Done is quick to use, yet it hides whether anyone ever retested the fix. Neither is wrong. Pick the one your team will actually follow.
Bug life cycle in Jira
A lot of Indian teams track bugs in Jira, so this question comes up often. According to Atlassian’s workflow documentation, Jira ships with built-in workflows that you cannot edit, though an admin can copy one and change the copy. Transitions are one-way. If a bug should be able to go from Retest back to In Progress and forward again, the admin has to create two separate transitions, one in each direction.
Because of this, classic statuses often get squeezed into fewer Jira statuses. The mapping below is only an example of what a team might set up, not a Jira default:
| Classic status | Possible Jira status |
|---|---|
| New | To Do |
| Assigned | To Do, with an assignee set |
| Open | In Progress |
| Fixed, Pending Retest | Ready for QA (custom status) |
| Retest | In QA (custom status) |
| Reopened | Reopened (custom) or straight back to In Progress |
| Verified, Closed | Done |
Hands-on: check a bug’s history with Python
You don’t need a tracker to understand transitions. The script below stores the allowed moves in a dictionary, then replays the status history of two bugs and flags anything the workflow does not allow. It uses only the Python standard library. Save it as bug_lifecycle.py and run python3 bug_lifecycle.py.
"""A tiny bug life cycle checker.
It stores which status changes are allowed, then replays the
history of one bug and flags any move the workflow does not allow.
"""
ALLOWED = {
"New": {"Assigned", "Rejected", "Duplicate", "Deferred"},
"Assigned": {"Open"},
"Open": {"Fixed", "Rejected", "Deferred"},
"Fixed": {"Pending Retest"},
"Pending Retest": {"Retest"},
"Retest": {"Verified", "Reopened"},
"Reopened": {"Assigned"},
"Verified": {"Closed"},
"Deferred": {"Assigned"},
"Rejected": {"Closed"},
"Duplicate": {"Closed"},
"Closed": set(),
}
def check_history(bug_id, history):
print(f"Bug {bug_id}")
problems = 0
for current, nxt in zip(history, history[1:]):
ok = nxt in ALLOWED[current]
mark = "ok " if ok else "BLOCKED"
print(f" {mark} {current} -> {nxt}")
if not ok:
problems += 1
print(f" result: {problems} illegal move(s)\n")
return problems
# Bug 1: OTP screen keeps the old OTP after "Resend". Fix failed once.
check_history("TP-101", [
"New", "Assigned", "Open", "Fixed", "Pending Retest",
"Retest", "Reopened", "Assigned", "Open", "Fixed",
"Pending Retest", "Retest", "Verified", "Closed",
])
# Bug 2: someone closed it straight after the developer marked it Fixed.
check_history("TP-102", [
"New", "Assigned", "Open", "Fixed", "Closed",
])
Real output from the run:
Bug TP-101
ok New -> Assigned
ok Assigned -> Open
ok Open -> Fixed
ok Fixed -> Pending Retest
ok Pending Retest -> Retest
ok Retest -> Reopened
ok Reopened -> Assigned
ok Assigned -> Open
ok Open -> Fixed
ok Fixed -> Pending Retest
ok Pending Retest -> Retest
ok Retest -> Verified
ok Verified -> Closed
result: 0 illegal move(s)
Bug TP-102
ok New -> Assigned
ok Assigned -> Open
ok Open -> Fixed
BLOCKED Fixed -> Closed
result: 1 illegal move(s)
Look at TP-102. The developer marked it Fixed and someone closed it straight away, skipping retest. That shortcut is how “fixed” bugs reach production. A tracker with a proper workflow would not even show a Close button on a Fixed ticket. Try adding "Closed" to the set under "Fixed" and run it again. The warning disappears, which is exactly what a loose workflow quietly does to a team.
Common mistakes
- Reopening for a different problem. If the original bug is fixed but you spot something new on the same screen, log a new bug and link it. Reopening mixes two histories and wrecks your metrics.
- Closing on the developer’s word. Fixed means the code changed. Verified means you saw it work on a real build. Only the second one earns a Close.
- Fighting in comments. Long arguments about whether something is a bug belong in triage. Use Rejected or Deferred with a one-line reason and move on.
- A weak report at the New stage. Missing build numbers or vague steps make a bug bounce between Open and Rejected. If you want practice on tricky flows, our UPI payment test cases give you plenty to write up.
- Skipping the duplicate search. Two minutes searching the tracker saves a developer from fixing the same thing twice.
- Treating Deferred as a dustbin. Deferred bugs should be looked at again when the next release is planned, or they pile up for years.
What the official docs say
- ISTQB treats defect management as a whole process, not just a ticket: noticing the defect, recording it, classifying it, investigating it, getting it fixed and deciding how it ends.
- Bugzilla lets admins rename and remove most statuses and resolutions, with exceptions. Per its workflow guide, UNCONFIRMED can never be renamed or deleted but can be turned off per product, the FIXED and DUPLICATE resolutions are protected, and admins can make a comment mandatory on chosen transitions.
- Jira describes a workflow as statuses and transitions, notes that transitions only go one way, and keeps its built-in workflows read-only so you edit a copy instead (Atlassian docs).
Bug life cycle interview questions
1. How is the bug life cycle different from STLC? STLC covers the testing work for a whole release, from requirement analysis to closure. The bug life cycle covers one defect report. Bugs are raised mostly during test execution, which is one phase of STLC. Our STLC guide walks through those phases.
2. When would you mark a bug Deferred instead of Rejected? Deferred when it is a genuine defect but the team agrees to fix it later. Rejected when it is not a defect at all, for example the behaviour matches the requirement.
3. You retest a fix and the original issue is gone, but a new issue appears. What do you do? Verify and close the original bug, then raise a new one and link it. Reopen only when the original problem is still there.
4. Who closes a bug in your team? Answer from your own project. In many teams the tester who verified the fix closes it, but some leads keep that permission for themselves. Saying “it depends on our workflow, and here is ours” sounds far better than a memorised line. More practice questions are on our interview prep page.
FAQ
What is the bug life cycle in simple words?
It is the journey of a bug report from the moment a tester logs it to the moment it is closed. Each stop on the way is a status, such as New, Open, Fixed or Retest, and each status shows who has to act next. Teams set their own list of statuses inside their bug tracker.
Is the bug life cycle the same as the defect life cycle?
Yes. The ISTQB glossary lists bug as a synonym of defect, so both names describe the same sequence of statuses. Some companies say defect life cycle in documents and bug life cycle in daily talk. In an interview you can use either, as long as you explain the statuses and transitions clearly.
What is the difference between Fixed and Closed?
Fixed is set by the developer once the code is changed. It only means a fix exists. Closed comes after a tester has repeated the original steps on a new build and confirmed the problem is gone. A bug can be Fixed for days while it waits for deployment and retest.
What does Deferred mean in the bug life cycle?
Deferred means the team accepts the bug is real but has decided to fix it in a later release. It is common for low-impact issues found close to a release date. A deferred bug is not rejected, so it should be reviewed again when the next release is being planned.
How many stages are there in the bug life cycle?
There is no fixed number. Many tutorials show eight main statuses: New, Assigned, Open, Fixed, Pending Retest, Retest, Verified and Closed, plus Reopened, Rejected, Duplicate and Deferred. Real projects add, merge or rename statuses in their tracker, so always check your own team’s workflow.
Your next step
Open the bug tracker on your current project, or a free Jira site if you don’t have one, and look at the workflow for the Bug work type. Put it next to the table in this guide and note which statuses your team merged, renamed or added. Then practise the most important status of all, New, by writing two or three reports with our bug report template. More beginner topics live in our manual testing section.
Sources
- ISTQB Glossary – defect (checked December 2026)
- ISTQB Glossary – defect report (checked December 2026)
- ISTQB Glossary – defect workflow (checked December 2026)
- ISTQB Glossary – defect management (checked December 2026)
- Bugzilla documentation – 4.8 Workflow
- Bugzilla documentation – 2.3 Understanding a Bug
- Atlassian Support – Understand workflows (Jira Cloud)
Tools and features change often. Check the official documentation for the version you are using.
Test yourself on this topic
- Step 1 of the roadmap
- Software testing basics
- Test case design
- Bug reporting and defect tracking
- Types of testing
- Foundation practice test
The same four API checks written in both Postman and Playwright, with real output, so you can see exactly what…
Related guides
- Manual Testing STLC in Software Testing: 6 Phases Explained With Example STLC in software testing explained with one OTP login feature taken through all six phases, entry and exit criteria, ISTQB mapping and…
- Manual Testing Black Box vs White Box Testing: Differences with Examples Black box vs white box testing in plain words: one food-delivery coupon tested both ways, with real coverage output and the bug…
- Manual Testing UPI Payment Test Cases: How to Test a UPI Payment UPI payment test cases with examples: positive, negative, boundary and pending cases, sandbox test UPI IDs, and the RBI refund timelines to…