We recently migrate to Jira/Xray cloud. so have had to change any api interations.
I am attempting to upload a test result to a test execution, but i am getting : "Result is not valid Xray Format"
Any assistance greatly appreciated.
https://xray.cloud.getxray.app/api/v2/import/execution
{
"tests": [{
"start": "2025-10-29T10:55:06+01:00",
"finish": "2025-10-29T10:57:41+01:00",
"comment": "Success",
"testKey": "TEST-4104",
"steps": [{
"comment": "Step 2: iteration Passed1",
"evidences": [{
"filename": "Test- TEST_4104.zip PASS.zip",
"data": ".....",
"contentType": "application\/x-zip-compressed"
}
],
"status": "PASS"
}
],
"status": "PASS"
}
],
"info": {
"summary": "Automation Test",
"description": "This execution is automatically created ",
"user": "test.user@email.com",
"startDate": "2025-10-29T10:54:55+01:00",
"testExecutionKey": "TEST-7556",
"finishDate": "2025-10-29T10:58:31+01:00"
}
}
Hello @Mark Holloway
but i am getting : "Result is not valid Xray Format"
The error message is probably correct.
If you refer to the XRay JSON Format documentation, it says the testExecutionKey object should be declared at the top level:
{
"tests" []
"info" {}
"testExecutionKey": "string"
}but you declared it inside the info object.
The info object documentation seems to confirm this, as it does not include testExecutionKey.
If you take the time to review the XRay JSON Format documentation more closely, you might find more mistakes!
Any assistance <is> greatly appreciated
You're welcome!
Hi @Mark Holloway , welcome to the Atlassian Community and thanks for your post.
Please open a ticket to the vendor of Xray - https://marketplace.atlassian.com/apps/1211769/xray-test-management-for-jira?hosting=cloud&tab=support
They are the best placed to be able to help you with this, seeing as no one else has responded in a few days.
Best wishes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.