Defect Management Series
Setting up Your Repository
If you've read the first blog on Defect Management, you will know that the first thing you will need to do is to ensure that your Defect Repository is set up in a manner that allows ease of entry, tracking and reporting of the defects.
At a high level, setting up a repository may seem easy, but there are many moving parts to a repository that we need to address. You may be coming into an organization with an existing repository, or setting up one from scratch, but either way, you need to make sure that it is set up the way you need it for several areas of interest: defect entry, defect updates and defect reporting.
1. Fields and Lists
First, you will need to review any default fields that come with your repository tool. There are usually the basics, such as Summary or Title, Description, Status or State, Severity, Date Opened/Closed, Detected By, Assigned To, and many more. However, there are more basics you will want to make sure are included, such as:
- Priority
- Defect Type
- Defect Location (where in the application the defect occurred)
- Reproducible
- Closed Reason
- Root cause
- Cycle/release detected in
- Environment encountered in
- Business process, if tracked
- Owner, either a resource or a department
- Estimated Fix Time or Planned Resolution Date
- Planned Release it will be in
If you are following an Agile approach, you may also have the Epic and Feature, Tags or Keywords for searchability, and any specifics for this project or your company that you need to track or report on.
Once you have your list of fields, it is time to talk to the business owners and other Sr. Management, asking THEM what they want to see, the data they want to capture, what reports and charts will be of interest and use for them. I would suggest that you have a list of tables/charts ready for them so that you can give examples of metrics you can deliver, and what they would look like.
For each field, consider its data type carefully. If the field is a number, should it be restricted? If it is a list, make sure you have all of the available options, correctly spelled, and in alphabetical order. Be consistent — don't capitalize some words and not others, and think about how these values will be used in searches.
2. Roles, Restrictions and Requirements
Now that you have all of the fields, you will need to address each of them as follows:
- Who can SEE each field (is it visible on the form for them)
- Who can MODIFY each field (is it read-only on the form for them)
- Which fields MUST be filled in (required before saving the defect)
- Are there fields that should be hidden on defect creation, but visible afterwards for updates
The 'Who' in the above questions deals with the ROLE that the individual has — Tester, Developer, Business Analyst, Project Manager, Admin, etc. Should a developer be able to close out a defect, or only the tester who is tasked with testing it after the fix? Should the initial opening of the defect be able to be saved if there is no Summary/Title or Severity? These and many other questions need to be considered by you, the users, business owners, Sr. Management, and possibly the Audit department.
3. Laying out the Defect Entry Form
As important as understanding the needs of the users regarding each of the necessary fields is the layout of the form that will be used to enter the defect, and to review it thereafter. I would advise against reducing the initial form for a new defect to the required fields only, as other non-required information may well be known by the tester entering the defect and you would lose that information.
As for the layout in general, be logical, and group things. Highest priority, most used fields at the top. Date Created and Created By should be right next to each other. Detected in Cycle, Release and Environment should probably be grouped. Note that this might take some trial and error, but you can mostly accomplish it before going live by running through a Triage Meeting in your head and following the flow of the make-believe discussion.
So, there it is — Setting up your Defect Repository in a nutshell. Understand what data you and all other entities in the organization need to gather, what that data needs to look like, who needs to see that data (or not see it), edit it or not, and what is required or not, and then make sure that the entry and review of the data is clean and intuitive to use.