TestOwl LogoTestOwlDocs

Flows (Reusable Steps)

A Flow is a reusable sequence of steps that can be shared across multiple Test Cases and other Flows. Build it once, maintain it in one place, and every test that references it automatically uses the latest version.
Create a Flow whenever you have a sequence of steps you'll reuse across multiple tests. Common examples include logging in, navigating to a specific page, creating test data, or cleaning up data after a test.

Creating a Flow

You can create a Flow in any of the following ways:

  1. 1
    Record a new Flow using the Recorder.
  2. 2
    Create a Flow from selected steps by selecting multiple steps in a Test Case and choosing Create Flow from Selection.
  3. 3
    Build one manually in the Step Editor by dragging steps from the Step Palette.

Using a Flow

Drag a Flow from the Flows section of the Step Palette into a Test Case or another Flow.

The Flow appears as a single collapsible step in the Step Tree. You can expand it to inspect the steps it contains, but any changes must be made by editing the original Flow.

Flows are live references

A Flow is never copied into a Test Case.
Instead, TestOwl stores a live reference to the original Flow. Whenever you update that Flow, every Test Case and Flow that references it automatically uses the latest version.
This lets you update shared workflows in one place instead of maintaining duplicate copies across multiple tests.

Flow live reference diagram

One Flow, referenced by multiple tests. Update the Flow once, and every test automatically uses the latest version.

Flows can reference other Flows

Flows aren't limited to Test Cases—they can also be reused inside other Flows.

This allows you to build larger workflows from smaller reusable building blocks. For example, a Checkout Flow might reference separate Login, Add Item to Cart, and Apply Coupon Flows.

To keep your project maintainable, TestOwl automatically prevents circular references. A Flow can't directly or indirectly reference itself.

Where a Flow is used

Every Flow displays a Used In count, showing how many Test Cases and Flows currently reference it.

Before making significant changes, it's good practice to review where the Flow is used, especially if multiple tests depend on it.

Deleting a Flow

If a Flow is still being used elsewhere, TestOwl prevents accidental deletion.

If you choose to Force Delete, the Flow is removed and its references are automatically removed from every Test Case and Flow that used it.

Deleting a shared Flow affects multiple tests

Because Flows are shared across your project, deleting one may impact multiple Test Cases. Always review the Used In count before permanently removing a Flow.

Organising Flows

As your project grows, your Flow library will grow with it.

To keep it easy to navigate:

  • Give Flows clear, action-based names such as Log in as Admin, Add Item to Cart, or Complete Checkout.
  • Use Tags to group related Flows.
  • Keep each Flow focused on a single reusable task rather than one long end-to-end workflow.

Small, focused Flows are easier to understand, maintain, and reuse across different tests.

Best practices

  • Keep each Flow focused on a single responsibility.
  • Reuse Flows instead of duplicating the same steps across multiple tests.
  • Use descriptive names that clearly explain what the Flow does.
  • Review the Used In count before making major changes to shared Flows.
  • Build larger workflows by combining smaller Flows instead of creating one large Flow.

Next steps