Forums

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

error when call ROBOTFRAMEWORK API for XRAY

seda_gurocak September 3, 2021

Hello,

I am trying to call API for robotframework in order to import Xray.

But when I call and send my request, I am getting error as "Your browser sent a request that this server could not understand." 

I tried to call API both with Postman and curl (in addition Postman sometimes give 500 Internal server error)

 

POST Method and using form-data ( upload output.xml) (You can see screenshot)

URL : https://xxxxxx/jira/rest/raven/1.0/import/execution/robot?projectKey=TEST&testExecKey=TEST-394

 

and The curl;

curl -D- -u user:psw -X POST "https://xxxxx/jira/rest/raven/1.0/import/execution/robot?projectKey=TEST&testExecKey=TEST-208" -H "Content-Type:multipart/form-data" -F "file=@output.xml"

 

Do you have an idea? Did I do some wrong thing?ss.png

2 answers

1 accepted

0 votes
Answer accepted
seda_gurocak September 3, 2021

...

seda_gurocak September 20, 2021

I solved the issue. The problem is related the test which I have already created on Xray. Since it is a test created before, when I call the endpoint with the same output.xml again, it does not create it. You can close ticket. Thank you for your support

0 votes
Rogério Paiva - Xray Xporter
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 7, 2021

Hi @seda_gurocak 

The URL is wrong, it does not "jira" on it.

Wrong URLhttps://xxxxx/jira/rest/raven/1.0/import/execution/robot

  Right URLhttps://xxxxx/rest/raven/1.0/import/execution/robot

Any additional questions, please get in touch with Xray Support (http://xraysupport.getxray.app); we would gladly assist you.

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

seda_gurocak September 7, 2021

Thank you for your reply, but also I tried this url on POSTMAN. In that case, I am getting another error.

 

<head>
    <title>403 Forbidden</title>
</head>

<body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access /rest/raven/1.0/import/execution/robot
        on this server.<br />

ssss.png

Rogério Paiva - Xray Xporter
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 22, 2021

Hi @seda_gurocak 

The problem could be related to the Test already created on Xray.

However, it will depend on the permission and configuration that you have, so in these specific cases, it is best to contact the Xray Support (http://xraysupport.getxray.app).

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer