Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Export Cucumber file via Xray API with python, error 406

DanielPalaio September 2, 2021 edited

Hi!

 

I'm currently developing a python application in which I need to export a test defined in Cucumber. To do so I want to make a request to the XRAY API and save the .feature file in the respective project repository.

 

In https://docs.getxray.app/display/XRAY/Exporting+Cucumber+Tests+-+REST, a GET command GET /rest/raven/1.0/export/test is presented, and by its description it matches precisely what I intend to do.

In my case, I just do in python get('/rest/raven/1.0/export/test?keys=key'), but it gives me the error "406 Client Error". What am I doing wrong?

 

I'm using JIRA/XRAY server.

 

Thanks in advance!

2 answers

0 votes
DanielPalaio September 2, 2021

Update: Solved!

0 votes
Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2021

Hi @DanielPalaio ,

if you're using Xray Cloud, the proper documentation is this one.

Please note that you must do an authentication request beforehand.

Regards

Sergio

DanielPalaio September 2, 2021

Hi!

 

I'm using Xray Server. And yes, I do a prior authentication. This is the only command reported in the Xray documentation that does not work. Until now I managed to access and process all sorts of that in JIRA/Xray via REST API.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events