Test result data can be exported after a test has finished and data processing complete in various formats:
- PDF report: to share the performance results with managers and executives.
- CSV format: to analyze the test result metrics deeper on your own.
⭐️ The PDF report is available on annual Pro and Enterprise plans.
The PDF report is an executive summary of the test result's most relevant metrics and performance data. To get an idea of the report looks, you can download an example here.
To generate a PDF summary, do the following:
- Navigate to the test result you want to generate a summary of.
- Open the test results menu in the top right.
- Select the Generate PDF summary option.
This will take you to an editor where you can customize and download the summary.
By using the Add/Remove Metrics-dropdown at the top of the page, it is possible to toggle which sections to include in the generated report. The editor comes with a variety of pre-defined metrics that can be included.
Once you've finished editing the summary, you can click the Generate PDF button in the top right of the editor. This will open up a progress dialog and, after a few moments, the browser will prompt you to download the PDF summary report.
Note: It is important that you do not refresh or navigate away from the page while the PDF is being generated. The time it takes to generate the PDF is dependent on the amount of data that needs to be included, so it may take a minute if your test includes many load zones, for instance.
To export the test result as CSV, visit the test result, , click the options menu - triple-dot button ⫶ in the top right - and select Export Data. The data will be exported as a .tar.gz file with a .csv contained inside.
The CSV data has the following columns of data:
Here's example data, units (where necessary) and description of each field present in the CSV data.
|time||2019-03-25 11:12:48.927949+00:00||datetime (UTC)||The ISO-8601 timestamp when this data point was captured (when the HTTP request was made).|
|metric||http_req_duration||string||The metric name that this data point represents.|
|group_id||e1158ec16fa10dcfd16f4bd7309e2c55||string||The ID of the k6 group() from where this request was made.|
|response_time||2.008016||number (ms)||The HTTP response time of the request that this data point represents (if count > 1 then this will be an aggregate value, the average).|
|url||http://test.k6.io/style.css||string||The URL requested.|
|method||GET||string||The HTTP method of the request that this data point represents.|
|status||200||number||The HTTP response status code of the request that this data point represents.|
|count||1.0||number||Number of samples that this data point represents (if > 1 response_time is an aggregate value).|
|load_zone||amazon:us:ashburn||string||The load zone where the request(s) was made from.|
|tags||staticAsset=true||string||Pipe separated list of name=value tags as specified for the request in the script.|
Note: The exported CSV file currently only contains data from the primary HTTP response time metric (http_req_duration). In the future we'll expand the export feature with more HTTP data, WebSocket data, Checks data, Thresholds data as well as Custom metrics data.