Run results
Description
Returns the metadata on the results of a run, and uploads a custom run result file.
URL
/LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{ID}/Results
Remarks
To get the result metadata for a specific result, request Run result by ID.
HTTP Method
GET: Returns the XML containing the metadata.
POST: Uploads a custom run result file.
Request
Headers:
None
Cookies:
Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie}; |
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request Body:
GET: No request body.
POST: Contains a file to be uploaded as multipart/form-data. A file with any extension can be uploaded. Its type will be ‘User File’.

GET http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/80/Results

POST /LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{ID}/Results HTTP/1.1 @new example
Cookie: LWSSO_COOKIE_KEY={LwssoCookie};
Content-Length: 5858
Content-Type: multipart/form-data
Response
Headers:
None
Cookies:
None
HTML Return Code:
One of the HTTP Return Codes
Upon successful deletion, returns HTTP status 201 (Created).
HTML Body:
The XML containing the metadata.

<RunResult xmlns="http://www.hp.com/PC/REST/API">
<ID>1061</ID>
<Name>Reports.zip</Name>
<RunID>14</RunID>
<Type>HTML Report</Type>
</RunResult>

<HTTP/1.1 201 Created
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Location: /LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{ID}/Results/{new ID}
Server: Microsoft-IIS/8.5
Location: /LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{ID}/Results/{new ID}
Content-Length: 0
Date: Mon, 02 Nov 2015 14:28:27 GMT
See Also
Run result by ID
Run results for specified run
Start a test run