During test execution, you can create new defects or add
existing defects and attach them to specific steps in a script. If
your team has configured the Change and Configuration Management (CCM)
application of the Rational® solution
for Collaborative Lifecycle Management (CLM) as your defect provider,
you can file these defects and track their status right in the solution.
About this task
By default, defects submitted during test execution are not
considered blocking defects to the test case execution record. To
mark a defect as blocking, you must follow the instructions in the
Submitting a blocking defect topic.
If you want all defects to be automatically considered blocking defects,
you can set the
Automatically block the Test Case Execution
Record when associated with defects user preference by
following the instructions here:
Test execution preferences.
Procedure
- Start the test execution process.
You can
execute tests in several ways: by running a test case, by running
a test case execution record, and so on. You can even run a test without
a test script. In most cases, open the test artifact, and click the Run icon
(
).
When
you are ready to file a defect, you can file a new defect or link
to an existing one.
- To add a new defect:
- In the Defect section, click
the Create New Defect (
) icon to open
the new defect form. Notes: - If you configured Rational ClearQuest® as
your defect provider and you are using Internet Explorer, you might
see a Security Warning dialog box when you attempt
to create a defect. To open the defect form, click Yes in
Internet Explorer 7 or click No in Internet
Explorer 8.
- To check for potential duplicate defects, look at the Related
Defects panel on the right side of the Script Execution
view.
- Complete the defect form as appropriate.
- When you finish the form, click OK.
The test execution window is displayed again and shows the
new defect that you just submitted.
- Click Stop to stop test execution.
- When asked to verify whether to stop test execution,
click Yes.
If you are using the
Change and Configuration Management application as your defect provider,
the defect owner can view the defect in the application. When the
developer opens the Links page for the defect,
the test execution result is displayed under Blocks Test
Execution, as shown in this figure:

By clicking the link, the developer can view the test
execution page in the Quality Management application.
- To link to an existing defect:
- At any point during test execution, in the Defects section,
click the Link to Existing Defect (
) icon to open
the Link to Existing Defect window. Note: If
you configured Rational ClearQuest as
your defect provider and you are using Internet Explorer, you might
see a Security Warning dialog box when you attempt
to link to a defect. To open the defect form, click Yes in
Internet Explorer 7 or click No in Internet
Explorer 8.
- Complete the form to search for a related defect.
- Select the defect, and click OK.
- Repeat steps 2d and 2e.
- If you are using the CCM application of the Rational solution for CLM as your defect
provider, and you filed a blocking defect, you can verify in CCM application
whether the defect is still listed as blocking.
- In the CCM application web interface, click Work
Items.
- Under Shared Queries, expand Lifecycle
Queries, and select the Defects blocking Tests query.