Docs/Runs
#

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

TypeWhat it isStart it when
Workflow runOne execution of one flow.You want the result of one flow.
Test runMany 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.

bash
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

StatusMeaning
QueuedWaiting to start.
RunningIn progress.
WaitingTest run row only. The flow reached a Wait node. It resumes on its own.
PassedThe run succeeded.
FailedA step failed, or a fail or fatal assertion failed.
Platform errorThe run could not reach a verdict.
Timed OutThe run timed out.
CanceledThe run was canceled.
SkippedTest run row only. The flow did not run.
DegradedTest 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

PartWhat it shows
HeaderThe flow name and version, status, start and finish times, and the environment.
Summary tabA failure headline or the root-cause diagnosis, the assertion summary, and the step list.
Timeline tabThe browser actions in order.
VideoThe recording.
InspectorNetwork 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.

BadgeMeaning
CachedThe step replayed from the cache.
HealA cached action failed, Cofactor repaired it, and the replay finished.
PlaybookA playbook session did the step.
Wait shortcutA wait-only cache entry resolved the step without the full agent.
AgentAn 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> or cofactor test-suite cancel <execution id>.

Debug a failed run

  1. Open the failed step on the Summary tab. Read its assertion results and error.
  2. Check Console and Network in the inspector.
  3. Use the video and the Timeline tab to see what the browser showed.
  4. 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.
  5. For a test run with several failures, read the triage first. See Triage.

From a terminal:

bash
cofactor workflow debug <run id>
cofactor workflow runs diagnostics <workflow id> <run id>

Run cofactor workflow debug --help for its sub-commands.