What is Defect/Bug Life Cycle in Software Testing? Defect Life Cycle Tutorial

Introduction to the Defect Life Cycle

In this tutorial, we will talk about the life cycle of a defect to make you aware of the various stages of a defect which a tester has to deal with while working in a testing environment.

We have also added the most frequently asked interview questions on Defect Life Cycle. It is important to know about the various states of a defect in order to understand the life cycle of a defect. The main intention of performing a testing activity is to check if the product has any issues/errors.

In terms of real scenarios, errors/mistakes/faults are all referred to as bugs/defects and hence we can say that the main objective of doing testing is to ensure that the product is less prone to defects (no defects is an unrealistic situation).

Now, the question arises as to what a defect is?

Defect Life Cycle Tutorial

What Is A Defect?

A Defect, in simple terms, is a flaw or an error in an application that is restricting the normal flow of an application by mismatching the expected behavior of an application with the actual one.

The defect occurs when any mistake is made by a developer during the designing or building of an application and when this flaw is found by a tester, it is termed as a defect.

It is the responsibility of a tester to do thorough testing of an application to find as many defects as possible to ensure that a quality product will reach the customer. It is important to understand the defect life cycle before moving to the workflow and different states of the defect.

Hence, let’s talk more about the Defect Life Cycle.

So far, we have discussed the meaning of defect and its relation in context to the testing activity. Now, let’s move to the defect life cycle and understand the workflow of a defect and the different states of a defect.

Defect Life Cycle in Detail

The Defect Life Cycle, also known as the Bug Life Cycle, is a cycle of defects from which it goes through covering the different states in its entire life. This starts as soon as any new defect is found by a tester and comes to an end when a tester closes that defect assuring that it won’t get reproduced again.

Defect Workflow

It is now time to understand the actual workflow of a Defect Life Cycle with the help of a simple diagram as shown below.

Defect Life cycle

Defect States

#1) New: This is the first state of a defect in the Defect Life Cycle. When any new defect is found, it falls in a ‘New’ state, and validations & testing are performed on this defect in the later stages of the Defect Life Cycle.

#2) Assigned: In this stage, a newly created defect is assigned to the development team to work on the defect. This is assigned by the project lead or the manager of the testing team to a developer.

#3) Open: Here, the developer starts the process of analyzing the defect and works on fixing it, if required.

If the developer feels that the defect is not appropriate then it may get transferred to any of the below four states namely Duplicate, Deferred, Rejected, or Not a Bug-based upon a specific reason. We will discuss these four states in a while.

#4) Fixed: When the developer finishes the task of fixing a defect by making the required changes then he can mark the status of the defect as “Fixed”.

#5) Pending Retest: After fixing the defect, the developer assigns the defect to the tester to retest the defect at their end, and until the tester works on retesting the defect, the state of the defect remains in “Pending Retest”.

#6) Retest: At this point, the tester starts the task of retesting the defect to verify if the defect is fixed accurately by the developer as per the requirements or not.

#7) Reopen: If any issue persists in the defect, then it will be assigned to the developer again for testing and the status of the defect gets changed to ‘Reopen’.

#8) Verified: If the tester does not find any issue in the defect after being assigned to the developer for retesting and he feels that if the defect has been fixed accurately then the status of the defect gets assigned to ‘Verified’.

#9) Closed: When the defect does not exist any longer, then the tester changes the status of the defect to “Closed”.

A Few More:

  • Rejected: If the defect is not considered a genuine defect by the developer then it is marked as “Rejected” by the developer.
  • Duplicate: If the developer finds the defect as same as any other defect or if the concept of the defect matches any other defect then the status of the defect is changed to ‘Duplicate’ by the developer.
  • Deferred: If the developer feels that the defect is not of very important priority and it can get fixed in the next releases or so in such a case, he can change the status of the defect as ‘Deferred’.
  • Not a Bug: If the defect does not have an impact on the functionality of the application, then the status of the defect gets changed to “Not a Bug”.

The mandatory fields where a tester logs any new bug are Build version, Submit On, Product, Module, Severity, Synopsis and Description to Reproduce

In the above list, you can add some optional fields if you are using a manual Bug submission template. These Optional Fields include Customer name, Browser, Operating system, File Attachments, and screenshots.

The following fields remain either specified or blank:

If you have the authority to add bug Status, Priority, and ‘Assigned to’ fields then you can specify these fields. Otherwise, the Test Manager will set the status and Bug priority and assign the bug to the respective module owner.

Look at the following Defect cycle

Defect/Bug Life cycle

The above image is quite detailed and when you consider the significant steps in Bug Life Cycle you will get a quick idea about it.

Upon successful logging, the bug was reviewed by the Development and Test manager. Test Managers can set the bug status as Open and can Assign the bug to the developer or the bug may be deferred until the next release.

When a bug gets assigned to a developer, he/she can start working on it. The developer can set the bug status as won’t fix, Couldn’t reproduce, Need more information, or ‘Fixed’.

If the bug status set by the developer is either “Need more info” or “Fixed” then the QA responds with a specific action. If the bug is fixed then the QA verifies the bug and can set the bug status as verified closed or Reopen.

Guidelines for Implementing a Defect Life Cycle

Some important guidelines can be adopted before starting to work with the Defect Life Cycle.

They are as follows:

  • It is very important that before starting to work on the Defect Life Cycle, the whole team clearly understands the different states of a defect (discussed above).
  • Defect Life Cycle should be properly documented to avoid any confusion in the future.
  • Make sure that each individual who has been assigned any task related to the Defect Life Cycle should understand his/her responsibility very clearly for better results.
  • Each individual who is changing the status of a defect should be properly aware of that status and should provide enough details about the status and the reason for putting that status so that everyone who is working on that particular defect can understand the reason of such a status of a defect very easily.
  • The defect tracking tool should be handled with care to maintain consistency among the defects and thus, in the workflow of the Defect Life Cycle.

Next, let’s discuss the interview questions based on the Defect Life Cycle.

Frequently Asked Questions

Q #1) What is a defect in the perspective of Software Testing?

Answer: A defect is any kind of flaw or error in the application that is restricting the normal flow of an application by mismatching the expected behavior of an application with the actual one.

Q #2) What is the major difference between Error, Defect, and Failure?


Error: If the developers find that there is a mismatch in the actual and expected behavior of an application in the development phase then they call it an Error.

Defect: If testers find a mismatch in the actual and expected behavior of an application in the testing phase then they call it a Defect.

Failure: If customers or end-users find a mismatch in the actual and expected behavior of an application in the production phase then they call it a Failure.

Q #3) What is the status of a defect when it is initially found?

Answer: When a new defect is found, it is in a new state. This is the initial state of a newly found defect.

Q #4) What are the different states of a defect in the defect life cycle when a defect is approved and fixed by a developer?

Answer: Different states of a defect, in this case, are New, Assigned, Open, Fixed, Pending Retest, Retest, Verified, and Closed.

Q #5) What happens if a tester still finds an issue in the defect that is fixed by a developer?

Answer: The tester can mark the state of the defect as . Reopen if he still finds an issue with the fixed defect and the defect gets assigned to a developer for retesting.

Q #6) What is a producible defect?

Answer: A defect that is occurring repeatedly in every execution and whose steps can be captured in every execution, then such a defect is called a “producible” defect.

Q #7) What type of defect is a non-reproductible defect?

Answer: A defect that is not occurring repeatedly in every execution and is producing only at some instances and whose steps as proof have to be captured with the help of screenshots, then such a defect is called as a no reproducible.

Q #8) What is a defect report?

Answer: A defect report is a document that includes reporting information about the defect or flaw in the application which is causing the normal flow of an application to deviate from its expected behavior.

Q #9) What details are included in the defect report?

Answer: A defect report consists of Defect ID, Description of the defect, Feature Name, Test Case Name, Reproducible defect or not, Status of the defect, Severity, and Priority of the defect, Tester Name, Date of testing of the defect, Build Version in which the defect was found, the Developer to whom the defect has been assigned, name of the person who has fixed the defect, Screenshots of a defect depicting the flow of the steps, Fixing the date of a defect, and the person who has approved the defect.

Q #10) When is a defect changed to a ‘deferred’ state in the defect life cycle?

Answer: When a defect that is found is not of very high importance and the one which can get fixed in the later releases are moved to a ‘deferred’ state in the Defect Life Cycle.

Additional Information on Defect or Bug

  • A defect can be introduced at any point in the Software Development Life Cycle.
  • Earlier, the Defect is detected and removed, the lower the overall cost of quality will be.
  • The cost of quality is minimized when the defect is removed in the same phase in which it was introduced.
  • Static testing finds the defect, not a failure. The cost is minimized as debugging is not involved.
  • In Dynamic testing, the presence of a defect is revealed when it causes a failure.

States of Defect

S.No.Initial StateReturned StateConfirmation State
1Gather information for person responsible for reproducing the DefectDefect is Rejected or asked for more information Defect is Fixed and should be tested and closed
2States are Open or NewStates are Rejected or Clarification.States are Resolved and Verification.

Invalid and Duplicate Defect Report

  • Sometimes defects occur, not because of code but because of test environment or misunderstanding, such a report should be closed as an Invalid defect.
  • In the case of Duplicate Report, one is kept and one is closed as a duplicate. Some invalid reports are accepted by the Manager.
  • The Test Manager owns the overall Defect Management & process and the Defect Management tool cross-functional team is generally responsible for managing the reports.
  • Participants include Test Managers, Developers, PMs, Production Managers, and other stakeholders who are interested.
  • The Defect Management committee should determine the validity of each defect and determine when to fix or defer. To determine this, consider the cost, risks, and benefits of not fixing any defect.
  • If the defect has to be fixed, then its priority has to be determined.

Defect Data

  • Name of the Person
  • Types of Testing
  • Problem Summary
  • Detailed Description of Defect.
  • Steps to Reproduce
  • Life Cycle Phase
  • Work product where Defect was introduced.
  • Severity and Priority
  • Subsystem or Component where the Defect is introduced.
  • Project Activity occurring when the Defect is introduced.
  • Identification Method
  • Type of Defect
  • Projects and Products in which problems exist
  • Current Owner
  • Current State of the Report
  • Work product where Defect occurred.
  • Impact on Project
  • Risk, loss, opportunity, and benefits associated with fixing or not fixing the defect.
  • Dates when various defect lifecycle phases occur.
  • Description of how the defect was resolved and recommendations for testing.
  • References

Process Capability

  • Introduction, Detection, and Removal info -> Improve Defect detection and Cost of Quality.
  • Introduction -> Praetor analysis of the process in which the largest number of defects is introduced to reduce the total number of defects.
  • Defect Root info -> find underline reasons for the defect to reduce the total number of defects.
  • Defect Component info -> Perform Defect Cluster Analysis.


This is all about the Defect Life Cycle and Management.

We hope you must have gained immense knowledge about the life cycle of a defect. This tutorial will, in turn, help you while working with the defects in the future in an easy manner.

Recommended Reading

199 thoughts on “What is Defect/Bug Life Cycle in Software Testing? Defect Life Cycle Tutorial”

  1. keep three group of people in mind

    *Customer of ur company gives requirements of the Project to be developed
    *Managers/Developers will make an SRS of the customer requirements
    *Developers:- Project Manager divide’s the task into modules and assigned to different individual or group of developers.
    * Immediate after getting SRS prepared by the developers Shared with Testing Team
    *Testing Manager/Lead will assign an individual/group to prepare test case document for the same until we get the release/build for testing
    * Now when developers feel to share the build with testing team to test they even have send the release notes with the build
    *release notes contains what features to be tested and what not in the particular release
    *TM/TL will assign that task to the group of test engineers to test the build
    *test engineers should test SANITY first and move on to different test Types.

    More info can be updated later ;)

  2. Hi ashwin,

    This is prabhu from chennai, i m new to testing field m trying to get testing jobs, so would u pls send me the interview question and answer and guide me.
    advance in thanks

    • Please follow the below format…..To create best Defect report .
      Below is a defect of a STB Guide screen.

      Defect ID # Defect_166
      Defect Title : [Always] In Guide screen Future Program, title name and Name on Channel cell are dimmed.
      Defect reported By : ABC
      Date Reported : 24 – Oct – 2019

      Environment Detail:
      (Provide the information of environment) Server H44H- etc.

      Defect Description :
      In Guide screen, For Some of the Channels, Name in Channel cell and Title of future programs are showing dimmed for the Entire row of cells (Only current Program Title is highlighted)
      Steps to Reproduce: 1. Open Guide
      2. Scroll Down or Scroll Up
      3. Some of the channel names in Channel cell and title of Future programs in Program cells are dimmed.
      Ex: All Movie channels, Some Show Channels (295, 299, 508, 536)

      For more information please refer the Video.

      Expected Result: Both Channel Name and Future Showings title should display without getting Dim.
      Actual Result: Both Channel Name and Future Showings title Displayed Dimmed .
      More Info
      a) Server Date & Time :
      Mon Nov 16 06:14:16 UTC 2015
      22:14:19 up 35min, 2 users, load average: 2.77, 2.55, 2.39
      b) UI or Screen pertaining to the issue : Guide Screen

      a) Server Date & Time :
      Sun Nov 15 22:11:41 UTC 2015
      22:11:44 up 16min, 0 users, load average: 2.21, 2.43, 1.92
      c) UI or Screen pertaining to the issue : Guide Screen

      ( What did we do to get out of the Issue / Screen) After restarting the set top box, issue Couldn’t resolved.
      Is it a Performance issue?
      (Detail How long to wait for STB to response) No
      (Existing Test Plan & TestCase).
      Priority [High/Medium/Low] Low
      Reproducibility: Platform Build Reproducible Note

      Other Detail Path of Logs: A/B/C…etc.

      Please Refer the below screenshot

      Comment :
      ( Please provide more detail here )

  3. hi
    i am working as a sqa engineer. but i dont know what is the scope of sqa in future. please can anyone guid me about the field sqa. and provide me link or sites where i get any guidence. my email id is younaskhan_18@yahoo.com i will appreciate it…

  4. hi,
    Can anyone please tell me the answer for the below question
    what the difference between open issue and known issue?

  5. hi all,
    Am fresher , looking for a job on manual & automation(QTP)testing. Can anybody help me in searching job in Bangalore? And please send me some real time interview QS & ans.


  6. Bug can be defined as the abnormal behavior of the software. No software exists without a bug. The elimination of bugs from the software depends upon the efficiency of testing done on the software. A bug is a specific concern about the quality of the Application under Test (AUT).

    The different states of a bug can be summarized as follows:

    1. New

    2. Open

    3. Assign

    4. Test

    5. Verified

    6. Deferred

    7. Reopened

    8. Duplicate

    9. Rejected

    10. Closed

  7. Hi there,

    Could you please provide me with a Test report template or a link that can help to create the template

  8. Good you explained Defect life cycle in detail,
    But don’t you think you should have considered Regression testing as part of Defect life cycle.

    This was a classical case when you have Water flow model but in Today’s world of Pure Agile or Agile + Waterflow model, we have to regression testing as part of defect Verification.

    Again this depends on what process a company follows, but I think this is the time we should make changes in traditional followed defect Life cycle.

    Your views please.

  9. How to maintain the defects in an excel for the second round of testing?
    Should the user use the same excel which was used in 1st round of testing and add the defects in the same, or to use a seperate excel file and maintain it seperately.

  10. suppose you found a bug and reported it by taking all the necessary steps but developer is not able to reproduce the bug and you also not able to reproduce that bug.what do you do then?what action yo will take?

  11. Hi all. Do our testing team has any portal like cloud development/some development teams will have rite. can anyone plz send to my mail if there.

  12. hi, i am learning software bugs . i am having 2 questions
    1. what steps i have to take before reporting the bugs
    2.what information shall i provide in the bug report


  13. There is a correction in the above Defect Workflow of bug life cycle.
    Once the bug is reopened (when tester dont find it fixed) it should go to Open and not back to fixed.

  14. “Q #2) What is the major difference between Error, Defect, and Failure?”

    I don’t know where this terminology came from because the only one which is correct is the “Defect” which is found in Testing.
    In Development it will be a BUG
    In Production it will be an INCIDENT

  15. It’s just a quiet horror. The more I delve into testing, the more I am convinced that this is a continuous graphomania. This is frustrating.


Leave a Comment