首页 > 解决方案 > 使用 salty- / cypress-testrail-reporter

问题描述

我正在尝试使用 cypress-testrail-reporter 但这似乎根本没有触发。我将 cypress.json 设置为:

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

我还验证了 projectID 和 suiteID。然而,当我运行 cypress 测试时,我从来没有看到任何东西出现在 testrail 中。是否有人能够处理这个问题,或者指导我需要做什么或者我可以在哪里看到测试轨中的结果?

标签: cypresstestrail

解决方案


你的配置看起来是正确的——为了让它工作,我唯一要做的就是从 Testrail 本身启用 API 访问。

打开 Testrail,转到Administration=> Site Settings=>API并选中Enable API复选框。


推荐阅读