I am attempting to import a list of test case execution results to a JIRA project using the Xray REST API.
Using the Xray JSON format I have successfully uploaded execution results for existing tests. Unfortunately I have not been able to upload results for new tests.
The JSON used for the upload attempt is:
{
"testExecutionKey" : "NXTP-40",
"info" : {
"summary" : "JSON Test Execution"
},
"tests" : [
{
"status" : "PASSED",
"testInfoBean" :
{
"summary" : "JSONCreatedTest",
"projectKey" : "NXTP",
"genericTestDefinition" : "tes.definition"
}
}
]
}
When this JSON is uploaded using the REST API or using the test execution importer tool in JIRA, an error is returned stating there are no valid tests
{"error":"There are no valid tests imported"}
Based on the JSON format outlined in the documentation I am unable to find which fields are incorrect or missing.
Any help pointing to how the JSON needs to be formatted to create a new test via test execution upload would be greatly appreciated.
Regards,
Shawn