Skip to content

Executing Data Driven Testing using UDV for Test Case 2

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 6 :: Topic 1 (Part 2)


1. Data-Driven Testing using User-Defined Variables (UDV) for Test Case 2
In the previous step (Part 1), we have executed the values of Test Case 1 (NJ) with UDV.

In this step, we will change the test data and update the test data of Test Case 2 (NY) in the UDV and re-execute the test. 

The purpose of this activity is to experience how easy it is to change the values in the UDV and use the same test script to execute a different test.
    
So far, whenever we had to replace the test data of Test Case 1 with Test Case 2, we updated the Test Scripts, but now, we are going to replace the values in the UDV (outside of the Test Script) thereby separating the Test data from the Test Logic.

The values of Test Case 2, that needs to be updated in the UDV (name-value pairs) are below:
Name Value
Age 45
Annual_Income $55,000
Zip_Code  10001
Annual_Premium $6,159
Annual_Penalty $550
Calculator_Result_Header   You are not eligible for subsidy.  
              
2. Practice:
Navigate to User-Defined Variables, select Product: Health Insurance Calculator and update User_Defined_Variables as below:
  1. Age: 45 (no need for changing the value)
  2. Edit Annual_Income: update the value as $55000 and Save
  3. Edit Annual_Penalty: update the value as $550 and Save 
  4. Edit Annual_Premium: update the value as $6,159 and Save
  5. Edit Calculator_Result_Header: update the value as You are not eligible for subsidy. 
  6. Edit Zip_Code: update the value as 10001 and Save
  7. Execute the RD - Verify HICC calculations (Data-driven by UDVs)  

Please note: 
  • Ensure that the (.) is entered along with You are eligible for a subsidy in the Calculator_Result_Header. Worksoft SaaS will fail the instruction if (.) is missing, as there will be a mismatch at the time of verification with AUT.

    

   

Feedback and Knowledge Base