Defect Management Series
What is it, and Why do we Need it?
You are starting a project and know some defects will probably be created. But you also know that the person who found the defect will tell a developer, and the developer will fix it right away, test it to make sure it works right this time, and put it back into the application code, and all will be good with the world. Right?
Well, not so much. Pretty much every piece of that puzzle has problems. Yes, the testers will find defects. That much we have as a given. However, how do we know that defect exists? How do we know a developer was told about it? How do we know they are working on it and not something they feel is more important? How do we remember to check to see if it was fixed, and when the developer does get around to fixing it, how do we know it gets back into the application code and how do we know that it now works, and did not break something else in the meanwhile?
Simple answer — without a Defect Management process, we don't.
Just what is Defect Management?
We see it as a small (but very important) piece of the full Quality Assurance umbrella. This tail end of the QA process controls defects from when they are found to when they are closed, sets up the Defect Management environment before testing begins, manages and tracks the defects (and resources working on them), and reporting on defect metrics throughout the process.
And who is in charge of doing all of this? The Defect Manager. This individual, whether part time or full time, needs to be the one main resource for making sure the process works smoothly from start to finish. Without the Defect Management processes in place, we mainly risk defect not being fixed, and that defect escaping into the wild of production.
So, rather than assuming that defects will be handled well, we need to assure it. We do this with planning the execution of Defect Management, and executing the plan. Steps that you will want to ensure are executed include:
- Setting up your defect repository
- Publicizing and training the teams on the defect process
- Ensuring the defects are entered correctly into the repository
- Prioritizing and assigning defects during triage
- Tracking and accurately reporting the defect population lifecycle
- Verifying that each defect is retested in a timely manner and added to the next build
- Identifying key trends hidden in the defects
Each of these needs some explanation, and several could generate a blog by themselves, so let's take a look at them at a high level only for this blog.
1. Setting up your defect repository
The first step, before any defects need to be logged, is to set up (or verify/modify) the tool you are using for a defect repository, where defects will be logged, tracked, assigned, reported from, and closed. What does the defect form look like? Do you have all of the needed fields on the form for assigning, tracking and reporting the defect? Are they laid out cleanly, in an intuitive flow? Are the correct fields made required, or read only? Are drop-down fields fully and correctly filled with the list of possible values?
2. Publicizing and training the teams on the defect process
Now, you have everything set up correctly in your repository tool. But, does anyone know how to use it? You will need to set up one or more Archival documents for all future audiences, and one or more Training documents for live classes to users. The first set, the descriptive ones, will be the most complete, having verbiage and images about every aspect of using the tool. The second set, the Training documents, are more for classroom training of the team member doing the testing, step by step on how to log and update defects.
3. Ensuring the defects are entered correctly into the repository
So, your testers are ready to start testing and logging defects. But, it is up to the Defect Manager, as part of the Defect Management process, to ensure, correct, and re-train the users on how best to enter defects into the system, if necessary.
4. Prioritizing and assigning defects during triage
Triage meetings should be held as many times as twice a day to keep the workflow of defect refactoring flowing smoothly, depending on the number and criticality of the defects. Triage meetings need to be in place to ensure new defects are filled out and prioritized correctly, assigned to the correct resource, and that existing defects are reviewed and moving forward to resolution.
5. Tracking and accurately reporting the defect population lifecycle
Metrics describing the overall status of the defect refactoring effort may not directly address the fixing of any given defect, but is invaluable to making sure that attention and effort is being directed properly. As the saying goes, you cannot fix what you do not measure.
6. Verifying that each defect is retested in a timely manner
Once the defect state shows that it is ready to retest, ideally the original tester who found and logged the defect should retest it to verify the application now works correctly and can pass the test cases that caught the defect, and test around the defect to verify that the fix did not accidentally break something else.
7. Identifying key trends hidden in the defects
Metrics sent to the Sr. Management are one thing. But it is part of the process of Defect Management and the job of the Defect Manager to scour the data in the defect repository and find trends that point to potential issues, and communicate those to the Sr. Management.
So, there it is — Defect Management in a nutshell. Get things ready, make sure everyone is trained, ensure proper logging, prioritization and assignment, track and report appropriately, ensure defects are resolved quickly, and identify trends that could impact the project timeline and success.