How to update Test results to Xray Using APIs

Vyshakh Babu January 23, 2022

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

0 votes
Vyshakh Babu February 7, 2022

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

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2022

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]

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2022

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
AUG Leaders

Atlassian Community Events