Share this page

# Get or download Trend Report in XML format/file

## Description

Gets trend report data of a specific run in XML format. You can also download trend report data of a specific run in the form of an XML file.

## URL

Copy code
Get Trend Report data in XML format:

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

Copy code
Download Trend Report data in the form of an XML file:

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

## HTTP Method

GET: Returns the trend report data for the specified run in XML format, or downloads it in the form of an XML 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:

None

Request Examples
Copy code
Get Trend Report data of a specific run in XML format:

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

Copy code
Download Trend Report data of a specific run in the form of an XML file:

    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 Examples
Copy code
Get Trend Report data of a specific run in XML format:

    <Root>
      <RegularData>
        <RegularDataRow>
           <PCT_NAME>Run</PCT_NAME>
           <PCT_TYPE>VU</PCT_TYPE>
           <PCT_MINIMUM>0</PCT_MINIMUM>
           <PCT_MAXIMUM>1</PCT_MAXIMUM>
           <PCT_AVERAGE>0.333</PCT_AVERAGE>
           <PCT_MEDIAN>0</PCT_MEDIAN>
           <PCT_STDDEVIATION>0.471</PCT_STDDEVIATION>
           <PCT_SUM1>NaN</PCT_SUM1>
        </RegularDataRow>
        <RegularDataRow>
           <PCT_NAME>All</PCT_NAME>
           <PCT_TYPE>EPS</PCT_TYPE>
           <PCT_MINIMUM>2</PCT_MINIMUM>
           <PCT_MAXIMUM>6.8</PCT_MAXIMUM>
           <PCT_AVERAGE>5.556</PCT_AVERAGE>
           <PCT_MEDIAN>5.6</PCT_MEDIAN>
           <PCT_STDDEVIATION>0.707</PCT_STDDEVIATION>
           <PCT_SUM1>1678</PCT_SUM1>
        </RegularDataRow>
      </RegularData>
    </Root>

Copy code

Download Trend Report data of a specific run in the form of an XML file:

    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

Add a Trend Report
Add run to Trend Report and get data by ID
Get Trend Reports by ID
TrendReports/{ID} XML
Set Trend Reports Baseline
Get all Trend Reports

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)