In addition to generating multiple test case execution
records automatically, you can create a single test case execution
record manually. Test case execution records are used to specify the
execution environments for a specific instance of a test case, to
run a test case instance, and to track the status of each test run.
Procedure
- In the main menu, click .
Tip: You can also generate
test case and test suite execution records automatically in the Test
Case Execution Records or Test Suite Execution
Records section of a test case or test suite.
- In the Create Test Case Execution Record page, type a name
for the new test case execution record.
- Select a team area and an owner from the lists. Typically,
the owner is the person responsible for running the test.
Note: You
must explicitly enable team areas by going to Manage Project Properties.
- Type a description of the test case execution record.
- Complete the Overview section.
- To set the associated test plan, click the Select
Test Plan icon (
) to apply the test case execution record to a particular
test plan, or leave it unassigned. After you select
a test plan, by default the Iteration field
is populated with the value from the associated test plan.
- Required: To set the associated test case,
click the Select Test Case icon (
) to select
the test case to which the test case execution record should be assigned. Note: A test case execution record must be assigned to a test
case. If you selected a test plan for the test case execution record,
only test cases associated with that test plan are included in the
list.
After you select a test case, the following
fields are automatically populated with values from the associated
test case: Default Test Script, Available
Test Environments, Priority, Weight,
and Estimate. You can edit these values if
needed.
- In Default Test Script, select
the test script that is associated with the selected test case.
- In Iteration, select the test
iteration to which the test case execution record should be assigned. Test iterations are defined in the Test Schedule section
of the test plan and are only available here when you assign the test
case execution record to a particular test plan.
- In Available Test Environments,
select a test environment that defines the runtime environment. A test environment is a set of saved attributes,
for example, a particular browser, operating system, hardware platform,
and other attributes for a particular machine. If your
project uses channels, available channels will appear once a test
environment is selected.
- Define categories.
You can use categories
to define a hierarchical organization of test plans, test cases, test
scripts, and other test artifacts. You can also define subcategories
and other category relationships. You can use the default categories
that are provided or create your own. To define categories, click
the Manage Test Case Execution Record Categories icon
(
).
- Assign values to the custom attribute fields. If
an administrator defined any custom attributes for test case execution
records, they display in the Attributes section of the Summary. The
field values for custom attributes can be in the format of text, integer,
or date. You can sort or filter your test cases using custom attributes
in the same way that you use categories.
- Click Save.
What to do next
After you run the test case, you can record the time that
was required to complete the test case instance in the
Time
Spent field. This information can be used to improve estimates
of the time required for future test runs and to track the time invested
in testing efforts.