Tests can be added, edited, and removed from test sets in the Console. Sets of tests are saved in the database, and you can retrieve them for use in other scenarios (see Working with Test Sets for details).
In the Test Sets box, you can perform the following actions on tests:
-
add a test to a test set
-
apply baseline report values to tests
-
edit a test
-
remove a test from a test set
Add a test to a test set
-
Open a test set by clicking Edit in the row of an existing one in the Test Set Selector, or by clicking Create a new Test Set to start defining a new one.
-
Select a test extractor from the drop-down list at the bottom of the Test Sets box and click Add Test.
The extractor name is displayed in the
Name column of the Test Sets box, and the fields for
Operator and
Test Value appear.
-
From the Operator drop-down list, select the required operator.
-
Enter the test value in the Test Value field. To enter a list of values, separate each value with a comma. A number of icons are available, depending on the type of test, that can be used to specify the test value. These are described in The action icons available in the Test Value field.
-
Continue adding tests until you are finished.
-
Click Apply to save the test set definition and select it for the current scenario.
The Console returns to the Scenario Builder.
| Tip |
| You can click Save at any time while editing tests to save the test set definition up to that point, without applying the test set to the scenario or returning to the Scenario Builder.
|
For a list of the test extractors and operators supplied with Rule Scenario Manager, see Test Extractors and Operators.
Apply baseline report values to tests
You can select a baseline report to use its calculated values as the test values in other tests. To do this, select a report from the Baseline report drop-down list in the Test Sets box. This adds a Ref column of checkboxes to the list of tests, which you can select to apply the report's values to the corresponding test values.
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
-
Open a test set by clicking Edit in its row in the Test Set Selector.
-
Change the operator or test value of the tests in the test set as required. You can also apply a baseline report value to a test, or remove such a reference if it exists. A number of icons are available, depending on the type of test, that can be applied to define the test value. These are described in The action icons available in the Test Value field.
-
Click Apply to save the test set definition and select it for the current scenario.
The Console returns to the Scenario Builder.
Remove a test from a test set
-
Open a test set by clicking Edit in its row in the Test Set Selector.
-
Click Remove in the row of the test to remove it from the test set.
-
Click Apply to save the test set definition and select it for the current scenario.
The Console returns to the Scenario Builder.
The action icons available in the Test Value field
A number of useful editing buttons become available at the top of the Test Value field for certain types of test, depending on the extractor you select:
-
Action icons available with all tests:

is used to delete the current contents of the Test Value box.
-
Action icons available with all tests on rules or tasks:

is used to pick a task or a rule from the Available box on the right and transfer it to the Test box on the left.

is used to remove a task or a rule from the Test box and return it to the Available box.
Note that to be able to use the rule picker and task picker while defining tests, you must have already applied the test set under construction to a scenario.
| Tip |
| You can select multiple entries in the Available and Test boxes by pressing Ctrl or Shift and then clicking individual items or a range of items in the list.
|
-
Action icons available with the
Input parameters and Output parameters tests:

is used to insert into the Test Value box the input parameters contained in an input dataset existing in the Rule Scenario Manager database. Click this icon to display a list of the available datasets, select one of them and then click

to upload the parameters to the Test Value box.

is used to insert into the Test Value box the input parameters contained in a dataset defined in an Excel or XML file. Click this icon to display a Browse button and a filename field, specify a file to upload containing datasets, and then click

to upload the parameters to the Test Value box.

is used to upload the parameters from the database or from a file, according to the selection made with the

or

buttons.

is used to return to the parameters editing box, showing the parameters that were most recently selected.
| Note |
Before uploading an XML file for use as the test value in an Input parameters or Output parameters test, you must enclose its XML code in the required open and close tags:<input-parameters>
...
</input-parameters>
or
<output-parameters>
...
</output-parameters>
This is in contrast to the action of entering XML code directly into the text fields in the Console; in this action, the tags are not required.
|
See Also
Tests | Scenarios | Overview | Viewing Test Sets in the Test Set Selector | Working with Test Sets | Test Extractors and Operators