When you run a defect report, test plan is a required parameter. Within the Quality Management application, however, defects do not link directly to a test plan. Therefore, it is important to understand which artifact relationships must be in place before a defect is included in these reports.
Defects reports are run for one or more test plans and include only defects that are associated (through a test case result) with a test case execution record (TCER) in which the test plan attribute is set to one of the selected test plans. You can associate a defect with a test case result while running a test (by adding a defect to the test step) or outside of a test run (by editing the test case result). The test case result is automatically linked to its corresponding TCER. For defect reports, the defect’s associated test case and test plan artifacts are irrelevant.
Consider the following example in which two defects are associated with various test artifacts. Identify which defects are included in a defects report run for each test plan.

You can select optional parameter values to narrow the results included in defects reports.
| Report Name | Description |
|---|---|
| Defect list | For one or more selected test plans, this report
lists all defects that are associated (through a test case result)
with a TCER in which the test plan attribute is one of the selected
test plans. The owner, state, severity, priority, creation date, resolution
date, and test plan are also identified for each defect. This report answers the question, “What defects are associated with this test plan and what is the status of those defects?” You can narrow
the results included in the report by selecting values for the following
optional parameters:
This report pulls data from the data warehouse. Make sure that the data collection jobs have been run successfully. Tip: For each defect:
Also, if many defects have the same owner, you can follow up with the development team to consider reassigning some defects for faster resolution. |
| Defect arrival and resolution | For the selected test plan, this report displays
a line chart that shows the number of defects that are open, in progress,
and closed over time. The lines reflect only defects that are associated
(through a test case result) with a TCER in which the test plan attribute
is the selected test plan. The time period reflected in the line chart
runs from the earliest creation date to the latest creation date among
the defects included in the report. This report answers the question, “How are we doing on finding and fixing defects?” You can narrow the results included in the report by selecting values for the optional Test Milestone parameter. This report pulls data from the data warehouse. Make sure that the data collection jobs have been run successfully. Tip: If you are nearing the end of
an iteration or release, you typically expect that as the number of
closed defects increases, the number of open defects approaches zero.
If the number of open defects and the number of closed defects are
rising at the same time, then the defect submission rate exceeds the
defect resolution rate, suggesting that testing is not nearing completion
yet.
|