Flow Test Cases

Flow Test Cases

Flow is one of the three test case Formats in Lathe Studio, beside Standard and Gherkin (see Test Case Formats). A Flow case is a graph of steps — nodes — joined by outcome branches: the result the tester records on a node decides which node comes next. Use it when the path through the product depends on what happens, rather than following a fixed list.

Choose Flow in the Format field when you create a test case. The Format can't be changed later.


Building the graph#

The Flow editor opens as New Flow Test Case. Alongside the usual Title, Status, Priority, Tags, Requirements, and custom fields, it has three parts:

  • Nodes — the list of steps. Use + to add a node and click one to edit it.
  • Node Details — the selected node:
    • Action / Instruction — what the tester should do. Insert shared step fills it from your shared step library and keeps it linked (Break link makes it editable here).
    • Expected Result — what should happen.
    • Step type — Manual, Automated, or Tool.
    • Start node — tick it on the one node the flow begins at.
    • Terminal — marks a node as an end of the flow.
    • Outcome Branches — for each outcome (Pass, Fail, Blocked, Skipped, Retest), choose the node that comes next. Leave an outcome unmapped to Finish test when the tester records it.
  • Flow Settings:
    • Completion Message — shown when the tester reaches a finish.
    • Allow Restart — offers a Restart Flow button after the flow finishes.

Graph Preview draws the graph as you build it.

A flow needs a title, at least one node, and exactly one start node before it saves. The editor also warns when a node can't be reached from the start node.

Each outcome on a node leads to one next node at most, so the path is always decided by the result. Loops are allowed: a branch can point back to an earlier node.

Running a Flow case#

In a test run, a Flow case shows the Current Step — its action and expected result — with a button for each outcome. An outcome with no branch is marked (finish). The tester can add a Step Note and a Duration (seconds), then chooses the outcome, and the next node appears.

The flow finishes when the tester records an outcome that has no branch. The finish screen shows Flow complete and the completion message, and asks for the case's overall result. Lathe suggests one from the path:

  • any Fail, Blocked, or Retest on the path suggests Fail;
  • all Pass suggests Pass;
  • all Skipped suggests Skipped.

The tester can pick a different result before clicking Record Result. Like every format, a Flow case has one result per run.

If Allow Restart is on, Restart Flow starts again from the start node. The restart is recorded on the path, but the overall result recorded the first time stands.

A loop guard stops runaway paths: when one node has been visited 10 times in the same pass through the flow, the tester is sent to the finish screen to record a result.

What's recorded#

Each execution keeps the path the tester took: every node visited, in order, with its outcome, step note, duration, and time. A node visited twice appears twice, and restarts appear as dividers. The path is only ever added to.

The run keeps its own copy of the graph. Until a Flow case has a result in an open run, that copy follows edits to the case; once it has a result, the run keeps the graph as it was when it ran.