Submitting defects during test execution

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 as your defect provider, you can file these defects and track their status right in the solution.

Before you begin

If configuration management is enabled for your project area, the current configuration must be a global configuration to associate a defect with an execution result.

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

  1. 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 (Run).

    When you are ready to file a defect, you can file a new defect or link to an existing one.

  2. To add a new defect:
    1. In the Defect section, click the Create New Defect (Create new defect) icon to open the new defect form.
      Notes:
      • To check for potential duplicate defects, look at the Related Defects panel on the right side of the Script Execution view.
    2. Complete the defect form as appropriate.
    3. When you finish the form, click OK.

      The test execution window is displayed again and shows the new defect that you just submitted.

    4. Click Stop to stop test execution.
    5. 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:

      Links page in work item

      By clicking the link, the developer can view the test execution page in the Quality Management application.

  3. To link to an existing defect:
    1. At any point during test execution, in the Defects section, click the Link to Existing Defect (Link to existing defect) icon to open the Link to Existing Defect window.
    2. Complete the form to search for a related defect.
    3. Select the defect, and click OK.
    4. Repeat steps 2d and 2e.
  4. If you are using the CCM application of Engineering Lifecycle Management as your defect provider, and you filed a blocking defect, you can verify in CCM application whether the defect is still listed as blocking.
    1. In the CCM application web interface, click Work Items.
    2. Under Shared Queries, expand Lifecycle Queries, and select the Defects blocking Tests query.

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki