QA Touch Cypress reporter connects with Cypress, an open-source test automation tool. Fast, easy and reliable testing for anything that runs in a browser. Cypress has been made specifically for developers and QA engineers, to help them get more done.
You can sync your cypress.io automation test results to QA Touch with our handy QA Touch reporter. The steps are below:
cd /your/project/path
Execution command : npx cypress run
Go To Latest Cypress 11 + Integration
$ npx cypress -v
Cypress package version: 9.7.0
Cypress binary version: 9.7.0
Electron version: 18.0.4
Bundled Node version: 16.13.2
Github : https://github.com/gitdckap/cypress-qatouch-reporter
$ npm i cypress-qatouch-reporter
"reporter": "cypress-qatouch-reporter",
"reporterOptions": {
"domain" : "your-domain",
"apiToken": "your-token",
"projectKey": "project-key",
"testRunId": "test-run-id"
},
Next, we have to map the Test Run id and the test automation script. Setup the Test Run value in your Cypress test scripts. For example, your test run id is TR0032 then prefix this value in your test script.
The updated sample script will look like below:
Sample Code 1
describe('cypress page', () => {
it('TR0001 should have the right title', () => {
browser.url('https://cypress')
expect(browser).toHaveTitle('cypress · Next-gen browser
and mobile automation test framework for Node.js');
})
})
Sample Code 2
describe('My First Test', () => {
it('TR0003 clicking "type" shows the right headings', () => {
cy.visit('https://example.cypress.io')
cy.pause()
cy.contains('type').click()
// Should be on a new URL which includes '/commands/actions'
cy.url().should('include', '/commands/actions')
// Get an input, type into it and verify that the value has been updated
cy.get('.action-email')
.type('fake@email.com')
.should('have.value', 'fake@email.com')
expect(true).to.equal(true)
})
})
describe('My second Test', () => {
it('TR0004 Does not do much!', () => {
expect(true).to.equal(true)
})
})
Cypress Command
$ npx cypress run