QA TOUCH + CYPRESS
Run Cypress, see the results in your QA Touch test run
Add the QA Touch reporter to your Cypress project and tag each test with its QA Touch key. Every Cypress run then updates the matching test cases.
Setup: reporter package, test run details, keyed test titles
Cypress runs the tests. QA Touch keeps the record.
Your Cypress specs already check the app. The QA Touch reporter carries each outcome to the test case it belongs to, inside the test run your team reports from.
-
Problem: Results from a Cypress run are copied into QA Touch by hand.
With the integration: The reporter syncs the results into the QA Touch test run and updates the case statuses.
-
Problem: It’s unclear which spec covers which test case.
With the integration: A QA Touch key in each test title links the test to its case.
-
Problem: Reporter settings are easy to get wrong.
With the integration: The Cypress config button on the test run shows the details to copy.
npx cypress run
Illustrative sample data. Test names are examples.
What the integration does
Five capabilities from QA Touch’s Cypress guides, from the first config to the updated test run.
Config from the test run
Open a test run, click the Cypress config button, and copy the API key and details from the popup.
A reporter in your config
Set the reporter and four options: domain, apiToken, projectKey and the test run key.
Tests linked by key
Put a QA Touch Test Result key or Test Case key in each test title to link it to its case.
Results sync after the run
After npx cypress run, the results are synced to the QA Touch test run and the case statuses are updated.
Your usual Cypress commands
Run all specs, a single spec, or headed in Chrome or Firefox. The guide’s run commands all report the same way.
From Cypress spec to updated test case
Step through the flow. The screens are schematic, drawn from the labels in the guides, not screenshots.
Your project terminal
Add Cypress and the QA Touch reporter
Install Cypress as a dev dependency, then install the QA Touch reporter package with npm.
The guides name different packages. Use the one shown in your QA Touch Cypress config popup.
QA Touch Test run → Cypress config
Copy the details from the test run
Open the project's test run and click the Cypress config button. Copy the API key and the other details from the popup.
Your project cypress.config.js
Set the reporter and its options
In your Cypress config, set the reporter and paste the four values from the popup.
QA Touch Test Result page → Details tab
Put a QA Touch key in each test title
Use the Test Result key or the Test Case key from the Details tab, in square brackets at the start of the title.
For a case key, the title starts [QATouch-CASE…] instead.
Your project npx cypress run → QA Touch test run
Run Cypress, then check the test run
After the run, the results are synced to the QA Touch test run and the matching case statuses are updated. Check them in QA Touch.
Illustrative sample data. The key and test names are examples.
What changes for your QA team
Specs stay in your repository. The outcomes show up in the test run.
No copying results
Statuses move from Cypress to QA Touch on their own, so nobody retypes pass and fail.
Every spec traces to a case
The key in the title ties each automated test to a QA Touch case, visible in the code and in the run.
One place to report from
Automated results sit in the same test run as the rest of your testing, ready for the team to review.
Configuration from the source
The details come from the test run’s own Cypress config popup, so keys and tokens aren’t guessed.
Who uses it, and for what
Choose a role to see a scenario the integration supports.
A new automated suite needs a run
The team is starting Cypress automation and wants results to land in a QA Touch test run.
What they do
- Generate an API key under My Profile.
- Open the test run and click the Cypress config button.
- Share the popup's details with the automation engineer.
Result: the engineer has the exact domain, token and keys for that run.
Existing specs need to report
You maintain Cypress specs and want them tied to QA Touch cases.
What they do
- Add the reporter and its options to the Cypress config.
- Copy each case's key from the Test Result page's Details tab.
- Put the key at the start of the matching test title.
Result: each run updates the cases the titles point to.
Reviewing an automated run
You need to know how many cases passed before sign-off.
What they do
- Open the test run in QA Touch after the Cypress run.
- Check the updated case statuses.
- Investigate the failures.
Result: the run reflects the latest Cypress outcome without manual updates.
You fixed something and want to re-check
You changed code and want to confirm the affected specs pass.
What they do
- Run the affected spec with npx cypress run --spec.
- Open the QA Touch test run.
- Confirm the case status changed.
Result: the fix is confirmed in the same run the QA team reports from.
Set it up in four parts
These steps follow QA Touch’s Cypress guide for Cypress 10 and later, with details from the reporter guide.
Before you start
- A working Cypress project with Node.js and npm.
- A QA Touch project with a test run and test cases.
- An API key from My Profile in QA Touch.
QA Touch’s three Cypress guides differ on the reporter package name, the config file (cypress.json or cypress.config.js), the test run option name and the test title format. Follow the details in your own Cypress config popup, and use the matching guide.
- Change to your project directory.
- Install Cypress:
npm install cypress --save-dev. - Run
npx cypress opento configure E2E testing and create a spec. - Install the QA Touch reporter package named in your QA Touch popup.
- Log in to QA Touch and generate an API key under My Profile.
- Open your project's test run.
- Click the Cypress config button.
- Copy the API key and details from the popup.
- Open
cypress.config.js. - Set the reporter to the package from the popup.
- Under reporterOptions, set
domain,apiToken,projectKeyand the test run key. - Keep the token private. The reporter guide suggests a CI secret store for shared repositories.
- In QA Touch, open the Test Result page and its Details tab to find the keys.
- Start each test title with
[QATouch-KEY]for a Test Result key, or[QATouch-CASEKEY]for a Test Case key. - Run
npx cypress run, or add--spec path/to/file, or--headed --browser chrome. - Check the results in the QA Touch test run.
Specs keyed? See how results reach the run.
Questions about the Cypress integration
Answers are based on QA Touch’s Cypress guides.
What does the QA Touch Cypress integration do?
A QA Touch reporter in your Cypress project syncs Cypress results into a QA Touch test run and updates the statuses of the matching test cases.
Where do I get the reporter settings?
Open the test run in QA Touch and click the Cypress config button. The popup shows the API key and details to copy. You can generate an API key under My Profile.
How does a Cypress test find its QA Touch case?
With a key at the start of the test title. The Cypress 10+ guide uses [QATouch-KEY] for a Test Result key and [QATouch-CASEKEY] for a Test Case key, both found on the Test Result page under the Details tab.
Which package and Cypress version should I use?
QA Touch’s guides differ. The older guide installs Cypress 9.7.0 and cypress-qatouch-reporter with cypress.json, and the Cypress 10+ guide uses cypress.config.js and a different package. Use the package shown in your QA Touch popup, don’t mix examples from different packages, and check the guide that matches your Cypress version.
When are results posted?
After you run Cypress. The reporter guide says results post only when the configuration, credentials, project, test run and test identifiers are valid, so check the test run in QA Touch after the command finishes.
What are the system requirements?
You need a Cypress project with Node.js and npm. The reporter guide lists Node.js 22 or later for its package, and the older guide shows Ubuntu libraries for Cypress 9.7.0. Check the guide for your version.
Does anything come back from QA Touch to Cypress?
The guides describe results going from Cypress into QA Touch only. They don’t describe screenshots or failure details being sent, or any sync back to Cypress.
Connect Cypress to QA Touch
Add the reporter, key your tests, and let the next Cypress run update your test run.