Javascript 在TestRail中集成Cypress
我一直试图将我的Cypress测试上传到他们匹配的TestRail测试用例中,但到目前为止还没有成功Javascript 在TestRail中集成Cypress,javascript,cypress,qa,testrail,Javascript,Cypress,Qa,Testrail,我一直试图将我的Cypress测试上传到他们匹配的TestRail测试用例中,但到目前为止还没有成功 以下是我当前的设置: 我已安装: 柏树 cypress testrail reporter 在我的cypress.json文件中,我有: { "baseUrl": "my website URL", "projectId": "my project ID", "reporter": "cypress-testrail-reporter", "reporter
以下是我当前的设置: 我已安装:
- 柏树
- cypress testrail reporter
{
"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.only的it()
在TestRail中,我有以下设置:
- API已启用
- 我有一个自定义API密钥(在config.json中使用)
- 我是一个管理员用户
- 有一个编号为C170的测试用例
cypress run--record--key我的记录键来自cypress
:
- 测试将显示在Cypress仪表板中
- 测试不会出现在TestRail仪表板中
BAD: "domain": "https://customName.testrail.io"
GOOD: "domain": "customName.testrail.io"
平心而论,它被称为域,而不是URL,因此我认为删除https是有意义的您还应该从CLI而不是Cypress测试运行程序运行测试