Adding a TMTestLog and defect reference to a schema

Before you begin

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.

About this task

To enable a schema for the TMTestLog and defect reference:

Procedure

  1. Click Start > All Programs > IBM Rational Software > Rational ClearQuest > ClearQuest Designer to start Rational ClearQuest Designer.
  2. Check out the schema where you have applied the CQTM package.
  3. Open the Record Types – Stateless folder.
  4. Expand the TMTestLog folder and open the Fields item.
  5. Click in any empty cell on the Fields table and select the Add Field option.
  6. Complete the properties on the General tab for the new field:
    1. Type Defects in Field Name.
    2. Type defects in Column Name.
    3. Type REFERENCE_LIST in Type.
    4. Type name_of_your_Defect_record in Reference To.
    5. Type CQTMTestLogs in Back Reference.
  7. Close the properties window and under TMTestLog expand the Forms folder.
  8. Open the TestLog form and click Edit > AddTab.
  9. Click on the newly created tab, Dialog Tab and then click View > Field List.
  10. Using the Field List window, drag the Defects item onto the new tab, Dialog Tab.
  11. 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:
    1. The Field Name for column one is Defects.id the Label is id.
    2. The Field Name for column two is Defects.Headline and the Label is Headline.
    3. The Field Name for column three is Defects.State and the Label is State.
  12. Select Dialog Tab and click Tab Properties. Change the tab caption to &Generated Defects.
  13. 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.
  14. 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:
    1. The Field Name for column one is CQTMTestLogs.ConfiguredTestCase.id and the Label is id.
    2. The Field Name for column two is CQTMTestLogs.ConfiguredTestCase.Headline and the Label is Headline.
    3. The Field Name for column three is CQTMTestLogs.Verdict and the Label is Verdict.
    4. The Field Name for column four is CQTMTestLogs.Build and the Label is Build.
  15. Select Dialog Tab and click Tab Properties. Change the tab caption to &Test Logs.
  16. Click File > Save Work and then click File > Check In to check in your changes to the schema.
  17. Upgrade the user database to add the changes by clicking Database > Upgrade Database.

What to do next

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.


Feedback