[英]salty-/cypress-testrail-reporter not posting results to TR
I have my tests written on Cypress. 我的测试写在赛普拉斯上。 And now need to report results to TestRail. 现在需要将结果报告给TestRail。 Cypress.json has correct config specified and I see that reporter create new Run in TR correctly, but after test completion results are not posted. Cypress.json已指定正确的配置,并且我看到报告程序可以在TR中正确创建新的“运行”,但是测试完成后的结果不会发布。
Do I need to specify some versions, or what might be failing? 我是否需要指定某些版本,否则可能会失败?
Issue is in testrail.js: 问题在testrail.js中:
...
axios({
method: 'get',
url: this.base + "/get_runs/" + this.projectId,
headers: { 'Content-Type': 'application/json' },
auth: {
username: this.options.username,
password: this.options.password,
}// no request maid
}).then(function (response) {
_this.runId = response.data[0].id;
responce = response.data[0].id;
publishToAPI(); // no request maid
});
...```
Resolved myself. 下定决心。 Issue was that reporter not post results in 'headed mode.' 问题是记者没有以“抬头模式”发布结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.