This article shows you how to work with flows in the mabl Trainer, including how to…
The mabl Trainer does not support putting a flow inside another flow, also known as nested flows. To create or import a flow, the Trainer cursor must be outside of any other flows in the test.
If nested flows are important for your team, please let us know in the mabl Product Portal.
How to create a flow
In the mabl Trainer, take the following steps to create a new flow:
- Click on + (Add step) > Create a flow.
- Give the flow a name. If you want to add parameters, add them in the Parameters tab. If you want to create a loop, set the looping value in the Looping tab.
- Click OK.
- With the Trainer cursor inside the flow, record the test steps that you would like to include in the flow, such as clicks, assertions, or conditionals.
Alternatively, you can create a flow from existing steps using one of the following methods:
Drag and drop flow
- Record the test steps that you would like to include in the flow.
- Create a new flow: + (Add step) > Create a flow.
- Drag and drop the Start flow and End flow steps so that they wrap around the test steps you want to include in the flow.
Bulk edit flow
- Record the test steps that you would like to include in the flow.
- For each step that you want to include in the flow, hover over the step number and check the checkbox that appears. When you start checking steps, a bulk edit menu appears at the top of the Trainer window.
- Click on the Create flow button in the bulk edit menu.
After you save the test, you can import the flow into other or reuse the flow in the same test.
How to import a flow
Flows are test-type and platform specific. When you save a new flow, you can import the flow into other tests of the same type: browser, mobile Android, or mobile iOS.
In the mabl Trainer, take the following flows to import an existing flow into a test:
- Click on + (Add step) > Flows.
- Search for the flow by its name.
- Select the flow.
- If you import a parameterized flow, the Trainer prompts you to add any overrides you'd like to that instance of the flow. Overrides do not impact other instances of the flow in different tests or even the same test.
- Click Import flow.
Importing a flow
How to edit a flow
Any user with an editor or owner role in your workspace can edit flows.
To edit a flow, open a test that contains the flow in the mabl Trainer. Move the Trainer cursor inside the flow to record and modify steps as needed.
Editing a flow in one test updates the flow across all tests that use it. If you want to keep your version of a flow separate from other versions, save the flow to a branch.
How to remove a flow
To remove the flow and all of its steps from the test, click on More actions (...) for the Start flow step and select Remove flow. The flow will remain available in the workspace.
Removing a flow
How to convert a flow into non-reusable test steps
Click on the trash icon for the Start flow step. All the steps in the flow become non-reusable test steps. Deleting the Start flow step does not alter the existing reusable flow.
Converting a flow into non-reusable steps
Converting a flow into non-reusable test steps is helpful if you want to modify a flow without updating the flow across all instances.
Alternatively, if you want to create your own version of an existing flow, convert the flow into non-reusable steps, edit the steps, and save the steps as a new flow.