Defect Management Series
Metrics and Trends
Finally, you have set up your defect repository, trained everyone on it, set up and are running your triage meetings. So now you just need to report on the results of defect management within your organization. How best to do that?
We need to answer a couple of questions first: What is your goal? Who is your audience? How and how often should you distribute? What do you present? Once these questions are answered, you will have a full picture of why you want to add this powerful tool to your arsenal of defect management.
1. What is your goal in sending out these metrics?
Actually, this has a fairly simple answer: it is to inform and improve, or rather to inform IN ORDER to improve. Your goal is to send out information to key decision makers about the progress of the application development efforts as reflected in the resolution of the defects being found during testing. By presenting to them the defect data in an easily digestible form, you are giving them information they need to identify and address issues, fix processes, or at least call out weak parts of the development process.
2. Who is your audience for these metrics?
Generally, your main audience is the Sr. Management who can make decisions to change process and fix issues within the development lifecycle. However, you do have other audiences for specific metrics:
- Department Heads — a breakdown of metrics by department can be distributed so that each department has a focused look at defect progress, both comparing their department's statistics to others', and simply giving them a look at what is happening to defect creation within their application development team.
- Developers/Dev Leads — focused metrics on their team's defect progress, helping them understand where improvements can be made.
- Testers/Test Leads — should be more concerned about how quickly they are turning around defects assigned to them as fixed, and verifying and closing them. Test Leads might also pay attention to the number of defects that appear in the application once in production.
3. How, and how often should you distribute metrics?
There are two times to distribute metrics — daily and weekly. However, this also is dependent on your audience. For your Sr. Management and department heads, you should be reporting everything discussed in item #4, but to your Dev team and Test team, you might want to only send out their metrics on a weekly basis.
Metrics need to go out to the decision makers every day. If you wait until the end of the week, any trends that have been presenting themselves throughout the week may be more difficult to resolve. As to how to distribute them, options include:
- Dropping them in a SharePoint or other shared document repository
- Adding them as an attachment to a daily email
- Adding them inline in a daily email
- Creating them in the Defect Repository itself and letting people view them on their own
4. What should you be presenting to your audience?
Here is the meat of the blog — WHAT metrics are you actually creating and sharing with your audience(s)? This goes way back to the second blog in this series — setting up your defect repository correctly in the beginning, making sure you are capturing the information you need in order to report meaningful metrics.
Some things to think about when creating your metrics:
- How is the metric meaningful to the organization?
- Does the metric potentially identify problem areas in the process that could be improved?
- Is the metric simple, understandable, logical, and repeatable?
- Does the metric provide timely information?
- Is the metric taken over time to identify trends?
- Is the actual data comparable to the expected data?
- Is the metric unambiguous?
- Is the data easy to collect?
Most metrics for defects will fit one of the following types:
- The count of defects (by type, severity, app location, LOB, developer, defect type, etc.) uncovered to date during this testing effort
- Turn-around time of defects — time to start of refactoring, time to refactor, time to test after fix, total time from Open to Close, count of defects past SLA
- The count of defects over time, tracked and reported daily from today back to the start of the testing effort
Keep in mind that you are making charts for the quick and easy understanding of the current defect situation and trends of defect data so that the appropriate people are informed and can make observations and take actions if they are needed. They should be easily distributed and easily modified — people will see them and ask for minor changes, or alternate charts, or different colors, or bigger font. Prepare to be very popular.
So, there it is — Reporting Metrics and Identifying Trends in a nutshell. Determine WHY you are creating metrics, WHO needs to see them, HOW OFTEN they need to be sent out, and WHAT you should be creating for your audience. That wraps up the entire Defect Management set of blogs. I hope you have enjoyed them and learned from them so that you feel more comfortable instituting good Defect Management practices and processes within your own organization.