https://github.com/liamseck/k6-wpe-simple-script
Simple K6 Script
https://github.com/liamseck/k6-wpe-simple-script
Last synced: 5 months ago
JSON representation
Simple K6 Script
- Host: GitHub
- URL: https://github.com/liamseck/k6-wpe-simple-script
- Owner: LiamSeck
- Created: 2024-10-16T08:20:32.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-11-26T15:57:29.000Z (7 months ago)
- Last Synced: 2024-12-29T03:58:11.741Z (6 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Execution Steps
- On MacOS install K6 by running `brew install k6` or by following the [K6 Docs](https://grafana.com/docs/k6/latest/set-up/install-k6/).
- To execute the script using your local machines resources run `k6 run simple-script.js`.
- To execute the script using K6 Cloud first authenticate with K6 Cloud by running `k6 login cloud --token token_ID` then to execute the script by running `k6 cloud run simple-script.js`.
- To define the hostname at run time add the `-e HOSTNAME=domain.com` flag: `k6 run -e HOSTNAME=domain.com simple-script.js` or `k6 cloud run -e HOSTNAME=domain.com simple-script.js`.