Considering a practical scenario where the user has to perform same test on different test environments like QA, UAT, Pre-Production, etc. So instead of creating duplicate test cases, it can be done very conveniently with the help of the '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 the '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 to an existing run list or create a new run list and then add the flow.
3. Create different schedules in the above-added run list 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 to the run list. Add different Url values for different schedules.
For Schedule 'QA':
For Schedule 'UAT':
When the test case is triggered as per the schedule called, it will pass the Url value accordingly to the 'Start Web Browser' via the 'Get Variable' building block and execute the test cases.
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.