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.
| Artifact | When it is recorded | What it contains |
|---|---|---|
| Endform replay (OpenTelemetry trace) | Automatically on every test attempt that runs | Browser 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.ts | Native 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 value | First attempt (index 0) | First retry (index 1) | Later retries (index 2+) |
|---|---|---|---|
"on" | Always kept | Always kept | Always kept |
"off" | Not recorded | Not recorded | Not recorded |
"retain-on-failure" | Kept only on failure | Kept only on failure | Kept only on failure |
"retain-on-failure-and-retries" | Kept only on failure | Always kept | Always kept |
"retain-on-first-failure" | Kept only on failure | Not recorded | Not recorded |
"on-first-retry" | Not recorded | Always kept | Not recorded |
"on-all-retries" | Not recorded | Always kept | Always 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.ziptraces for that project. Endform replays are still recorded automatically. - Failures-only Playwright tracing: With
use.trace: "retain-on-failure"(orretain-on-first-failure/retain-on-failure-and-retrieson the first attempt), Playwright discards the.ziptrace when the attempt passes or skips. - Excluded attempt number: Modes such as
on-first-retry,on-all-retries, andretain-on-first-failureonly 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:
| Surface | What you can open | Where to start |
|---|---|---|
| Dashboard | Embedded 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 |
| CLI | Step trees, per-span screenshots, network/console/backend details downloaded to disk, plus shareable replay links | endform test-attempt inspect, step, and replay |
| MCP server | Step trees, inline screenshots without filesystem access (remote MCP), and interactive replay players in MCP hosts that support embedded views | test_attempt_inspect, test_attempt_step, and test_attempt_replay |
| Playwright reporters | Direct 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 URL | Custom reporters |
Sharing replay links
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
endof a span by default (to show the step's result), or tostartwhen 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.
Related pages
Last updated