Get trend report by ID

Description

Returns a trend report in PDF format by the specified trend report ID.

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/{ID}/data

Remarks

The PDF report generated by the API is hard-coded and cannot be configured by the user.

HTTP method

GET: Returns a trend report in PDF format.

Request

Headers:

Content-Length: {length}

Host: {PCServer}

Cookies:

Version Cookie
2020 or later

LWSSO_COOKIE_KEY={LwssoCookie};

Earlier than 2020

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request body:

None

Response

Headers:

None

Cookies:

None

HTML return code:

One of the HTTP return codes

Upon success, returns HTTP status 200 (OK).

HTML body:

Upon success, the response will contain the following information:

  • The response header Content-Disposition contains the file name in the filename field’s value.
  • The body of the request will contain the zipped file data.

Response example:

The following is an example of a response that was captured in proxy: (without the response body that contains the file stream):

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 175211
Content-Type: application/pdf
Expires: -1
Content-Disposition: attachment; filename=Trend1.pdf
Date: Wed, 25 Nov 2023 16:43:08 GMT

See also: