Hello Team,
I need to import XRAY JSON report (data.json) to Test execution in Xray Jira issue. But unable to view the results in XRAY-JIRA for that particular key.
I see "Summary" and "Description" are getting updated but not test results.
Curl command used -
curl -H "Content-Type: application/json" -X POST -H "Authorization: Bearer $token" --data @"data.json" https://xray.cloud.getxray.app/api/v2/import/execution
Output -
curl -H "Content-Type: application/json" -X POST -H "Authorization: Bearer $token" --data @"data.json" https://xray.cloud.getxray.app/api/v2/import/execution {"id":"10515","key":"xyz-244","self":"https://xyz.atlassian.net/rest/api/2/issue/10515"}
Kindly let me know how to see updated results for every test belonging the test execution.
data.json sample -
cat data.json
{
"testExecutionKey": "KERNELPROT-244",
"info": {
"summary": "Execution of automated tests for release",
"description": "This execution is automatically created when importing execution results from an external source",
"startDate": "2025-01-07T11:58:48Z",
"finishDate": "2025-01-07T11:58:48Z" },
"tests": [
{
"testKey": "KERNELPROT-236",
"start": "2025-01-07T11:58:48Z",
"finish": "2025-01-07T11:58:48Z",
"comment": "Successful execution",
"status": "PASS"
}, {
"testKey": "KERNELPROT-231",
"start": "2025-01-07T11:58:48Z",
"finish": "2025-01-07T11:58:48Z",
"comment": "Successful execution",
"status": "PASS"
}
]
}
Thanks,
Shriya
Issue is resolved.
Change the status from PASS to PASSED and FAIL to FAILED.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great to hear that! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.