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.
Playwright run
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.
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.
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.
The code comes first in the title. The rest of the title is yours.
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
- Enable API access and generate the API token under My Profile.
- Set up the project, the test run and its test cases.
- 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
- Install the reporter and fill in the .env file.
- Add the reporter to the config and set screenshot to 'on'.
- 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
- Open the test run after the Playwright run.
- Compare Chromium, WebKit and Firefox results for each case.
- 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
- Click the Playwright icon on the Test Case List page.
- Review, edit, copy or download the script from the AI Playwright Assistant.
- 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.
- If you're starting fresh, run
npm init playwright@latest, thennpx playwright testto check the example runs. - In the Playwright root directory, run
npm i playwright-qatouch-reporter.
- In QA Touch, open My Profile and generate your API token. The API must be enabled.
- Create a
.envfile in the Playwright root. - Set
QATOUCH_DOMAIN,QATOUCH_API_TOKEN,QATOUCH_PROJECT_KEYandQATOUCH_TESTRUN_ID.
- In
playwright.config.js, setreporterto[["html"], ["playwright-qatouch-reporter"]]. - In the
usesection, setscreenshotto'on'.
- Start each test title with its QA Touch TR code, for example
TR0035. - Run
npx playwright test. - 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.
What do I need before I start?
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.
How do I link a Playwright test to a QA Touch test case?
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.
Which browsers are tracked?
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.
Are screenshots and execution time captured?
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.
Can QA Touch generate Playwright scripts?
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.
Where do I find the project key and test run ID, and does anything sync back?
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.