Import the execution results created with the xUnit XML output formatter. For more information please check the documentation aboutxUnit integration.
Request
QUERY PARAMETERS
parameter
type
description
projectKey
String
- key of the project where the Test Execution (if the testExecKey parameter wasn't provided) and the tests (if they aren't created yet) are going to be created.
testExecKey
String
- key of the Test Execution.
testPlanKey
String
- key of the Test Plan; if you specify the Test Plan, the Tests will be added automatically to the Test Plan if they're not part of it.
testEnvironments
String
- a string containing a list of test environments separated by ";"
revision
String
- source code and documentation version used in the test execution.
fixVersion
String
- the Fix Version associated with the test execution (it supports only one value).
multipart/form-data:
"file" : a MultipartFormParam containing a XML file to import.
200 OK : application/json: Some results where successfully imported to Jira. But the following Test issues failed to be created due to the following reasons.
Code Block
title
Example Output
{
"testExecIssue": {
"id": "10200",
"key": "XNP-24",
"self": "http://www.example.com/jira/rest/api/2/issue/10200"
},
"testIssues": {
"error": [
{
"messages": [
"Field 'customfield_10005' cannot be set. It is not on the appropriate screen, or unknown."
],
"testDefinition": "x.CalculatorTests.CanMultiply"
}
]
}
}
400 BAD_REQUEST : application/json : Returns the error.
401 UNAUTHORIZED : application/json : The Xray license is not valid.
500 INTERNAL SERVER ERROR : application/json : An internal error occurred when importing execution results.