Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

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

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?

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

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

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

yeah, thanks

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

56 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you