Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
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

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.
Jul 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

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?

José Domingues [Xray]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 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

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