简体   繁体   中英

salty-/cypress-testrail-reporter not posting results to TR

I have my tests written on Cypress. And now need to report results to 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.

Do I need to specify some versions, or what might be failing?

Issue is in 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.'

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