create_test_records
Record test case execution results on a Polarion test run by creating 1-50 test records in one atomic batch, with validation for results and defects.
Instructions
Create 1-50 test records on one test run, recording which test cases were executed with what result.
Use list_test_records to read them back; create_test_runs creates the run itself. Atomic: one bad item rejects the whole batch. Posting the same test_case_id again starts a new iteration rather than replacing it -- use separate calls, not duplicates in one batch. comment is sent verbatim in comment_format, no Markdown conversion.
Returns record_ids as full 5-segment ids -- never shortened. result is validated against the project's testing enumerations; defect must reference an existing work item. An invalid test_case_id is rejected by Polarion -- resolve via list_work_items first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Test records to create in one request (1-50). | |
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| project_id | Yes | Polarion project ID. | |
| test_run_id | Yes | Test run ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| record_ids | No | ||
| payload_preview | No |