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,463,576
Community Members
 
Community Events
176
Community Groups

How to update Test results to Xray Using APIs

Hi Team,
I am using Gradle+cucumber framework with Java,
We have built our test suite in away that 1 test scenario Run can qualify multiple test cases.
We link test cases using The test tag  
Do we have any API to fetch the list of test cases in an Execution and Update the Status of the individual cases using an API.

2 answers

Hey @Rogerio Paiva 
can we know what will be the base url for sending the GraphQL query?
we are trying to get hold on query by using postman.

Thanks

Hey @Vyshakh Babu 

The base URL for the GraphQL query is this: https://xray.cloud.getxray.app/api/v2/graphql

This and other information can be found on our documentation page about the GraphQL API: https://docs.getxray.app/display/XRAYCLOUD/GraphQL+API

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi @Vyshakh Babu 

You can do it using the GraphQL API that Xray provides, namely this mutation: updateTestRunStatus

You will need the find the Test Run ID by using another query getTestRun based on the Test and the Test Execution.

Please check all the queries and mutations available in our documentation  here: https://xray.cloud.getxray.app/doc/graphql/

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events