alm_attach_to_entity
Upload a local file as an attachment to any ALM entity—runs, defects, tests, test-sets, or requirements—supporting screenshots, reports, and logs.
Instructions
Upload a local file as an attachment to any ALM entity.
Supports screenshots, test reports, logs, and any other file type.
Args: entity_type: ALM collection name — one of: 'runs' → attach to a test run (reports, screenshots) 'run-steps' → attach a screenshot/evidence to a single run step (use the run-step ID from alm_get_run_steps) 'defects' → attach to a defect (screenshots, logs, evidence) 'tests' → attach to a test case 'test-sets' → attach to a test set 'requirements' → attach to a requirement entity_id: Numeric ALM ID of the entity. For 'run-steps', this is the run-step ID (not the run ID). file_path: Absolute path to the file on the machine running this server. Example: 'C:/reports/screenshot.png'
Returns: {"success": true, "entity_type", "entity_id", "file_path"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_type | Yes | ||
| entity_id | Yes | ||
| file_path | Yes |