Types of Run
abstract
Flowcharts can be run at the Path, Flowchart or Project level.
Path Run
- Open a Flowchart
- Click on any node and click on Automate
- Click Run at the top right.
- This brings up the Run dialog.
- Set the Browser, Start URL etc.
- You can check any combination of:
- Run Normal Path
- Run Positive Validations
- Run Negative Validations
Flowchart Run
- Open a Flowchart
- Click on Run button at the top.
- The rest is similar to Path Run.
Path Execution Order
The execution order of paths in a flowchart is automatically decided by Flowcharts.This is mostly the natural order in which the paths were added to the flowchart.
However, if you wish to change the order, you can do it as follows:
- Click on the dropdown arrow to the right of Run button and choose Execution Order
- This shows the paths in a tabular format.
- Each row has a draggable handle at the left. Drag and drop to re-order the paths.
- When a flowchart is run, the paths will be triggered in the specified order.
Depends - Path Dependency
- Execution Order specifies the order in which paths are triggered for execution.
- In case of sequential execution, this will work fine.
- However, in case of parallel playback, it is not guaranteed that path 2 will start only after path 1 finishes.
The only guarantee is that path 2 will be started after path 1 is started.
- On the Execution Order dialog, Click on "Depends On" near a path (path 2).
- Choose the other path that it depends on (path 1).
- Click Save.
- In this case, Path 2 will execute only if Path 1 has executed and has passed. Else Path 2 will be skipped.
For example, we don't want to run other flows which depend on a successful product creation, if product creation itself is failing.
This will save build time and give faster feedback.
Project Run
- Open a Project
- Click on Run button at the top right.
- The rest is similar to Path Run and Flowchart Run.
Flowchart Execution Order
The execution order of flowchart in a project is automatically decided by Flowcharts.This is mostly the natural order in which the flowcharts were created in the project.
However, if you wish to change the order, you can do it as follows:
- Click on the dropdown arrow to the right of Run button and choose Execution Order
- This shows the flowcharts in a tabular format.
- Each row has a draggable handle at the left. Drag and drop to re-order the paths.
next
Playback via Ant