Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 400 creating test run #264

Open
christopher-hitchens opened this issue Oct 25, 2023 · 0 comments
Open

Error 400 creating test run #264

christopher-hitchens opened this issue Oct 25, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@christopher-hitchens
Copy link

TestRail v6.2.3.1114

WebdriverIO v8.8.8

wdio.conf.js:

reporters:
[
  ['testrail',
    {
        projectId: 108,
        suiteId: 14514,
        domain: 'testrail.mydomain.net',
        username: process.env.TESTRAIL_USERNAME,
        apiToken: process.env.TESTRAIL_API_TOKEN,
        runName: 'Automated Test Results',
        oneReport: true,
        includeAll: true
    }
  ]
]

test case:

    it("C95212337 This is my TestRail test case name', async () => {
      expect(true).toBe(false);
    });

wdio.log:

2023-10-25T01:05:55.638Z ERROR TestrailReporter: Failed to get last test run: Request failed with status code 400
2023-10-25T01:07:01.023Z ERROR TestrailReporter: Error getting test run: Request failed with status code 400
2023-10-25T01:07:01.822Z ERROR TestrailReporter: Failed to update test run: Request failed with status code 400
2023-10-25T01:07:02.538Z ERROR TestrailReporter: Failed to update test run results: Request failed with status code 400

I am able to execute another script we wrote with the same credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants