Configuring Test Filters

Tags:  

Overview

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.

Configuring Test Filters

Adding Filters

  1. 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

Filter Criteria

  • Match all of the following - If you want all the criteria you are to define have to be met with i.e., scripts matching all of the specified criteria will be executed (AND condition)

  • Match any of the following - If atleast one of the criterion you are to define have to be met with i.e., scripts matching any one of the specified criteria will be executed (OR condition)

 

Match all of the following

You can add multiple filter criteria using the Filter Criteria table.

  • To add new filter criteria click on the '+' sign next to the Filter with column. This will add a new row where you can specify the filter criteria.

  • Filter with column includes the Script Name, Script Path (in Web Functional) and Load Test Name (Web Performance) options. Choose one of the options to specify the match criteria for Script Name or Script Path.  

  • The Condition column includes the conditions such as equals, notequals, contains, notcontains, startswith, endswith. Choose one of the condition.

  • The Value column should include the actual match criteria to be matched with the Script Name or Script Path option.

  • The Delete column is to delete the current row from 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.

  1. After specifying the filter criteria, click on the Apply button to save the configuation. 

Editing Filters

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.

Using Filter for Test Execution

To execute the test with the created filter follow the below steps,

  • Choose the Suite from the suite tree and using the option Start Play with Filter / Sequence.

  • In the popup shown choose Filter option and from the Available Filters combo, select the appropriate filter and then click on Start Play.
This will use the chosen filter, for the test execution.

0 Comments  Show recent to old
Post a comment


 RSS of this page

Copyright © 2009, Zoho Corporation. All Rights Reserved.