简体   繁体   中英

using salty- / cypress-testrail-reporter

I am trying to make use of cypress-testrail-reporter but this does not seem to trigger at all. I have the cypress.json set up as such:

 "reporter": "cypress-testrail-reporter",
  "reporterOptions": {
    "domain": "mrgreentest.testrail.io",
    "username": "email",
    "password": "pass",
    "projectId": 1,
    "suiteId": 1,
    "createTestRun": "true"
  }

I have also verified the projectID and suiteID. Yet when I run my cypress test I never see anything appear in testrail. Has someone been able to work with this or maybe guide me to what needs to be done or where I can see the results in testrail?

Your config looks correct - the only other thing I had to do to get it working was to enable API access from within Testrail itself.

Open Testrail, go to Administration => Site Settings => API and check the Enable API checkbox.

How did you run your tests?

Integration with TestRail works for me when I run them from CLI, not from Cypress Test Runner.

I am also facing the same problem. Enable API checkbox is checked. I have correctly followed the steps. I have already successfully integrated C# code with TestRail for a non angular web application. As David Borg has mentioned, nothing is happening inside TestRail when I run the test.

Thanks in advance for your help.

Sarfraz Khan

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM