QA TOUCH + PLAYWRIGHT

Sync Playwright results to your QA Touch test run

Add the playwright-qatouch-reporter and start each test title with its TR code. When npx playwright test finishes, the results reach the test run, with screenshots and per-browser outcomes.

Setup: one npm package, four .env values, one reporter line

Playwright runs the browsers. QA Touch keeps the record.

One Playwright run can cover Chromium, WebKit and Firefox. The reporter carries each outcome to the QA Touch test run your team reports from, so nobody rebuilds it by hand.

  • Problem: Results from a Playwright run are copied into QA Touch by hand.

    With the integration: The reporter syncs them to the test run after npx playwright test finishes.

  • Problem: A test passes in one browser and fails in another, but the record shows one outcome.

    With the integration: Version 2.0 tracks results separately for Chromium, WebKit and Firefox.

  • Problem: Failure evidence sits in a Playwright report, away from the test case.

    With the integration: With screenshots set to on, they attach to the matching test cases.

Illustrative sample data. Test names, browsers and outcomes are examples.

What the integration does

Five capabilities from QA Touch’s Playwright guide for version 2.0.

Tests mapped by TR code

Start a test title with its QA Touch TR code, such as TR0035. The playwright-qatouch-reporter sits next to Playwright’s HTML reporter and sends results to the test run when the suite finishes.

npmTR code

Results for each browser

Chromium, WebKit and Firefox are tracked separately, so you can compare pass and fail status, errors and behavior browser by browser.

ChromiumWebKitFirefox

Screenshots on the case

Set screenshot to ‘on’ in the Playwright config. The screenshots Playwright generates are attached to the matching QA Touch test cases.

Time spent, tracked

Execution time is recorded for each test case and for each browser it ran in.

Scripts from test cases

Optional. The AI Playwright Assistant drafts a script from a test case’s title, description, preconditions, references and steps. You review it before use.

From npm install to results in the test run

Step through the flow. The screens are schematic, drawn from the snippets and labels in the Playwright guide.

Your project terminal

Install the QA Touch reporter

With Playwright set up and Node.js 18 or later, install the reporter package in the Playwright root directory.

Your project .env

Add four values to .env

Create a .env file in the Playwright root with your domain, API token, project key and test run ID.

Your project playwright.config.js

Add the reporter and turn screenshots on

List the QA Touch reporter next to the HTML reporter. Set screenshot to 'on' so screenshots can attach to test cases.

Your project test file

Start each test title with its TR code

The code ties the test to its QA Touch test case. The guide gives the format as TRXXXX, for example TR0035.

Your project npx playwright test QA Touch test run

Run the tests, then open the test run

When the run finishes, results sync to the test run. Look for per-browser outcomes, attached screenshots and time spent.

Illustrative sample data. Test names, codes and values are examples.

What changes for your QA team

Tests stay in your repository. Outcomes show up in the test run.

No retyping after a run

Results travel from Playwright to QA Touch through the reporter, so pass and fail aren’t entered twice.

Browser differences are visible

A failure that only shows up in one browser isn’t hidden behind a single combined result.

Failures arrive with evidence

Whoever opens a failed case sees the screenshot Playwright captured, without hunting through the HTML report.

Slow spots show up

With time recorded per case and per browser, you can see which tests take longest and where.

Who uses it, and for what

Choose a role to see a scenario the integration supports.

A Playwright suite needs a run to report to

The team automates in Playwright and wants the results in QA Touch.

What they do

  1. Enable API access and generate the API token under My Profile.
  2. Set up the project, the test run and its test cases.
  3. Pass the domain, token, project key and test run ID to the engineer.

Result: the engineer has the four values the reporter reads from .env.

Existing tests need to report

You maintain a Playwright suite and want it to feed QA Touch.

What they do

  1. Install the reporter and fill in the .env file.
  2. Add the reporter to the config and set screenshot to 'on'.
  3. Put the TR code at the start of each test title.

Result: every npx playwright test run syncs to the test run.

Checking cross-browser results before sign-off

You need to know whether a case holds in every browser.

What they do

  1. Open the test run after the Playwright run.
  2. Compare Chromium, WebKit and Firefox results for each case.
  3. Look at time spent and the attached screenshots for the failures.

Result: a clear view of which browsers need attention.

A written test case needs a script

You have the case in QA Touch and want a Playwright starting point.

What they do

  1. Click the Playwright icon on the Test Case List page.
  2. Review, edit, copy or download the script from the AI Playwright Assistant.
  3. Place it in the project's tests folder.

Result: a draft script built from the case's own steps.

Set it up in four parts

These steps follow QA Touch’s Playwright integration guide.

Before you start

  • Node.js 18 or later, and Playwright installed.
  • A QA Touch account with API access enabled.
  • A QA Touch project with a test run and test cases.

The guide doesn’t say where to find the project key and test run ID, which reporter versions it supports, or any reporter options beyond the four .env values. Treat the API token as a secret and keep it out of version control.

  1. If you're starting fresh, run npm init playwright@latest, then npx playwright test to check the example runs.
  2. In the Playwright root directory, run npm i playwright-qatouch-reporter.
  1. In QA Touch, open My Profile and generate your API token. The API must be enabled.
  2. Create a .env file in the Playwright root.
  3. Set QATOUCH_DOMAIN, QATOUCH_API_TOKEN, QATOUCH_PROJECT_KEY and QATOUCH_TESTRUN_ID.
  1. In playwright.config.js, set reporter to [["html"], ["playwright-qatouch-reporter"]].
  2. In the use section, set screenshot to 'on'.
  1. Start each test title with its QA Touch TR code, for example TR0035.
  2. Run npx playwright test.
  3. Open the test run in QA Touch to see the synced results.

Related guides: capture a browser session as QA Touch test cases with the Playwright Claude skill (opens in a new tab). It uses Claude Desktop, Playwright MCP and the QA Touch MCP server, and is separate from the reporter.

Set up? See how results reach the run.

Questions about the Playwright integration

Answers are based on QA Touch’s Playwright integration guide.

What does the QA Touch Playwright integration do?

The playwright-qatouch-reporter syncs Playwright results to a QA Touch test run after npx playwright test finishes. Tests are matched to QA Touch by a TR code at the start of the test title.

Node.js 18 or later, Playwright, and a QA Touch account with API access enabled. You generate the API token under My Profile in QA Touch.

Start the test title with the TR code, in the format TRXXXX, such as TR0035. The guide calls it a test run code, and it doesn’t say where to find the code in the app.

Version 2.0 tracks results separately for Chromium, WebKit and Firefox, so you can compare status, errors and behavior across them. Which browsers run is decided by your Playwright setup.

Yes. With screenshot set to ‘on’ in the config’s use section, Playwright’s screenshots attach to the matching test cases. Time spent is recorded per test case and per browser.

Optionally. Click the Playwright icon on the Test Case List page to open the AI Playwright Assistant. It uses the case’s title, description, preconditions, references and steps. You can review, edit, copy or download the script.

The guide doesn’t say where to find them. Results go from Playwright to QA Touch, and no sync back is described.

Connect Playwright to QA Touch

Install the reporter, start your test titles with TR codes, and let the next run sync to your test run.