Unknown characters when using restapi

Pradeep Susarla April 1, 2019

Hi,

I am using postman to authenticate and then get an item from our test repo. But I see something like below.

PK
��N
IE���
1_.featureFeature: Blackjack

@techoneway_DTCR_7407
Scenario Outline: Blackjack
# Created by User N at 18/01/2019
Feature: The dealer for the game of 21
Scenario: Deal initial set of cards
Given a dealer
When the round starts
Then the dealer gives itself two cards

Scenario: Deal dealers ego and kick him out
Given a dealer has huge ego
When he shits himself
Then the dealer is kicked out and looses cards

PK
��N
IE���
1_.featurePK8�

 

I want to save this file as .feature file and run it using behave. But unable to do so due to these characters starting with PK and ending with PK8� is there any way to resolve this ?

 

The url I am using to GET the scenario is : https://xray.cloud.xpand-it.com/api/v1/export/cucumber?keys=ISWDW-XXXX

1 answer

0 votes
Justin Blandford May 15, 2019

Hi, I'm getting exactly the same problem.  Did you find a workaround for this?

Pradeep Susarla May 15, 2019

Yes. When you query, instead of capturing the output, you need to download the zip file which has the .feature file. 

Justin Blandford May 15, 2019

Thanks very much for the response @Pradeep Susarla .  Very much appreciated and I will give this a try.  I'll investigate how to do this from Jersey Response that I get back from Xray (if you have any sample code please share).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events