Running a test execution record

With IBM® Rational® Quality Manager, you can run tests several ways. One way is by running a test execution record.

About this task

You can run a test by creating and running a test execution record. You create test execution records in the context of a particular test case. Each test execution record associates the test case with the test environment that is needed for test execution. So when you run a test execution record, you are basically saying, "Run this test case in this particular software and hardware environment."

When you run a test case on its own or from within a test suite, you can run the test case with or without a test execution record. When you run the test case without a test execution record, the test case merely runs in the local test environment. If your situation is more complex and you need to support multiple test environments, consider using test execution records.

You can use test execution records to run both manual and automated tests. If you have created manual test scripts, you can add those tests scripts to a test case and then associate test execution records with the test case. The same holds true for any automated tests that you refer to from Rational Quality Manager. In many cases, when you run the test execution record, you run a test script that has been added to a test case to which the test execution record is associated.

To run a test execution record:

Procedure

  1. Do one of the following steps:
    • Create a test execution record, and associate it with a test case; then open the test case.
    • Open an existing test case, and generate multiple test execution records for the test case.
    • Open a test plan and select one or more test cases in the test plan; then generate test execution records for the selected test cases.
  2. In the Table of Contents of an open test case, click Test Execution Records.
  3. Select the test execution record to run.
  4. Click the Run icon (Run).
  5. If an automated test script is associated with the test case, select the appropriate adapter to run the test, and click OK.

    The Script Execution window opens, and the test runs automatically. At the end of the test run, Rational Quality Manager creates an execution result. The adapter attaches the tool-specific result for the test run in the Result Details section.

  6. If a manual test script is associated with the test case, the Script Execution window opens and an arrow is placed to the left of the first statement.
  7. Complete each step, and assign a verdict.

    Possible verdicts include:

    • Pass (Pass)
    • Fail (Fail)
    • Inconclusive (Inconclusive)
    • Blocked (Blocked)
    • Error (Error)
    Note: In order to see the options for Blocked and Error, click the arrow next to the Inconclusive icon.
    Tip: To assign the same verdict to all steps that follow the current step, click the Apply All icon (Apply all verdict).
  8. Optional: Record the step results in the Actual Results field.
  9. Optional: Add a comment to one or several statements:
    1. From the toolbar, click the Comments icon (Comments).
    2. Type your comment in the Write Comments field, and click OK. The Comments icon (Comment) is displayed in each statement that has a comment.
  10. Optional: Add an attachment to one or several statements. For example, you can create a screen capture of the application under test and attach it to the statement. To attach a file to a statement:
    1. From the toolbar, click the Attachments icon (Attachments). The Attachments View opens.
    2. Browse to the file, and click Open.
    3. Click OK. The Attachment icon (Attachment) is displayed within each statement that has an attachment.
  11. If you discover problems with the application under test, submit a defect:
    1. From the toolbar, click the Add New Defect icon (Add new defect). The Defects View opens.
    2. Complete the defect form, and click Save. The Defects icon (Defect) displays within each statement that has an defect.
  12. When the test run is complete, click Close and show results to view the execution results.

    If necessary, you can modify the verdict (Actual Result) and the weight distribution from the execution results. After you make an edit, be sure to click Save to save your changes.


Feedback