update_test_records
Bulk update test records in a Polarion test run: set result, comment, or defect link for up to 50 records in one atomic operation. Unset fields remain unchanged.
Instructions
Set result, comment, and/or defect link on 1-50 test records of one test run in a single bulk PATCH.
Run-level fields (title, status, group_id) — use update_test_runs instead. Atomic: one bad item rejects the whole batch; no record changes.
record_id must be copied verbatim from list_test_records — never decomposed. comment is sent verbatim; Polarion stores it as text/html regardless of the comment_format sent, so a later read always shows text/html.
Returns the echoed record_ids only — re-read via list_test_records. result must already be a value the run uses (discover via list_test_records) or the write is rejected; defect_id must reference an existing work item or the write is rejected.
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": {
"project_id": "<project_id>",
"test_run_id": "<test_run_id>",
"items": "<items>"
},
"name": "update_test_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Per-record changes (1-50); unset fields stay unchanged. | |
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| project_id | Yes | Polarion project ID. | |
| test_run_id | Yes | Test run ID (e.g. 'TR-2026-01'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| updated | Yes | ||
| record_ids | No | ||
| payload_preview | No |