Online Helps > Rule Scenario Manager Console > Tests > Working with Test Sets

Tests are organized into test sets in the Console. Sets of tests are saved in the database, and you can retrieve them for use in other scenarios, editing them if necessary.

In the Scenario Builder for each scenario, you can see at a glance the currently selected test set, or that none has yet been selected:

images/testSetSelect.gif

By clicking on the Select/Change Test Set button, you can view all available test sets in a table:

images/testSetsList.png

The currently selected test set is indicated by an arrow preceding the test set name.

Note
Test sets that have been assigned to existing scenarios cannot be deleted. This is indicated by an inactive Delete button in the table.

From the Test Set Selector, you can perform or start the following actions:

For information on defining the tests in test sets, see Working with Tests.

Select a test set for use in a scenario

  1. In the Scenario Builder, click Select/Change Test Set.
  2. The Test Set Selector appears, listing all available test sets.
  3. Click Apply in the row of the test set that you want to apply to the scenario.

The Console returns to the Scenario Builder, now displaying the selected test set in the Selected Test Set box.

Create a new test set

To use the rule picker and task picker while defining tests, you must have already applied the test set to a scenario. The rule/task pickers allow you to select quickly the available rules and tasks in tests such as List of rules fired and List of tasks executed. See The action icons available in the Test Value field for more information.

  1. In the Scenario Builder, click Select/Change Test Set.
  2. The Test Set Selector appears, listing all available test sets.
  3. Click Create a new Test Set in the Test Sets box.
  4. A blank test set template appears, in which you will define the tests.
  5. Enter a name and a folder for the test set.
  6. If required, select a baseline report from the Baseline report drop-down list.
  7. Selecting a baseline report, which is a scenario report from a previous scenario execution, allows you to use the calculated values in the report as test values in the tests defined in the current test set. A Ref column of checkboxes will appear in the list of tests, which you can switch on to use the baseline report values in the corresponding tests. See the next section for details.
  8. Add tests to the test set as required.
  9. Full details on defining tests is provided in Working with Tests.
  10. Click Apply to save the test set definition and select it for the current scenario.
  11. The Console returns to the Scenario Builder, now displaying the selected test set in the Selected Test Set box.
    Tip
    You can click Save at any time during the test set creation to save the definition up to that point, without applying the test set to the scenario or returning to the Scenario Builder.

Specify a baseline report in a test set

To perform non-regression testing, you can specify an existing scenario report to be used as the reference in tests of another scenario. The values contained in this baseline report can be used as test values in the new scenario's tests.

You specify a baseline report in a test set definition. Click the Baseline report field, and in the drop-down list that appears, select the report to act as the reference in tests:

images/baselineReport.gif

The Test Sets table changes to include a new Ref column of checkboxes, which you check on in the rows of tests that you want to reference the baseline report.

When the Ref option is checked on, the Test Value field is filled in with the execution data from the referenced report. The data is inactive, however, as the test value is retrieved from the reference and is therefore read-only.

Tip
If you click Save while a Ref option is checked on, and then uncheck Ref, the full results from the baseline report remain in the Test Value field. This is a useful way of retrieving and editing test values.

Edit a test set

  1. In the Scenario Builder, click Select/Change Test Set.
  2. The Test Set Selector appears, listing all available test sets.
  3. Click Edit in the row of the test set to edit.
  4. The test set definition and all its tests are displayed.
  5. Modify the name, folder, or baseline report of the test set as required, or edit its tests as described in Working with Tests.
  6. Click Apply to save the test set definition and select it for the current scenario.
  7. The Console returns to the Scenario Builder.

Tip
You can access the editing page of a scenario's selected test set by clicking its name in the Scenario Builder.

Import a file containing a test set

  1. In the Scenario Builder, click Select/Change Test Set.
  2. The Test Set Selector appears, listing all available test sets.
  3. Click Browse at the bottom of the Test Sets box.
  4. Select an XML file containing a test set definition.
  5. Click Add to import the test set.

The imported test set is included in the Test Set Selector, and is now available for inclusion in scenarios. Note that imported test sets are organized into the current Working Folder.

Delete test sets

If a test set is no longer required, you can remove it from the Rule Scenario Manager database.

Note
You cannot delete a test set that has been selected in an existing scenario. This is indicated by an inactive Delete button and checkbox in the Test Set Selector.

To delete a test set:

  1. In the Scenario Builder, click Select/Change Test Set.
  2. The Test Set Selector appears, listing all available test sets.
  3. Click Delete in the row of the test set that you want to delete.
  4. The test set is removed from the table.

To delete multiple test sets, click their checkboxes in the left column of the Test Set Selector table, and click Delete Selected Items.

See Also

Tests | Scenarios | Overview | Viewing Test Sets in the Test Set Selector | Working with Tests | Test Extractors and Operators