- Set up the infrastructure in docker-compose.yaml. Using K6 to send the data to InfluxDB, then use InfluxDB as the datasource to show the live test results to Grafana Dashboard.
- API Documentation: https://dummyjson.com/docs
- Launch the infrastructure: docker-compose up -d influxdb grafana
- Run the test case:
docker-compose run k6 run /src/test_scripts/dummy-json/GetSingleProduct.js --insecure-skip-tls-verify
- View the live test results at: http://localhost:3000/d/k6/k6-load-testing-results
- Clean up
- docker-compose down
- docker system prune -f