Open topic with navigation

# 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 Results/{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 Request Example

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

POST Request Example

    POST /LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/{ID}/Results HTTP/1.1
    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.

## Examples

Results Metadata (GET)

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

Example of response that was captured in proxy (POST):

    <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

Results/{ID}
Results/{ID}/data
Start a Test Run