Load Testing Tool | Vegeta | API Vegeta testing tool
For Ubuntu Install in ubuntu wget https://github.com/tsenart/vegeta/releases/download/cli%2Fv12.5.1/vegeta-12.5.1-linux- amd64.tar.gz tar xfz vegeta-12.5.1-linux-amd64.tar.gz mv vegeta /usr/bin/vegeta #try with root user permission Shell Script to run Create a file vegeta_ubuntu.sh and paste following code #!/bin/bash touch post_targets.list #creating a file truncate -s 0 post_targets.list cat >./post_body.json <<EOF { "wifi": { "ssid": "$SSID", "pw": "$PW" } } EOF echo 'PUT https://staging-sps.luxola.com/api/v2.5/ba/wishlist/variants/202146?card_number=6501087579617' > post_targets.list echo 'X-Site-Country:SG' >> post_targets.list echo 'X-App-Version: 1.0.0' >> post_targets.list echo 'X-App-Platform: mobile_app' >> post_targets.list echo 'Authorization:Bearer eyJraWQiOiJXWGZCdjZWQ2xLY09KOGJBVmhlZWRHLXI1ZVhNOUI4