xray_import_junit
Import JUnit XML test results into Xray Cloud from Java, Maven, or Gradle builds by passing the XML content and optional execution metadata to create or update test executions.
Instructions
Import JUnit XML test results. Read the XML file via your Read tool and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push JUnit test results from Java/Maven/Gradle builds into Xray Cloud.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "xray_import_junit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format: toon (compact, default), json (full), summary (one-line) | toon |
| content | Yes | JUnit XML content as a string | |
| projectKey | No | Jira project key | |
| testExecKey | No | Existing test execution key to update | |
| testPlanKey | No | Test plan key to associate results with | |
| testExecInfo | No | Test execution metadata for multipart mode. When provided, import uses multipart/form-data to include execution-level fields (summary, description, version, etc.) that are not available in simple mode. |