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

How to identify iterationID

Hello,

 

I'm struggling to update steps status, and in order to be able to proceed, I need to identify the iterationID

GET -> http://myapplication.com/jira/rest/raven/2.0/api/testrun/000001/iteration/{iterationID}

 

I read the documentation and I'm not able to find anything related to how to get it. Also, I used the GET endpoint on execution, and I wasn't able to find anything related to this ID in the json response.

 

2 answers

2 accepted

1 vote
Answer accepted

Found the issue.

The iterations parameter is present in the testrun json response, only if the test case has dataset.

 

"iterations": [
{
"id": 100,
"status": "PASS",
"color": "#95C160",
"parameters": [
{
"name": "Car type",
"value": "Used car"
}
]
]
ID of the iteration is present in the json as well.
For test cases where there are no datasets defined, V2 API is not working to update test case steps, need to use V1 implementation.
0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 24, 2022

Hi @rdutu -- welcome to the community,

First I need to say I´m not familiar with iterations but I have experience with xray and it´s api.

From your initial post´s tags I assume you are using cloud. I couldn´t find any hint that cloud API is providing such an endpoint. 

See documentation link below:
https://docs.getxray.app/display/XRAYCLOUD/Version+2

 

In case you have any example/link to your mentioned documentation please share the link here.

Thanks in advance.

Best
Stefan

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 24, 2022

Hi @rdutu 

As I was assuming in my answer this link leads to the api documentation of server version:

image.png

Regarding your post you are running a cloud instance so this also comes with a different API.

Best
Stefan

but I'm using the expected API, it works for all implemented calls

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 24, 2022

Hi @rdutu ,

Could you give some example calls with use cases of implemented calls? Can you confirm that your deployment type is cloud?

Best
Stefan

Yes, deployment type is cloud :D 

 

This is a get test run ID from a test execution. 

http://myJira.com/jira/rest/raven/2.0/api/testrun?testExecIssueKey=CAR-6477&testIssueKey=CAR-6210

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events