Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

error message when trying to upload testcafe execution JSON output file to Xray for Jira (Cloud)

We are doing automation testing in TestCafe, JSON file has been provided by the test team, error message received stating "File in wrong format" when trying to upload, does anyone have experience of uploading execution results from testCafe to Xray for Jira, are there any other methods that can be used?

1 answer

1 accepted

0 votes
Answer accepted

It could be that the JSON file provided was created for the Xray Server version rather than Xray Cloud version.

I'm presently building a TestCafe Xray Cloud JSON reporter plugin and have found that the Cloud JSON format differs from the Server JSON format.

Also, the JSON file has to be uploaded using the API, not imported through the Jira Xray client UI.

https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST+v2

can you please advise if this plug in needs to be installed at testcafe side or Xray/Jira?  I am assuming this is at testcafe side which leads me to the next question, is this compatible with the free version of Testcafe or would this only work with testcafe studio. Thanks in advance for your help 

Like Paul M Edwards likes this

Hello Kathryn,

Yes, it needs to be added to the TestCafe project as a dependency, then configured to be used. It can be configured to automatically upload the JSON report to your Xray Cloud instance.

I just published it to NPM, so you can start using it easily immediately:
https://www.npmjs.com/package/testcafe-reporter-xray-cloud-json

It is certainly compatible with the free version of TestCafe as that's what I'm using! :)

Paul

Like Kathryn Bowles likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

165 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you