xray_import_testng
Import TestNG XML test results into Xray Cloud from Java projects, with optional execution metadata such as summary, description, and version.
Instructions
Import TestNG XML test results. Read the TestNG XML output file and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push TestNG test results from Java projects 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_testng"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format: toon (compact, default), json (full), summary (one-line) | toon |
| content | Yes | TestNG 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. |