Runs
Reference for Cofactor runs. Statuses, steps, assertion results, video, cancel and debugging a failed run.
A run is one execution Cofactor performs against your application. Every run records its status, steps, assertion results, video and timing, and feeds the same issues and triage.
Run types
| Type | What it is | Start it when |
|---|---|---|
| Workflow run | One execution of one flow. | You want the result of one flow. |
| Test run | Many flows run together, from Regression, a tag or a named suite. | You want coverage across many flows. |
Each row of a test run is a workflow run. Open a row to see its steps and video. For your own Playwright tests, see Bring your own suite.
Start and find a run
Start a run with Run Flow in Flow Designer, or from the CLI.
cofactor workflow run <workflow id> --stream cofactor workflow runs list <workflow id> cofactor workflow runs get <workflow id> <run id>
The Runs tab in Flow Designer lists a flow's runs. Suites, then Test Runs, lists test runs.
Run statuses
| Status | Meaning |
|---|---|
| Queued | Waiting to start. |
| Running | In progress. |
| Waiting | Test run row only. The flow reached a Wait node. It resumes on its own. |
| Passed | The run succeeded. |
| Failed | A step failed, or a fail or fatal assertion failed. |
| Platform error | The run could not reach a verdict. |
| Timed Out | The run timed out. |
| Canceled | The run was canceled. |
| Skipped | Test run row only. The flow did not run. |
| Degraded | Test run row only. The flow did not run because its health is degraded. |
A test run row that passed after a retry reads Flaky on its run page and Passed in the test run table. In the Flow Designer Runs tab, a passed run reads Success.
Read a run
| Part | What it shows |
|---|---|
| Header | The flow name and version, status, start and finish times, and the environment. |
| Summary tab | A failure headline or the root-cause diagnosis, the assertion summary, and the step list. |
| Timeline tab | The browser actions in order. |
| Video | The recording. |
| Inspector | Network requests, Thoughts and Console messages. |
A run that used a scenario names it in the title, as in Checkout → Annual plan (v3).
Steps
Each node in the flow is one step with its own status.
A badge shows how a step ran.
| Badge | Meaning |
|---|---|
| Cached | The step replayed from the cache. |
| Heal | A cached action failed, Cofactor repaired it, and the replay finished. |
| Playbook | A playbook session did the step. |
| Wait shortcut | A wait-only cache entry resolved the step without the full agent. |
| Agent | An agent did the step. Hover the badge for the reason. |
See Self-healing.
Assertion results
The run summary counts each assertion result, and each step lists its own. A warn result does not fail the run. A row for a failed fail or fatal assertion has Link issue. See Assertions.
Video
A run with no video shows the first step's screenshot when there is one. With neither, the area reads Recording in progress… while the run is going and No recording available after.
Cancel a run
- In Flow Designer, select Stop Run.
- On a test run, select Cancel Run in the header.
- From the CLI, run
cofactor workflow cancel <run id>orcofactor test-suite cancel <execution id>.
Debug a failed run
- Open the failed step on the Summary tab. Read its assertion results and error.
- Check Console and Network in the inspector.
- Use the video and the Timeline tab to see what the browser showed.
- Select Diagnose root cause on a failed run for an analysis. The button reads View analysis while the analysis runs, and the summary shows the root cause when it finishes.
- For a test run with several failures, read the triage first. See Triage.
From a terminal:
cofactor workflow debug <run id> cofactor workflow runs diagnostics <workflow id> <run id>
Run cofactor workflow debug --help for its sub-commands.