Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when using the "Import Execution Results" XRAY REST API.

Joseph Manangan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2020

I'm executing the JSON here for "Import Execution Results" : (https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST).

but when I execute it via POSTMAN it returns an error response:

Capture.PNG

and here is my request body:

Capture2.PNG

can someone please help me out, I'm pretty sure I was following the steps provided in the documentation, or maybe I'm missing something. Thank you in advance!

1 answer

0 votes
José Domingues [Xray]
Atlassian Partner
July 10, 2020

Hi @Joseph Manangan

For this example, it's necessary to create a Test and a Test Plan and switch with the ones that present in the results.

If you have any more questions please contact our Service Desk. 

Best Regards

Team Xray

Haseeb Akram Khan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2021

hello @Joseph Manangan , @José Domingues [Xray] , i am having same kind of error can you please explain the fix.

b'{"error":"Error retrieving Project from Jira with key \\"null\\": No project could be found with key \'null\'."}'

Could not publish to Jira: 400 Client Error: Bad Request for url: https://xray.cloud.xpand-it.com/api/v2/import/execution

Joseph Manangan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2021

@Haseeb Akram Khan - Hello, sorry can't help with the REST API. 

I just gave up with my implementation and used the GraphQL API instead(https://docs.getxray.app/display/XRAYCLOUD/GraphQL+API)

 

If you're interested in using GraphQL in C# I have one in my repositories in GiHub.

-> https://github.com/joseMana/tricentis-tosca-special-execution-tasks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events