Date: Fri, 29 Mar 2024 00:37:22 +0000 (UTC) Message-ID: <796130113.10293.1711672642127@catch-kbase-p> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10292_1919832722.1711672642117" ------=_Part_10292_1919832722.1711672642117 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A collection resource representing the attachments of an Automated Test = Run Result Node.
This resource supports the following methods: GET, POST
Retrieves a list of attachments for a particular Automated Test Run's Re= sult Node.
These are the expected status codes returned by the service. In addition= , some other status codes may be returned if either an internal error occur= s or there is an authentication issue (such as an expired OAuth token).
Status | Description |
---|---|
200 - OK | Returned if the request was completed successful= ly. |
403 - Forbidden | Returned if ET could not complete the request (n= ormally due to a validation failure or the necessary permissions to complet= e the request have not been met). |
404 - NotFound | Returned if the ID for the run or the node was n= ot found in the database. |
Retrieves a list of attachments for a particular Automated Test Run's re= sult node.
Request Headers
Key | Value | Description |
---|---|---|
Accept | application/json |
Request Parameters
Key | Value | Description |
---|---|---|
{runId} | 1459858c-9526-412e-afdd-09415593c2d3 | The unique identifier (GUID) of the Automated Te= st Run. |
{nodeId} | b8166143-c269-4bd8-876e-d2584edc4e2e | The unique identifier (GUID) of the Automated Te= st Run Result Node. |
Response Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json; charset=3Dutf-8 |
Response Body
[ { "NodeId": "b8166143-c269-4bd8-876e-d2584edc4e2e", "RunId": "1459858c-9526-412e-afdd-09415593c2d3", "Id": "9cb7f1cb-984d-4c47-9275-82d6409ed6be", "Name": "File 1", "FileName": "File 1.txt", "ContentType": "text/plain", "CreatedAt": "2013-02-01T11:00:00Z", "CreatedById": "89fda208-2f7a-42e9-8d0a-3518b80b0765", "Size": 111, "Self": "http://localhost/api/automatedtestrun/1459858c-9526-412e-afdd-= 09415593c2d3/node/b8166143-c269-4bd8-876e-d2584edc4e2e/attachment/9cb7f1cb-= 984d-4c47-9275-82d6409ed6be", "Content": "http://localhost/api/attachment/9cb7f1cb-984d-4c47-9275-82d= 6409ed6be/contents" }, { "NodeId": "b8166143-c269-4bd8-876e-d2584edc4e2e", "RunId": "1459858c-9526-412e-afdd-09415593c2d3", "Id": "e6040570-48fb-48b4-af1e-fa90fe4ae7dd", "Name": "File 2", "FileName": "File 2.txt", "ContentType": "text/plain", "CreatedAt": "2013-02-01T11:00:00Z", "CreatedById": "89fda208-2f7a-42e9-8d0a-3518b80b0765", "Size": 148, "Self": "http://localhost/api/automatedtestrun/1459858c-9526-412e-afdd-= 09415593c2d3/node/b8166143-c269-4bd8-876e-d2584edc4e2e/attachment/e6040570-= 48fb-48b4-af1e-fa90fe4ae7dd", "Content": "http://localhost/api/attachment/e6040570-48fb-48b4-af1e-fa9= 0fe4ae7dd/contents" }, { "NodeId": "b8166143-c269-4bd8-876e-d2584edc4e2e", "RunId": "1459858c-9526-412e-afdd-09415593c2d3", "Id": "72d41457-1840-4a86-8080-788f3d974ba6", "Name": "File 3", "FileName": "File 3.txt", "ContentType": "text/plain", "CreatedAt": "2013-02-01T11:00:00Z", "CreatedById": "89fda208-2f7a-42e9-8d0a-3518b80b0765", "Size": 185, "Self": "http://localhost/api/automatedtestrun/1459858c-9526-412e-afdd-= 09415593c2d3/node/b8166143-c269-4bd8-876e-d2584edc4e2e/attachment/72d41457-= 1840-4a86-8080-788f3d974ba6", "Content": "http://localhost/api/attachment/72d41457-1840-4a86-8080-788= f3d974ba6/contents" } ]
Status Code
200 - OK
Adds a new attachment to a particular Automated Test Run's Result Node.<= /p>
These are the expected status codes returned by the service. In addition= , some other status codes may be returned if either an internal error occur= s or there is an authentication issue (such as an expired OAuth token).
Status | Description |
---|---|
201 - Created | Returned if the request was completed successful= ly. |
403 - Forbidden | Returned if ET could not complete the request (n= ormally due to a validation failure or the necessary permissions to complet= e the request have not been met). |
404 - NotFound | Returned if the ID for the run or the node was n= ot found in the database. |
415 - UnsupportedMediaType | Returned if the request is not mime multipart.= td> |
Adds a new attachment to a particular Automated Test Run's result node.<= /p>
Request Headers
Key | Value | Description |
---|---|---|
Content-Type | multipart/mixed; boundary=3D65bf6b94-c91c-= 442c-abe7-f41444d7c71f |
Request Parameters
Key | Value | Description |
---|---|---|
{runId} | 1459858c-9526-412e-afdd-09415593c2d3 | The unique identifier (GUID) of the Automated Te= st Run. |
{nodeId} | b8166143-c269-4bd8-876e-d2584edc4e2e | The unique identifier (GUID) of the Automated Te= st Run Result Node. |
Request Body
--65bf= 6b94-c91c-442c-abe7-f41444d7c71f Content-Disposition: attachment; filename=3Dscreenshot1.png; name=3D"screen= shot 1"; size=3D122454 Content-Type: image/png Content-Length: 3 ... --65bf6b94-c91c-442c-abe7-f41444d7c71f Content-Disposition: attachment; filename=3Dnotes.txt; name=3Dnotes; size= =3D3 Content-Type: text/plain Content-Length: 3 ABC --65bf6b94-c91c-442c-abe7-f41444d7c71f--
Response Headers
Key | Value | Description |
---|---|---|
Location | http://localhost/api/automatedtestrun/1459= 858c-9526-412e-afdd-09415593c2d3/attachments | The location of the new attachment resource |
Status Code
201 - Created