我一直试图将我的赛普拉斯测试上载到与其匹配的TestRail测试用例中,但是到目前为止,它没有用。
这是我当前的设置:
我已经安装:
在我的 cypress.json 文件中,我有:
{
"baseUrl": "my website URL",
"projectId": "my project ID",
"reporter": "cypress-testrail-reporter",
"reporterOptions": {
"domain": "https://customName.testrail.io",
"username": "myemail@address.com",
"password": "My API key",
"projectId": 2,
"suiteId": 12
}
}
在Cypress中,我有一个 it()块,名为 it.only(“ C170使用错误的凭据”,...)
在TestRail中,我具有以下设置:
然后,当我运行cypress run --record --key my-record-key-from-cypress
时:
知道有什么遗漏吗?
答案 0 :(得分:2)
在 cypress.json 文件
的 reporterOptions 中不要包含 http://BAD: "domain": "https://customName.testrail.io"
GOOD: "domain": "customName.testrail.io"
公平地说,它被称为域,而不是 URL ,因此我删除https很有意义
答案 1 :(得分:2)
您还应该从CLI而不是Cypress测试运行器运行测试。