Forums

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

"Result is not valid Xray Format" while importing result , after migrating to cloud.

Mark Holloway
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!
October 29, 2025

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"
           }
}

2 answers

Suggest an answer

Log in or Sign up to answer
1 vote
Sunny Ape
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 Champions.
November 1, 2025

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!

0 votes
Valerie Knapp
Community Champion
October 31, 2025

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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events