Lesson 6 Topic 2 Features
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.
Introduction of Worksoft SaaS Feature/Concept :: Lesson 6 :: Topic 2
1. Executing tests with User-Defined Variable Overrides in the Test Scheduler
If we want to run the test simultaneously/sequentially/selectively using the User Defined Variables, we will use the Test Runner/Scheduler. The Test Scheduler has an option to override UDV's using the same logic that was used for overriding values from the Test Scripts.
A Business use-case for this is let's say, in an eCommerce application, you are testing 'Discount' offer functionality within the promotions module, you can create a user-defined variable called 'Discount percentage', define the value of the % (let's say 30%) and bind the script logic in your test to that variable. If the value of % needs to change (let's say 40%), you will have to go back to the Discount Percentage UDV and manually update it. While this is good for less frequent changes, for more frequent changes the Test Scheduler is helpful. Here, you can enter multiple percentages by overriding the UDV values at Run time and execute tests for these values simultaneously or sequentially.
When updating the UDV override values in the driver data file of the Test Scheduler, it helps to understand that the structure of the data inputs is in a particular format which is very easy to update and it has paired values.
The first value is the name of the UDV and the second has the override value for the UDV.
If you have experience working with such formats, you probably have recognized that this is provided in JSON format
When the tests are executed using the Test Scheduler, it will override the values at the Run time but not replace the values in the original source (in this case, UDV's)
If you have experience working with such formats, you probably have recognized that this is provided in JSON format
When the tests are executed using the Test Scheduler, it will override the values at the Run time but not replace the values in the original source (in this case, UDV's)