If you are not using the version 7.0 Enterprise schema, you can enable
the submission of defect records directly from the Test Results view and the Execution page
of the Test Manager view when you use the Rational® ClearQuest® Client or
the Rational ClearQuest Client for Eclipse.
To enable a schema for the TMTestLog and defect reference:
- Click to start Rational ClearQuest Designer.
- Check out the schema where you have applied the CQTM package.
- Open the Record Types – Stateless folder.
- Expand the TMTestLog folder and open the Fields item.
- Click in any empty cell on the Fields table
and select the Add Field option.
- Complete the properties on the General tab for
the new field:
- Type Defects in Field Name.
- Type defects in Column Name.
- Type REFERENCE_LIST in Type.
- Type name_of_your_Defect_record in Reference
To.
- Type CQTMTestLogs in Back
Reference.
- Close the properties window and under TMTestLog expand the Forms folder.
- Open the TestLog form and click .
- Click on the newly created tab, Dialog Tab and
then click .
- Using the Field List window, drag the Defects item
onto the new tab, Dialog Tab.
- Adjust the controls on the form to display as desired. You can
add columns to this reference list by selecting a column heading and then
clicking Add Column. Column properties can be changed
by selecting a column and clicking Properties. The
properties of the columns supported in the version 7.0 Enterprise schema are:
- The Field Name for column one is Defects.id the Label is id.
- The Field Name for column two is Defects.Headline and
the Label is Headline.
- The Field Name for column three is Defects.State and
the Label is State.
- Select Dialog Tab and click Tab
Properties. Change the tab caption to &Generated
Defects.
- Expand the Record Types folder and then
expand the name_of_your_Defect_record folder. Expand the Forms folder
and open the name_of_your_Defect_record_Base form.
- Repeat Steps 8 to 10 to add a new tab to the Defect_Base form.
Substitute CQTMTestLogs for the field
named Defects. The properties of the columns supported
in the version 7.0 Enterprise schema are:
- The Field Name for column one is CQTMTestLogs.ConfiguredTestCase.id and
the Label is id.
- The Field Name for column two is CQTMTestLogs.ConfiguredTestCase.Headline and
the Label is Headline.
- The Field Name for column three is CQTMTestLogs.Verdict and
the Label is Verdict.
- The Field Name for column four is CQTMTestLogs.Build and
the Label is Build.
- Select Dialog Tab and click Tab
Properties. Change the tab caption to &Test Logs.
- Click and then click to check in your changes to the schema.
- Upgrade the user database to add the changes by clicking .
After customizing the schema to support a TMTestLog and defect association,
when you use a Rational ClearQuest Client or Rational ClearQuest Client for
Eclipse, you can click
Submit Defect from the Test
Result view or the
Execution page of Test Manager view
to submit an associated defect.
For more information about submitting a
defect from a test result, see the Rational ClearQuest Help system for the Rational ClearQuest Client or the Rational ClearQuest Client for Eclipse.