Share this page

# Run results

## Description

Returns the metadata on the results of a run, and uploads a custom run result file.

## URL

Copy code

    /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 Request Example
Copy code

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

POST Request Example
Copy code

    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.

GET Results Example
Copy code

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

POST Results Example (response captured in proxy)
Copy code

    <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

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)