Skip to content

Dynamic Filters using User Defined Variable

Before reading this you might want to see:

Main Article


Data Filters can also be applied dynamically using the User-Defined Variables. User-Defined Variables are defined based on the Environments. 

Steps to create a Dynamic Filter using User Defined Variable
  1. Create User-Defined Variable (It can be Manual or Dynamic). 
  2. Create Data Filter and select the attribute. 
  3. Provide the operator
  4. Click on the checkbox beside the operator drop down with a superscript 'E'.  It enables the variable drop down and shows all the available environment variables to be used for filtering the data.
Example:

Let us consider the Application Under Test (AUT) as Insurance Premium Calculator (Click here to access the application). We have a scenario where we want to provide the value of Age and Income during runtime. Also, it is desired that the execution takes place only for that specific values of Age and Income.Refer to the Data-Driven TestCase scope to know more.

Data Filters in Worksoft SaaS give you the flexibility to filter out unwanted data from large datasets which keeps you with only necessary data during execution. 

To fulfill the above requirement, follow the steps given below:
  • Create two User Defined Variables viz., Age and Income.
  • Navigate to Data Filters home page from Data Definitions Page.
  • To create a new Data Filter please click on Create, to open a pop-up which is discussed below.
  • To create a Filter using User Defined Variables, you need to check the checkbox beside operator drop down with a superscript of ‘E’, it enables the variable drop down and shows all the available environment variables to be used for filtering the data.  


  • After the selection of variable, click on the arrow which pulls up the value of the variable associated with environment selected.


  • After this is done, save your Data Filter and you are ready to execute run that filters the data based on the values that are retrieved from User Defined Variables.

After reading this you might want to see:

 

Feedback and Knowledge Base