Warm tip: This article is reproduced from serverfault.com, please click

Getting error in Xray while uploading JSON with Test Results from wdio cucumber json reporter

发布于 2020-12-02 13:16:59

I can't upload JSON results from wdio-cucumberjs-json-reporter to xray (test execution), there's an error and I'm not sure if it's a problem with reporter package or xray? I tried some other reporters as well but nothing was handy.

Which json-reporter will work fine with newest webdriverIO 6.10.5 ? I want also include Sauce Labs Report links to JSON if possible.

Error message:

Error importing execution results to database: Error de-serializing execution results file -> com.b.a.H: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 at com.b.a.b.a.v.b(Unknown Source) at com.b.a.k.a(Unknown Source) at com.b.a.k.a(Unknown Source) at

Stack: webdriverio, cucumber, sauce-labs, jira-xray I am trying to import results to xray manually.

Questioner
beauvoir
Viewed
0
Sérgio 2020-12-07 22:48:18

This seems to be a bug. We've created an issue in our backlog and it will be handled soon. Please track it here. Note that if you use the REST API it should workk fine though (or one of the CI Plugins which in turn use the REST API)

I've used this content, which contains minor changes so the feature is tagged with a requirement/story issue and a scenario linked back to an existing case, at least in my environment.