Skip to content

Override Filter based on User-Defined Variable with Test Scheduler

This article is a part of the Self-paced Learning Series for the Course: First-Hand Experience of Worksoft SaaS.

Please refer to the link for more details on the Course.
 
 Mapping the Worksoft SaaS feature to the Course Context :: Lesson 9:: Topic 2


1. Using UDV Filter Value Override in the Test Scheduler
We already know how to override the UDV values using the data file, in this case, instead of overriding the UDV values, we will override the Data filter values using the UDV override column.

There are 2 Data Filters already created - NJ and NY and we will override these Data Filters by passing the values to NJ and NY individually.
    
       
2. Practice
  1. Click 'Menu', and then Click 'Data Files' 
  2. Click Vertical ellipsis in action column of Data file "Business TestRuns Details" and click on edit.
  3. Now clone Last row and click on Save icon in action column to Create Row
  4. Delete the Data File Override Payload in Data File override column.
Now we will update mandatory details in the below-mentioned column of New Row. To edit any details, mouse over the cell and click on </> (Premium Editor) Icon 

Note: Ensure that you are not deleting any Quotes, Brackets, Colon, Edit the details between double quotes. 

  • Execution Indicator
  • Run Definition Details:  
  •  {
    "testing_context_key": "XXXXXXXX",
    "name_mnemonic": "Name of the Run Definition ",
    "status": "WIP",
    "user_notes_override": " Optional Notes",
    "testing_platform_mnemonic": "Desktop chrome",
    "includeUserDefinedVariables": true
    }
  • User_defined_variable_overides

4. Firstly Change the Execution Indicator to 'Yes' ("Yes"/"No" indicates the need for execution of a particular row). 
5. Now update Run definition Details column as below:

6. Testing Context key: Duplicate the Browser page -> Click on Menu and Click on Run Definition (Data Filters on Data Files) -> Click on view to see the Testing Context of the respective Run Definition -> Copy the Testing Context Key (with Functional High Volumes Testing Cloud) -> Go to (previous Browser Tab) Data Files screen -> Edit Row -> Go Run Definition column -> Click on Premium Editor -> Paste the Testing Context key ( Ensure testing context key is between double quotes).

7.  Here update the name_mnemonic to Verify HICC calculations (Data Filters on Data Files) (This is a unique name given to the row data and will not be displayed anywhere else)
8.  Update the user_notes_override to Data-Filter for NJ .
9. We will also update user_defined_variable_overide. Copy and pase the below mentioned Json:

    [{ "name": "State_Code", "value": "NJ" }]

10. Click on Save

11. Now we will update mandatory details in below mentioned column of Row. To edit any details, mouse over the cell and click on </> (Premium Editor) Icon

Note: Ensure that you are not deleting any Quotes, Brackets, Colon, Edit the details between double quotes. 

  • Execution Indicator
  • Run Definition Details:
    {
"testing_context_key": "XXXXXXXX",
"name_mnemonic": "Name of the Run Definition ",
"status": "WIP",
"user_notes_override": " Optional Notes",
"testing_platform_mnemonic": "Desktop chrome",
"includeUserDefinedVariables": true
}  
  • Data_file_overrides 
  • User_defined_variable_override

12. Firstly Change the Execution Indicator to 'Yes' ("Yes"/"No" indicates the need for execution of a particular row). 

13. Now update Run definition Details column as below:

Testing Context key: Duplicate the Browser page -> Click on Menu and Click on Run Definition (Data Filters on Data Files) -> Click on view to see the Testing Context of the respective Run Definition -> Copy the Testing Context Key (with Functional High Volumes Testing Cloud) -> Go to (previous Browser Tab) Data Files screen -> Edit Row 15 -> Go Run Definition column -> Click on Premium Editor -> Paste the Testing Context key ( Ensure testing context key is between double quotes).

14. Here update the name_mnemonic to Verify HICC calculations (Data Filters on Data Files) (This is a unique name given to the row data and will not be displayed anywhere else)

15. Update the user_notes_override to 'Values for State-PA' and Click on Save.

16. Update the User_Defined_Variables_Overrides

[{ "name": "State_Code", "value": "PA" }]

Click on save.

17. Now click on 'Save & Exit' the Data File.

In all the rows:
  1. Change the Execution Indicator to Yes for these 3 rows and 'No' for all other rows.
  2. Click on 'Save and Exit'
3. Practice: Updating the Test Cycle Inputs File and Trigger Test Scheduler
  1. Click vertical ellipsis to edit Test Cycle Inputs.
  2. Edit the Test_Cycle_Info
  3. Update the testcycleidentifier as Test Cycle 5
  4. Update the plannedWindowsStartTime:
  5. Update the plannedWindowEndTime:
  6. Click Save and click Save & Exit.
  7. Click Menu and Click Test Cycle
  8. Click ExecuteTest Scheduler.
  9. Select on dropdown to select Test Cycle Inputs
  10. Click Schedule
  
Please Note:
  • In reality, we don't need to create a new Data Filter or clone the Run Definition. However, we suggest these steps to give you the chance to experience creating a UDV and a Data Filter and also to maintain a clear Learning History.
  • In this type of override also, the filter values will not be replaced in the Data filters.
     


Feedback and Knowledge Base