What is Defect Life Cycle or Bug Life Cycle?

What is Defect Life Cycle or Bug Life Cycle?

Defect life cycle is the series of states that a defect or bug traverses before being disposed or closed. Defect life cycle or Bug life cycle starts when the a defect is found in the software product and ends when defect is disposed or closed.

Before we actually go into the details of defect life cycle lets first try to understand what is a defect and when is the defect introduced in software.

What is a Defect Life Cycle or Bug Life Cycle
What is a Defect Life Cycle or Bug Life Cycle?

A defect or bug is flaw in any software system that can cause the software system to fail to perform what its actually supposed to perform. A defect gets introduced in software work product due to the mistake made by the person creating that work product.(Work product can be requirements, design document, test plan, test scripts, code etc.)

A defect can be introduced in any phase of SLDC(Software Development Life Cycle) so it is very important that test team is involved from beginning of SDLC for detecting and removal of defects. The earliest the defect is detected and rectified, the minimal cost of quality will incur.

For Example: If the defect is identified in requirements phase then the cost of fixing it is just modifying the requirement whereas if the wrong requirement is designed and implemented in the code and found during the test execution phase then the cost to fix that defect will be very high as the fix needs to be done in requirement and then those changes need to propagate to design, development and testing again.

In the figure shown below all the defect reports move through a series of clearly identified states before they are Closed/Disposed.Defect Life Cycle or Bug Life Cycle

  1. A defect is in open state when the tester finds any variation in the test results during testing, peer tester reviews the defect report and a defect is opened.
  2. Now the project team decides whether to fix the defect in that release or to postpone it for future release. If the defect is to be fixed, a developer is assigned the defect and defect moves to assigned state.
  3. If the defect is to be fixed in later releases it is moved to deferred state.
  4. Once the defect is assigned to the developer it is fixed by developer and moved to fixed state, after this an e-mail is generated by the defect tracking tool to the tester who reported the defect to verify the fix.
  5. The tester verifies the fix and closes the defect, after this defect moves to closed state.
  6. If the defect fix does not solve the issue reported by tester, tester re-opens the defect and defect moves to re-opened state. It is then approved for re-repair and again assigned to developer.
  7. If the project team defers the defect it is moved to deferred state, after this project team decides when to fix the defect. It is re-opened in other development cycles and moved to re-opened state.
  8. It is then assigned to developer to fix it.