Flow Runs
Experimental
The flow runner and its run records belong to Automation, one of the three ways to use tapflow, and are experimental. The most mature part of tapflow is the manual QA dashboard.
The dashboard's Flow Runs page shows the records tapflow flow run leaves. When CI runs your flows on every build, anyone on the team can see in a browser which flow failed on which build, and why. A failure in the app is kept apart from an environment problem such as the device, the agent or the relay.
A run is recorded when the runner has a token. See Recording runs to set it up.
How to use
- Open Flow Runs in the dashboard's sidebar. It is listed there once the first run is recorded, and opens on CI runs.
- Pick where the runs came from with All / CI / Local at the top. You can narrow the list by status (Any status, Running, Passed, Failed, Cancelled) and by flow name; part of a name is enough.
- Select a row to open that run. Cmd-click (Ctrl-click on Windows and Linux) opens it in a new tab.
The list shows 25 runs a page, newest first; Newer and Older below it move between pages.
The filters are part of the address, so a filtered list is a link you can share.
A run's page
A run's page lists its flows in the order they ran.
- A failed flow shows its failure message, each step's result and a screenshot from the moment it failed. A passed flow shows the screen it ended on, as the evidence that it passed: a login flow shows the screen it logged in to. Select a screenshot to open it full size.
- A
tapOnstep that failed because it found no element, or several, lists lines to try instead under Try instead, from the screen at the moment it failed. Each line has a Copy button. Flows explains how they are chosen. - A flow the run never reached is marked Not run.
- A flow the runner chose not to run is marked Skipped: another app (a flow for a different app than the build) or Skipped: tags (left out by the tag options), with the reason beside it. The list shows how many were skipped next to the passed count. See Choosing flows.
- Open the CI run opens the run on the CI side when the CI recorded a link to it. For a run with a build, Other runs of this build lists the same build's other runs.
Watch a flow's video
A flow the runner kept a video of has a Play the video button. It downloads the whole flow, start to end, and plays it in the same device frame the live view draws. The screenshot shows the screen a flow ended on; the video shows how it got there. Nothing is downloaded until you select the button.
- The dots above the bar mark where each step started, red where one failed. A grey bar is a stretch that never reached the relay. Hover over a dot or bar to see what it is, and select it to go there.
- Dragging the bar catches on each step's start. Playback speed goes from 0.5× to 4×.
- A flow with no video says why: the agent sent JPEG, the device's stream had no frame a video could start from, or the video is past its retention window.
- A video that ends early says why too: it reached the 100 MB limit for one flow, video storage was full, the run was cancelled, the runner disconnected, or the end of the video never reached the relay.
Watch a run in progress
While a run is in progress, the list and the run's page refresh every few seconds. Watch the device on the run's page shows the device the runner is driving, live and read-only: nothing you click reaches the device. Up to 4 people can watch a session.
A run across several devices (--parallel) lists them at the top of its page, each with its reset, the flow it is running now and a Watch link for that device. A running flow says which device it is on after Running on, and the list shows how many devices the run used.
What the statuses mean
| Status | Meaning |
|---|---|
| Running | In progress |
| Passed | Every flow passed |
| Failed | At least one flow failed on the app |
| Environment problem | Every failure was the environment (the device, the agent or the relay), not the app. A run that failed before any flow started is shown here too, and its page gives the reason. Shown in gray rather than red so a regression stands out. The Status filter counts it under Failed. |
| Cancelled | The run was cancelled (Ctrl+C, a cancelled CI job). A run whose runner disconnected before saying it was over is shown here too, and its page says so. |
Recording runs (operator)
- Give
tapflow flow runan API-type token (view, builds:write) and every run is recorded. Pass it with--tokenorTAPFLOW_TOKEN, or keep it in the token file. The details are in the Flow reference's run records. - Add
--no-recordto skip recording. - Video retention is set in the Flow run videos card of Settings → Default (Admin): how many days passed flows' videos are kept and how much storage videos may use, with what is in use now. The defaults are 3 days and 20 GB. A failed flow's video is kept as long as its run unless storage runs out: when storage is full the oldest passed videos go first, and failed ones only after every passed one has gone.
- When you run it locally, the runner prints a link to the run's page when it ends. In CI it prints the run's id only, so the relay's address stays out of the log.
- A run's record is deleted with its build; a record of a run with no build is deleted after 7 days.
Related
- Flow reference: writing flows and the
tapflow flow runoptions - MCP in CI/CD: running flows in CI
- Runs in the REST API: the endpoints that write and read run records