TestRelic for Playwright
TestRelic is an AI-driven Testing Observability Platform for engineering teams. The Playwright SDK reporter captures rich test analytics from your browser test runs and sends them to a cloud platform for AI analysis, monitoring, and integrations.
| Layer | What it is | Where it runs |
|---|---|---|
@testrelic/playwright-analytics | Playwright custom reporter — captures navigation timelines, network stats, console output, failure diagnostics, and CI metadata | Locally, alongside your Playwright tests |
| Cloud Platform | Dashboard for visualizing test data, running AI analysis, monitoring quality gates, and connecting tools | testrelic.ai |
What does @testrelic/playwright-analytics capture?
Add it as a reporter in playwright.config.ts and it automatically:
- Captures step-by-step navigation timelines (goto, link clicks, SPA routes, hash changes).
- Records network requests, response sizes, and timing per navigation.
- Captures console output and performance metrics.
- Detects CI environment context (GitHub Actions, GitLab CI, Jenkins, CircleCI).
- Uploads structured test run data to the TestRelic cloud platform.
- Generates local browser, API, and unified reports for offline use.
Requirements:
- Node.js ≥ 18
- Playwright ≥ 1.40
npm install --save-dev @testrelic/playwright-analytics
Install @testrelic/playwright-analytics in this project and add it to playwright.config.ts
with outputPath: './test-results/analytics-timeline.json' and includeNetworkStats: true.
Also update my test files to import from '@testrelic/playwright-analytics/fixture'.
Cloud Platform
The TestRelic cloud platform (testrelic.ai) receives data from the SDK reporter and provides:
- Test Runs Dashboard — Run history with CI badges, filters, and session drill-down.
- Session Workspace — DevTools-style inspection with video, steps, console, network, and performance panels.
- AI Intelligence — Ask AI in natural language, get automated session insights, and generate test reports and plans.
- Test Navigation — Pathfinder and tree-view maps of browser flow coverage.
- Monitoring — Smoke, regression, and nightly observatory dashboards for quality gates.
- Integrations — Native connections to GitHub Actions, Jira, Grafana Loki, Amplitude, and the Slack App for
/testrelicslash commands and scheduled QA digests.
See Cloud Platform Overview for the full feature set.
AI assistants: use the TestRelic MCP server in Cursor or other MCP clients so your assistant can read runs, coverage gaps, and failure context from the same cloud data—after you authenticate with an MCP token.
Getting started
Local reporting only
Generate structured test reports locally without the cloud platform:
- Install:
npm install --save-dev @testrelic/playwright-analytics - Add the reporter to
playwright.config.ts - Run your tests — reports are written to
./test-results/
With the cloud platform
Get AI insights, monitoring, and the full session workspace:
- Sign up at testrelic.ai
- Complete the onboarding wizard
- Add your API key to the reporter config
- Run your tests — data uploads automatically
Plans
| Starter ($5/mo) | Growth ($20/mo) | |
|---|---|---|
| SDK reporters (Playwright + Appium) | ✓ | ✓ |
| Cloud platform | ✓ | ✓ |
| AI insights & Ask AI | — | ✓ |
| Storage | 500 MB | 1 GB |
| Data retention | 14 days | 30 days |
For Android and iOS mobile testing with WebdriverIO, see the Appium Introduction.