Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XRay: Problem exporting Cucumber tests using REST API - spurious characters exported

Justin Blandford May 15, 2019

I am able to trigger the XRay export/cucumber REST endpoint to export a feature file via Postman.  The feature file is fully exported however there are some spurious characters before the body payload and after it:-

The characters are in the form :-

PKFQ ..�

etc.

Has anyone seen this before as it is generating a feature file for me that cucumber can't parse?  

1 answer

0 votes
Inês Silva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2019

Hi Justin,

The result of exporting to Cucumber is a ZIP file.
What you're seeing is not caused by the wrong encoding, you need to unzip the file to get the feature file(s).

When importing use this:

curl --request GET --url 'https://xray.cloud.xpand-it.com/api/v1/export/cucumber?keys=XXX-0000' --headers 'Accept-Encoding: UTF-8' --header "Authorization: Bearer ${token}" --header 'Cache-Control: no-cache' --header 'Content-Type: application/json' --output 
XXX-0000.zip

Any other question please contact us through our support portal.

Best regards,
Xray Team

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events