What is "yourserver" in http://yourserver/rest/raven/1.0/api/testrun

Nupur July 9, 2021

What is exactly "yourserver" is this URL http://yourserver/rest/raven/, I tried mentioning my jira URL but always getting 404 Not found

I want to get test run id using following api

"rest/raven/1.0/api/testrun? "

1 answer

0 votes
Nic Brough -Adaptavist-
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.
July 9, 2021

It really does mean the name of your server, where your system is running.

Nupur July 9, 2021

Might be new to this, below are things i am doing

created new jira account > added xray > Running xray API's.

No idea where jira server is running

Nic Brough -Adaptavist-
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.
July 9, 2021

Ok, that begs the question of why you are trying to connect your Xray service to a Jira that you don't know the location of.

I doubt that's really the case.  But can you tell us where you access the Jira you are trying to connect it to?  What is the url of that Jira?

Nupur July 12, 2021

Hi Nic,

We are doing the XRAY integration with JIRA POC for our project.

We have created Few Tests, Test Executions in JIRA after importing Xray plugin over trial version of JIRA.

Test Execution : YP-5

Test : YP-2, YP-4

Now we are trying to get Test run ID from our Test Framework using following sample provided in Xray doc:

1. First we get Auth token using https://xray.cloud.xpand-it.com/api/v1/authenticate 

2. We are using that Auth token in following sample API

http://yourserver/rest/raven/1.0/api/testrun?testExecIssueKey=TEST-123&testIssueKey=TEST-321

JIRA URL: 

https://testtry02.atlassian.net/

as

https://testtry02.atlassian.net/rest/raven/1.0/api/testrun?testExecIssueKey=YP-5&testIssueKey=YP-2

 

Error :404

AND 

1. We have also tried :

curl -H "Content-Type: application/json" -X GET -u username:password https://testtry02.atlassian.net/rest/raven/1.0/api/testrun?testExecIssueKey=YP-5&testIssueKey=YP-2

Error :404

Nic Brough -Adaptavist-
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.
July 12, 2021

What docs are you following that tell you to do it this way?

Nupur July 12, 2021

https://docs.getxray.app/display/XRAY/Test+Runs+-+REST

Is there any other method to do this ?

 

Nic Brough -Adaptavist-
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.
July 14, 2021

Ah, I think I've spotted the problem.

You are reading Server/DC docs, but you're trying to connect to a Cloud system.

Try https://docs.getxray.app/display/XRAYCLOUD/REST+API instead

Nupur July 24, 2021

yeah, thanks

KUBERA PRIJESH DEVANAND
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 25, 2023

I am trying to get the test execution results like the testcases and it's execution status, what can i do, I can't find the proper api for this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events