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.

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.

Per test run

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.

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.

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

  1. Generate an API key under My Profile.
  2. Open the test run and click the Cypress config button.
  3. 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

  1. Add the reporter and its options to the Cypress config.
  2. Copy each case's key from the Test Result page's Details tab.
  3. 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

  1. Open the test run in QA Touch after the Cypress run.
  2. Check the updated case statuses.
  3. 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

  1. Run the affected spec with npx cypress run --spec.
  2. Open the QA Touch test run.
  3. 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.

  1. Change to your project directory.
  2. Install Cypress: npm install cypress --save-dev.
  3. Run npx cypress open to configure E2E testing and create a spec.
  4. Install the QA Touch reporter package named in your QA Touch popup.
  1. Log in to QA Touch and generate an API key under My Profile.
  2. Open your project's test run.
  3. Click the Cypress config button.
  4. Copy the API key and details from the popup.
  1. Open cypress.config.js.
  2. Set the reporter to the package from the popup.
  3. Under reporterOptions, set domain, apiToken, projectKey and the test run key.
  4. Keep the token private. The reporter guide suggests a CI secret store for shared repositories.
  1. In QA Touch, open the Test Result page and its Details tab to find the keys.
  2. Start each test title with [QATouch-KEY] for a Test Result key, or [QATouch-CASEKEY] for a Test Case key.
  3. Run npx cypress run, or add --spec path/to/file, or --headed --browser chrome.
  4. 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.

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.

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.

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.

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.

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.

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.