XRay: I have a problem with exporting Cucumber tests using REST API

Timmy.Dun
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 11, 2018

I try to use GET /rest/raven/1.0/export/test endpoint to export my Cucumber scenarios to .feature file. But after successful operation I've got file with incorrect encoding, like:

PK  Q«L               1

 

I call:

curl -u <login>:<password> <serverName>/rest/raven/1.0/export/test?keys=<keys> --output "file1.feature"

 

Can you please tell me, how can I solve this issue?

1 answer

0 votes
José Domingues _Xray_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 17, 2018

Hi Timmy,

Could you provide us

  • The file with the incorrect encoding (or at least a screenshot of it)
  • Screenshots of the Cucumber Test(s) that you are trying to export

This way we can try to help you solve this issue.

 

Best regards,

Xpand Add-ons Team

Bruno Quintela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2018

Hi, I've runned into the same problem, have you guys found a fix?

José Domingues _Xray_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 17, 2018

Hi Bruno,

Can you open a ticket in our support system or to provide us with

  • The file with the incorrect encoding (or at least a screenshot of it)
  • Screenshots of the Cucumber Test(s) that you are trying to export

 

Best regards,

Xray Team

Bruno Quintela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2018

Sorry, my bad.. it was a zip file i was trying to open as UTF-8.. not an encoding problem.

 

Cheers, and thanks for your quick response.

Raja Deshapu November 1, 2018

Hi Even I am getting same error mentioned by Timmy. Here I am attaching the sample Xray Test feature file and response from the post man.  what is the issue?

XrayCucumber Test.pngXrayTestResponse.png

Justin Blandford May 15, 2019

Did anyone find a solution to this issue as I'm experiencing the same problem?

José Domingues _Xray_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 17, 2019

Hi,
The output is returned in ZIP format "PK......" so just rename the file from "file1.feature" to "file1.zip" and open it with a zip tool like unzip or other.

If you need further assistance, please open a support ticket

Best regards,

Xray Team

Sasmita Satapathy May 18, 2022

Hi,

Same issue facing when export the feature file from X-ray cloud  using below API

GET /api/v2/export/cucumber

Response:

PK
]T; 1_OWMC-12.featureFeature: Automation

@TEST_OWMC-12 @TESTSET_OWMC-17
Scenario: Verify content of 1st web browser should display on DP1
When send EP202_35000 message for DU ID "0" and windowOWID "3" with seqID "1"
PK
]T; 1_OWMC-12.featurePK ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events