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 Cookie
2020 or later

LWSSO_COOKIE_KEY={LwssoCookie};

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’.

Request examples:

Copy code
GET example:
GET http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/Runs/80/Results
Copy code
POST example:
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.

Results examples:

Copy code
GET results example:
<RunResults xmlns="http://www.hp.com/PC/REST/API">
    <RunResult>
        <ID>1053</ID>
        <Name>SqliteDb.db.zip</Name>
        <Type>Error Messages</Type>
        <RunID>13</RunID>
    </RunResult>
    <RunResult>
        <ID>1054</ID>
        <Name>VuserLog.zip</Name>
        <Type>OUTPUT LOG</Type>
        <RunID>13</RunID>
    </RunResult>
    <RunResult>
        <ID>1055</ID>
        <Name>RawResults_13.zip</Name>
        <Type>RAW RESULTS</Type>
        <RunID>13</RunID>
    </RunResult>
    <RunResult>
        <ID>1057</ID>
        <Name>Results_13.zip</Name>
        <Type>ANALYZED RESULT</Type>
        <RunID>13</RunID>
    </RunResult>
    <RunResult>
        <ID>1058</ID>
        <Name>Reports.zip</Name>
        <Type>HTML REPORT</Type>
        <RunID>13</RunID>
    </RunResult>
    <RunResult>
        <ID>1059</ID>
        <Name>HighLevelReport_13.xls</Name>
        <Type>RICH REPORT</Type>
        <RunID>13</RunID>
    </RunResult>
</RunResults>
Copy code
POST results example (response captured in proxy):
<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: