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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,713
Community Members
 
Community Events
176
Community Groups

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

Atlassian Community Events