Exporting Cucumber Tests response is some junk char

Sasmita Satapathy May 18, 2022

when we are exporting cucumber test case from X-ray cloud using below API

GET /api/v2/export/cucumber

headers["Accept"] = "application/octet-stream"
headers["Content-Type"] = "application/json"
headers["Authorization"] = "Bearer " + token

response return:

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   ?

 

How to remove the junk char and what the data type of the response

2 answers

0 votes
Sasmita Satapathy May 19, 2022

Thank you for your response ,let me check with support team

I changed the Accept header  to application/json but still face the issue

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2022

I don't know if it helps, but the Accept header you set to "octet-stream" asks the server to return a binary response. Why don't you ask for JSON?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events