Test Filters allows you to execute selective scripts matching specific criteria. For each suite, based on the test type you can add, edit, delete or disable filters to execute scripts matching specific filter criteria.
To add a filter, click on the Add New Filter link in the Filter Configuration screen. In this screen, fill in the details as shown below:
| Field Name | Value | Default Value/Example |
|---|---|---|
|
Filter Name |
Enter the filter name to identify the filter. |
testfilter |
|
Activate This Filter |
Check this box to activate the currently selected filter in the Filter Name combo. |
checked |
|
Test Type |
Select one of the test type from the combo such as Web Functional, Web Performance, Web Service Functional or Web Service Performance. |
Web Functional |
|
Filter Criteria |
|
Match all of the following |
|
You can add multiple filter criteria using the Filter Criteria table.
For e.g., If you select Filter with option as Script Name, Condition as startswith, Value as "emp*" then this will set a filter to select all the scripts starting with the script name as "emp". Only scripts starting with the name "emp" will be executed during playback of the suite. |
||
After specifying the filter criteria, click on the Apply button to add the new filter. The filter selected in the Filter Name combo will be activated for the suite.
To edit a filter,
In the Filter Configurator screen, click on the Edit icon from the appropriate row in which the filter to be edited exists. This will display the selected filter and its filter criteria.
Edit the required details and click on the Apply button to save the changes.
You can enable/disable all the filters related to a particular test type at one shot using the Activate/Deactivate option. Click on the Activate/Deactivate icon from the appropriate row in which the filter to be enabled/disabled exists. This will enable/disable the filters based on the existing state. You can also disable a filter using the Disable Filter link in the Filter Configurator screen. This will display a popup to disable all filters for a particular test type. Select the checkbox's in the Disable column to disable the desired filters.