If you are using LEAPWORK for robotic process automation, you can think of run lists to control the order in which your robots run.
There are two ways to decide the order of the flows:
1. Ordering flows in Steps
The scheduler executes automated test cases in the order they have been arranged in the run list, from top-down. However, you can rearrange the flow order in a run list by dragging and dropping the flows as required. See below:
2. Ordering flows using teardown approach
Using a “setup-run-teardown” pattern and using conditions to control if certain steps are run or not.
A Run List always consists of one or more steps. Each step in a Run List can have one or more flows to be executed. Users can add multiple steps to define and control the execution of the flows. The first step is always executed, and the rest of the steps can be made conditional, i.e. their execution can be controlled based on the outcome of the previous step.
There are two available conditions to choose in the 'Step':
The Always run condition should be selected if the user needs to run all the flows irrespective of whether the flows in any previous step have failed.
Only run after success
The Only run after success condition should be selected in a step when the user wants to run the tests in that step only if all the tests in the previous steps have succeeded.
After designing automation flows, users can schedule these flows to run automatically in different operating systems and with different browsers using the Scheduler configuration.
Once a schedule is created, it is saved on the Controller. This means the user defines the schedule in LEAPWORK Studio, whilst the Controller keeps track of the schedule and handles the execution on the environments.
Schedules are associated with run lists and can be accessed from the top menu of ‘Run Lists’.
Under 'Agents' (see more in Agents) select one or more agents on which the defined flows in each step should execute.
|Select 'All flows' to run all the selected automation flows on all agents.|
|Select 'Divide flows' to distribute the selected automation flows equally to all agents.|
|Select 'Run in order' to run all the selected automation flows in a defined flow sequence.|
|Select 'Run in random order' to execute the selected flows in any random order.|
To know more about Run Lists and Schedules, please watch this tutorial schedules-run-lists
For any clarification, please contact our Priority Support.