Skip to main content
Ask AI

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.

LayerWhat it isWhere it runs
@testrelic/playwright-analyticsPlaywright custom reporter — captures navigation timelines, network stats, console output, failure diagnostics, and CI metadataLocally, alongside your Playwright tests
Cloud PlatformDashboard for visualizing test data, running AI analysis, monitoring quality gates, and connecting toolstestrelic.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
Use your AI assistant
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 /testrelic slash 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:

  1. Install: npm install --save-dev @testrelic/playwright-analytics
  2. Add the reporter to playwright.config.ts
  3. Run your tests — reports are written to ./test-results/

Installation guide

With the cloud platform

Get AI insights, monitoring, and the full session workspace:

  1. Sign up at testrelic.ai
  2. Complete the onboarding wizard
  3. Add your API key to the reporter config
  4. Run your tests — data uploads automatically

Cloud Platform Quickstart


Plans

Starter ($5/mo)Growth ($20/mo)
SDK reporters (Playwright + Appium)
Cloud platform
AI insights & Ask AI
Storage500 MB1 GB
Data retention14 days30 days

Full plan comparison


Testing with Appium / mobile?

For Android and iOS mobile testing with WebdriverIO, see the Appium Introduction.

Loading chart…
Was this page helpful?
Last updated on by Srivishnu Ayyagari