For Installation follow the link: K6 Setup
HTML Report: Link
import { htmlReport } from https://raw.githubusercontent.com/benc-uk/k6-reporter/main/dist/bundle.js
To know more about Web Dashboard
| Environment Variable | Description | Default Value |
|---|---|---|
| K6_WEB_DASHBOARD | Enable the web dashboard | false |
| K6_WEB_DASHBOARD_HOST | Host to bind the web dashboard to | localhost |
| K6_WEB_DASHBOARD_PORT | Port to bind the web dashboard to | 5665 |
| K6_WEB_DASHBOARD_PERIOD | Period in seconds to update the web dashboard | 10s |
| K6_WEB_DASHBOARD_OPEN | Open the web dashboard in the default browser | false |
| K6_WEB_DASHBOARD_EXPORT | Filename to automatically export the HTML test report to at the end of the test run. By default, the value is empty and the report isn’t exported. | `` |
K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT=html-report.html k6 run script.js
To run testing script and monitor the data in local dashboard, we have implemented Grafana local dashboard.
-
navigate inside LoadTesting directory
cd LoadTesting -
Setting up docker compose file, which triggers grafana in
localhost:3000and influxdb in system'slocalhost:8086
docker compose up -d influxdb grafana -
To run any of the scripts, the script needs to be inside the
/scriptsfolder of LoadTesting directory.
docker compose run k6 run /scripts/{scriptName}