Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,045
Community Members
 
Community Events
165
Community Groups

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

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

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

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

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

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.

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

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

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

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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

364 views 0 7
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