Using reusable flows in the Trainer

Common sequences of steps can be bundled into reusable flows, which can then be inserted into any test. Flows are always up to date; any changes to the base flow will automatically be propagated to all tests containing that flow. A test can be composed with any number of primary (non-reusable) steps and reusable flows. You can also insert the same flow multiple times within a test.

Define a Reusable Flow

To find the flow options, click on the More actions menu icon.

Click the "Flows" button in the menu and select "Insert Start".

When prompted enter a name for the flow and save. This generates a step marking the beginning of a new reusable flow.

Continue recording steps in the flow.

Go back into the menu by clicking on "More actions", click the "Flows" option and select "Insert end" to close the flow.

Did you know?

You can open the mabl Trainer in Chrome DevTools to more easily view your steps and important information for easier editing.

Insert a Reusable Flow

To insert an existing reusable flow click the "Flows" option in the menu and select "Import flow". This option is disabled if there are no reusable flows defined in the workspace.

Select from a list of available flows and save.

updated screenshot to show high light when selecting a flow to add

updated screenshot to show high light when selecting a flow to add

The selected flow will appear in the list of Steps. A small badge icon in the "Start flow..." step indicates the number of tests using this flow.

You can use the Replay controls to play through the flow steps. You can also add, delete, or edit steps in the flow. When the test is saved, any changes to a reusable flow will be propagated to other tests using this flow.

Flow Limitations

At present, nesting one flow inside another flow is not supported.

Remove a Reusable Flow

Click on the "Remove flow" button to delete the flow and all of its steps from the test. The reusable flow will remain available in the workspace.

Convert Reusable Flow To Non-reusable test Steps

Delete the "Start flow..." step of a reusable flow converts all the flow steps into primary steps for the test. This does not alter the existing reusable flow.

After deleting the step "Start flow 'Logout' ", steps within that flow are converted into primary steps.

After deleting the step "Start flow 'Logout' ", steps within that flow are converted into primary steps.

Convert Existing test Steps into a Reusable Flow

To convert a set of primary steps of a test into a reusable flow, use the Replay controls to move the Trainer cursor to just before the first flow step and insert a "start flow..." step there. Then play through the steps and insert an "end flow" at the end of the flow.

Watch the next chapter in the quick start video guide.

Using reusable flows in the Trainer


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.