Considering practical scenario where user has to perform same test on different test environments like QA, UAT and Pre-Production etc. So instead of creating duplicate test cases, it can be done very conveniently with the help of 'Get Variable' building block, RunList and Scheduling on LEAPWORK which helps in saving time and effort.
Please follow the below steps as to how it can be achieved:
1. Creating a simple test case with 'Start Web Browser' building block which gets the URL parameter with the help of 'Get Variable'. The scope of the 'Get Variable' building block must be 'Schedule' as it will hold the Url value as per the schedule called.
2. Add the above-created flow in an existing runlist or create a new runlist and then add the flow.
3. Create different schedules in the above-added runlist for different environments For e.g. QA and UAT.
4. User has to provide the Url value in the set variable section of the schedule. The variable name will be automatically displayed under Run List variables once the corresponding flow is added in the runlist. Add different Url values for different schedules.
For Schedule 'QA':
For Schedule 'UAT':
Now when the test case is triggered as per the schedule called, it will pass the Url value accordingly to the 'Start Web Browser' via 'Get Variable' building block and execute the test cases.
For any clarification, please contact our Priority Support.