From test run to heatmap in 10 minutes.
No Instrumentation Required
The heatmap goes live.
Five steps. Works with the Playwright, Selenium or Cypress tests you already have.
Create your workspace
Go to https://testmap.cloud/signup.
Choose a workspace name using lowercase letters, digits, and hyphens. It must be 3–63 characters long.
Your workspace will become: <name>.testmap.cloud
Enter your workspace name and work email.
Open the verification link sent to your email, set your owner password (8+ characters), and activate your workspace.
Note: The verification link expires after one hour. If it expires, email support@appsurify.com using the same email address to reactivate it.
Create a project
Sign in to your workspace: <name>.testmap.cloud
Click + in the Projects sidebar.
Enter a project name.
Important: CI uploads are matched by the exact project name, including case. Choose a name you will not need to rename.
Install the plugin for your framework:
npm i -D @appsurify-testmap/rrweb-playwright-plugin
Add the reporter to the reporters you already have in playwright.config.ts (do not replace them).
Reports are written to test-results/playwright/ui unless you set outputReportDir:
export default defineConfig({
reporter: [
['list'],
['@appsurify-testmap/rrweb-playwright-plugin/reporter'],
],
use: {
testmap: { outputReportDir: 'test-results/playwright/ui' }, // optional
},
});
In every spec file, import test and expect from the plugin instead of @playwright/test.
If you have your own fixtures via test.extend, extend the plugin’s test. Only tests that use the page fixture are recorded.
import { test, expect } from '@appsurify-testmap/rrweb-playwright-plugin';
Note: Do not pass --reporter=… on the command line. It replaces the config reporters and no report archive is produced.
npm i -D @appsurify-testmap/rrweb-selenium-plugin selenium-webdriver
Wrap the driver once:
import { attach } from '@appsurify-testmap/rrweb-selenium-plugin';
const driver = attach(await new Builder().forBrowser('chrome').build());
// or, once for every Builder: enableAutoAttach(Builder)
Then register the plugin with your test runner:
Mocha
require: [
'@appsurify-testmap/rrweb-selenium-plugin/mocha'
]
Jest
globalSetup: '@appsurify-testmap/rrweb-selenium-plugin/jest-setup',
setupFilesAfterEnv: [
'@appsurify-testmap/rrweb-selenium-plugin/jest',
],
globalTeardown: '@appsurify-testmap/rrweb-selenium-plugin/jest-teardown'
Vitest
test: {
globals: true,
setupFiles: ['@appsurify-testmap/rrweb-selenium-plugin/vitest'],
globalSetup: ['@appsurify-testmap/rrweb-selenium-plugin/vitest-teardown'],
}
node:test
--import @appsurify-testmap/rrweb-selenium-plugin/node-test
Selenium 4 with the JavaScript (Node.js) bindings. Classic WebDriver is all it needs — no BiDi session required.
Install the TestMap plugin
npm i -D @appsurify-testmap/rrweb-cypress-plugin
Two files: 1. cypress.config.ts
// cypress.config.ts
import registerRRWebReportTasks from '@appsurify-testmap/rrweb-cypress-plugin/reporter';
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
registerRRWebReportTasks(on, {
...config,
outputReportDir: 'test-results/cypress/ui',
});
return config;
},
},
});
2. cypress/support/e2e.ts
// cypress/support/e2e.ts
import { initializeTestmap } from '@appsurify-testmap/rrweb-cypress-plugin';
initializeTestmap();
Note: Cypress 14 and 15. The report archive is built when cypress run finishes; cypress open does not produce it.
Run your tests as usual:
The plugin records a DOM snapshot for each test and writes one JSON file per test. When the run finishes, the reporter bundles them into ui-coverage-reports.zip in the report folder.
What the plugin records:
Page structure, element selectors and the interactions your tests perform. It never reads your source code.
Upload the report
First time: drag and drop. Open the project → Add Testrun, name the run, drop ui-coverage-reports.zip (or individual .json files) and click Create.
Every time: from CI. Create a personal access token under your avatar → Personal Access Tokens.
https://github.com/marketplace/actions/testmap-ui-coverage-upload
The action automatically finds report folders created by the Playwright,
Selenium, and Cypress plugins.
It creates one Test Run for the workflow and links the result in the
GitHub job summary.
1. Create a Personal Access TokenIn TestMap:
- Open your profile/avatar in the top-right corner.
- Select Personal Access Tokens.
- Create a token.
- Copy the token.
The token is shown only once and starts with:
tmap_
2. Add the token to GitHub SecretsIn your GitHub repository:
- Open Settings.
- Go to Secrets and variables.
- Select Actions.
- Add a repository secret.
Secret name:
TESTMAP_TOKEN
Paste your TestMap token as the secret value.
3. Add the upload step to your workflow
- run: npx playwright test
- name: Upload UI coverage to TestMap
if: ${{ !cancelled() }}
uses: appsurify/testmap-upload-action@v1
with:
url: https://<name>.testmap.cloud
token: ${{ secrets.TESTMAP_TOKEN }}
project: Your project name
Replace:
<name>with your TestMap workspace name.Your project namewith the exact project name in TestMap, including case.
The upload step runs even when tests fail, unless the workflow is cancelled.
Optional inputs
testrun-name— Defaults to the workflow name, run number, and branch.path— Defaults to the report folders for the three supported plugins.if-no-files-found— Controls what happens when reports are missing.fail-on-error— Controls whether upload errors fail the workflow.timeout— Controls the upload timeout.
Source and documentation
GitHub Action source:
https://github.com/Appsurify/testmap-upload-action
Marketplace:
https://github.com/marketplace/actions/testmap-ui-coverage-upload
Upload reports from GitLab, Jenkins, or any CI system
If your CI system supports curl, you can upload your TestMap report using the import API.
1. Create a Personal Access Token
In TestMap:
Open your profile/avatar in the top-right corner.
- Select Personal Access Tokens.
- Create a token.
- Copy the token.
The token starts with:
tmap_
Store it securely as a CI secret named:
TESTMAP_TOKEN
2. Upload your report
curl -X POST "https://<name>.testmap.cloud/api/v1/reports/import" \
-H "Authorization: Bearer $TESTMAP_TOKEN" \
-F "project_name=Your project name" \
-F "testrun_name=Nightly Run #1" \
-F "files=@test-results/playwright/ui/ui-coverage-reports.zip"
Replace:
<name>with your TestMap workspace name.Your project namewith the exact project name, including case.Nightly Run #1with your preferred Test Run name.- The report path with the location of your generated ZIP.
Important
project_namemust match an existing TestMap project exactly, including case.testrun_nameis optional. If omitted, TestMap usesCI Import.- Each upload creates a new Test Run.
- One CI run should correspond to one Test Run.
- TestMap does not create projects through the import endpoint.
- Use the multipart field
files, notfile. - An expired token returns HTTP 401.
- A project name that does not exist can return HTTP 200 with
success: falseandPROJECT_NOT_FOUND.
Check the response body to confirm the upload succeeded.
Report path For Playwright:
test-results/playwright/ui/ui-coverage-reports.zip
For Selenium:
test-results/selenium/ui/ui-coverage-reports.zip
For Cypress:
test-results/cypress/ui/ui-coverage-reports.zip
Use the report path generated by your selected plugin.
Add traffic. See what matters.
DOM Coverage works without Google Analytics. Behavioral Coverage, priority buckets and the Test Efficiency Score need it. Setup takes about 5 minutes if you administer GA4. Otherwise, send the access request below.
Do not skip item 3 of Step 6: without the custom dimension the integration looks configured but no data arrives.
There are five instructions:
- Enable the Google Analytics Data API in Google Cloud, create a service account (for example testmap-ga-reader) and download its JSON key.
- In GA4, Admin → Property access management: add the service account email with the Viewer role. A Google Cloud IAM role does not grant this.
- In GA4, Admin → Custom definitions → Create custom dimension: scope Event, event parameter exactly selector.
- In TestMap, open the project → Settings and paste the numeric GA Property ID (Admin → Property details — not the G-XXXX Measurement ID) and the full JSON key.
The field also accepts properties/123… or the GA property URL. - Add the TestMap event tracker to your site so GA4 receives element-level events:
<script src="https://cdn.jsdelivr.net/npm/@appsurify-testmap/google-custom-event-tracker@0.13.0/dist/google-custom-event-tracker.umd.js"></script>
<script>
window.GoogleCustomEventTracker.initTracker({
send(payload) {
gtag("event", "ui_event", payload);
},
});
</script>
Not the GA4 admin? Send this.
Copy the email below and send it to your Google Analytics administrator.
Subject: Read-only Google Analytics access for TestMap (10 minutes)
Hi — we are connecting our test suite to TestMap so the untested parts of the site are ranked by real traffic. It needs three things on GA4 property [property name], all read-only or additive: Admin → Property access management: add [service-account email] as Viewer. Admin → Custom definitions → Create custom dimension: scope Event, event parameter selector (needs Editor; nothing existing changes). Numeric Property ID from Admin → Property details. TestMap never writes to the property. The tracker sends hashed element selectors, not form values. Thanks.
Read your first heatmap
Open the project → the test run → a page. You will see Coverage (share of interactive elements touched by tests), the Efficiency Score once GA4 is flowing, and the priority buckets. Traffic is read over the last seven days.
Tests pass but no JSON files appear
The spec file still imports test from @playwright/test, the test does not use the page fixture, or --reporter=... was passed on the command line.
Cypress: initializeTestmap() is missing from cypress/support/e2e.ts.
Selenium: the driver is not wrapped in attach().
JSON files exist but ui-coverage-reports.zip does not
Cypress: the run used cypress open; the archive is only built by cypress run.
The upload returned 200 but no run appears
The import endpoint does not create projects.
Two other common causes: the form field is files, not file; and an expired token returns 401.
The GitHub Action checks all of this for you: it fails the step on PROJECT_NOT_FOUND or 401 and warns when no report files are found (same causes as item 1).
GA4 is connected but the overlay and Efficiency Score stay empty
In order of likelihood: the selector custom dimension is missing (the Data API returns “Field customEvent selector is not a valid dimension”); the G-XXXX Measurement ID was pasted instead of the numeric Property ID; the service account was not added under Property access management; the Data API is not enabled; the dimension is under 48 hours old; hashSelector was turned off.
GA4 is set up correctly and the overlay is still empty
Does TestMap see my source code?
What TestMap records — and what it never does.
Does TestMap change my tests?
What does the GA4 tracker send?
Which CI systems are supported?
Ready to install?
Free workspace at testmap.cloud. DOM coverage in 10 minutes. Both layers in 15.
