Returns information on a specified automation attachment.
Use this operation to get information on the attachment of the automation (test files to run), specified by the name of the agent that will run the automation, the ID of the test to which the automation is assigned, and the project, to which the test belongs.
Basic authentication using a user’s login and password. See Authentication for details.
The authenticating user must belong to a security group that has the Read privilege for the Test Library.
To get information on an attachment, send a GET request to the following URL:
ProjectId : integer, required
The ID of the project to which the test belongs.
TestId : integer, required
The ID of the needed test.
Agent : string, required
The URL-encoded or the short name of the automation agent (test runner).
Currently, REST API supports the following agents:
|Agent||URL-encoded Name||Short Name|
|ReadyAPI / SoapUI OS||
The agent names are case-insensitive.
A sample request:
GET http://yourserver.com/rest-api/service/api/v2/projects/11953/tests/2693/automations/testcomplete/attachment HTTP/1.1
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u email@example.com:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v2/projects/11953/tests/2693/automations/testcomplete/attachment
If successful, the operation responds with HTTP status code 200 and returns a JSON object with information about the attachment.
A sample response:
HTTP/1.1 200 OK
"file_format_code": "PKZip File",
"user_name": "Smith, John "
The name of the attached file.
The file format code.
The date and time when the attachment was created.
The date and time the attachment was last updated.
The ID of the user who updated the attachment last time.
The name of the user who updated the attachment last time.
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
If the project with the specified ProjectId does not exist or the authenticating user does not have rights to access the project, the operation returns the
Access is denied error.