Filter Test Cases Actions
Filter Test Cases actions filter Tosca test cases returned by the Search Test Repository action to find the test cases that match the test data returned by the Create Object Differences Report action. The results are stored in a Table dataset.
Action Property | Description |
---|---|
Filter | A Table parameter or dataset containing the test data to be used for the filter. This should normally be set to the TestData dataset returned by the Create Object Differences Report action. |
Result | A Table dataset which stores the matching test cases. |
Source | A Table parameter or dataset containing the Tosca test cases to be filtered. This should normally be set to the Result dataset returned by the Search Test Repository dataset. |
Test Repository | A Test Repository parameter or dataset which is linked to a Tosca Test Repository. |
The Filter table should have the following columns:
Column | Description |
---|---|
TABLE_NAME | The name of a table containing a key/value pair to be matched against the test cases. |
KEY_FIELD_NAME | The name of the key field. |
KEY_FIELD_VALUE | The key field value. |
The Source table should have the following columns:
Column | Description |
---|---|
TOKEN | A token used in the Tosca test case. |
TEST_ID | The test case’s ID. |
TEST_NAME | The name of the test case. |
TEST_PATH | The test case’s path. |
The Result dataset has the following columns:
Column | Description |
---|---|
DATA_VALUE | The KEY_FIELD_VALUE that was matched from the Filter table. |
TEST_ID | The ID of a matching test case from the Source table. |
TEST_NAME | The name of the matching test case. |
TEST_PATH | The test case’s path. |
Note that the Result dataset will be empty if the action is run using a Test Repository type other than ‘Tosca’.
Example: