Open topic with navigation

# TrendReports (Get Trend Report in XML format)

## Description

Gets trend report data of a specific run in XML format.

## URL

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/{TrendID}/{RunId}

## HTTP Method

GET: Returns the trend report data for the specified run in XML format.

## Request

Headers:

None

Cookies:

- Version 2020 (or later): LWSSO_COOKIE_KEY={LwssoCookie};

- Versions earlier than 2020: LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

None

Request Example

    GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/TrendReports/5/6/xml

## Response

Headers:

Content-Type: application/xml

Content-Disposition contains the file name in the filename field’s value

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

Content of the xml file.

Response Example

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Pragma: no-cache
    Content-Length: 186098
    Content-Type: text/xml
    Expires: -1
    Server: Microsoft-IIS/7.5
    Content-Disposition: attachment; filename=TrendReportID_5_RunID_6_Project_PC_1255.xml
    Date: Tue, 25 Apr 2017 12:51:55 GMT

## See Also

TrendReports/{ID}
TrendReports/{ID}/data
TrendReports/{ID} XML
TrendReports (Set Trend Reports Baseline)
TrendReports (Get all Trend Reports)