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,296,479
Community Members
 
Community Events
165
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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

367 views 0 7
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