ReferenceResults

Replays and traces

What replays and Playwright traces Endform records for test attempts, why an artifact can be missing, and how to inspect or share them.

Endform records artifacts at the test attempt level so every initial try and every retry keeps its own visual record and debugging data. For a conceptual walkthrough with live interactive examples, see Replays.

What Endform records

Every test attempt can produce two separate artifacts: an automatic Endform replay and an optional native Playwright trace.

ArtifactWhen it is recordedWhat it contains
Endform replay (OpenTelemetry trace)Automatically on every test attempt that runsBrowser screenshots paired with Playwright steps, click and fill overlays, network activity, console output, page errors, and correlated backend spans when your app propagates W3C traceparent headers
Playwright trace (.zip)Controlled by use.trace in playwright.config.tsNative Playwright trace archive with full DOM snapshots, action log, network, and console for Playwright Trace Viewer

Endform replays are captured with Playwright OpenTelemetry and stay lightweight enough to run on every passing and failing attempt. Enable Playwright's use.trace alongside them whenever you also want full DOM snapshot inspection in Playwright Trace Viewer.

Playwright use.trace options

Endform honors all seven Playwright use.trace modes configured per project in playwright.config.ts:

use.trace valueFirst attempt (index 0)First retry (index 1)Later retries (index 2+)
"on"Always keptAlways keptAlways kept
"off"Not recordedNot recordedNot recorded
"retain-on-failure"Kept only on failureKept only on failureKept only on failure
"retain-on-failure-and-retries"Kept only on failureAlways keptAlways kept
"retain-on-first-failure"Kept only on failureNot recordedNot recorded
"on-first-retry"Not recordedAlways keptNot recorded
"on-all-retries"Not recordedAlways keptAlways kept

Intelligent retries, the extra attempts Endform adds beyond your configured retries, always keep a Playwright trace unless the project sets use.trace: "off", because that trace shows whether the failure was a flake.

Why a trace or replay can be missing

If a test run or test attempt does not show a replay or Playwright trace, one of these conditions applies:

  • Skipped before running: A test skipped at discovery (such as test.skip(...)) never starts a test attempt, so no replay or Playwright trace is recorded.
  • Playwright tracing turned off: Setting use.trace: "off" disables Playwright .zip traces for that project. Endform replays are still recorded automatically.
  • Failures-only Playwright tracing: With use.trace: "retain-on-failure" (or retain-on-first-failure / retain-on-failure-and-retries on the first attempt), Playwright discards the .zip trace when the attempt passes or skips.
  • Excluded attempt number: Modes such as on-first-retry, on-all-retries, and retain-on-first-failure only capture Playwright traces on specific attempts.
  • Past retention: Replays, screenshots, and traces are deleted after 90 days. See Security and data.

Opening and inspecting replays and traces

You can inspect recorded attempts across every Endform surface:

SurfaceWhat you can openWhere to start
DashboardEmbedded replay player, full three-lane OpenTelemetry trace viewer (test steps, browser activity, backend spans), and Playwright Trace Viewer toolbar button (when a Playwright .zip trace was kept)Open any suite run or test run in the dashboard and select an attempt
CLIStep trees, per-span screenshots, network/console/backend details downloaded to disk, plus shareable replay linksendform test-attempt inspect, step, and replay
MCP serverStep trees, inline screenshots without filesystem access (remote MCP), and interactive replay players in MCP hosts that support embedded viewstest_attempt_inspect, test_attempt_step, and test_attempt_replay
Playwright reportersDirect URLs to each attempt's Playwright trace (endformTestAttemptTraceURL) and OpenTelemetry trace (endformTestAttemptOtelTraceURL), on attempts where use.trace keeps a trace. With use.trace: "off", the replay is still in the dashboard but reporters get no URLCustom reporters

Endform can generate signed replay links (for both the full trace viewer and the embeddable player) via the dashboard, CLI (endform test-attempt replay), or MCP (test_attempt_replay):

  • No login required: Anyone with the link can watch the replay, which makes links easy to paste into pull requests, issues, or chat threads.
  • Timeline highlights: Replay links accept up to 20 captioned highlights pinned to specific step span IDs. Highlights anchor to the end of a span by default (to show the step's result), or to start when pointing at the moment before a step ran.
  • Expiration and revocation:
    • Created by an organization member: Works until the replay is deleted 90 days after the test attempt ran (sharing an older replay does not extend this), while that user remains a member of the organization. Removing the member from the organization revokes their shared links automatically.
    • Created with an API key: Valid for 2 hours, because API-key links are not tied to an individual member who can be revoked on departure.

Last updated