getTestStepResultAttachmentContent
Fetch the raw file content of a Test Step Result attachment to read plain-text files like TXT, CSV, XML, JSON, or HTML. Use it when you need the actual bytes, not metadata.
Instructions
Downloads the raw file content of one Test Step Result attachment. The file body is returned as UTF-8 text: plain-text files (TXT, CSV, XML, JSON, HTML) are readable, but binary files (images, PDF, Office) arrive garbled. Use this only when you need the file's bytes; for its metadata (fileName, contentType, size, author) call getTestStepResultAttachment, and to discover attachment IDs call getTestStepResultAttachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | A specific repository revision (e.g. `1234`) to read the resource as it existed at that revision instead of the current HEAD. Omit to use the latest revision. | |
| iteration | Yes | The iteration number identifying which repeated occurrence of this item is being addressed (e.g. which run of a test parameter). | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs. | |
| testRunId | Yes | The Test Run's ID within its project. | |
| testCaseId | Yes | The Test Case's ID being referenced. | |
| attachmentId | Yes | The attachment's ID, as returned by the corresponding list- or get-attachments call for this resource. | |
| testStepIndex | Yes | The Test Step index. | |
| testCaseProjectId | Yes | The project ID that owns the referenced Test Case — may differ from the project in the request path when the test case is shared from another project. |