forked from kjelloe/webpagetest
-
Notifications
You must be signed in to change notification settings - Fork 3
Run Script
siedi edited this page Jan 4, 2016
·
1 revision
There is a bash script provides which sets the necessary environment for the script and launches the ndoe script:
./run-tests.sh
Usage: runtests.sh [-k <apikey>] [-l <location>] [-n <label>] <url-to-test>
Minimal command
./run-tests.sh http://www.google.com/
Command giving a label for the test (stored as a tag in InfluxDB) and a different webpagetest agent location (you should have received a list when applying for the API key)
./run-tests.sh -n Google-Homepage -l ec2-eu-west-1:Chrome http://www.google.com/
To run the test regularly, e.g. hourly, just add it to the crontab
crontab -e
1 * * * * /root/webpagetest-influxdb/run-tests.sh -n Google-Homepage -l ec2-eu-west-1:Chrome http://www.google.com/ > /dev/null
Keep the frequency in mind, there is a daily limit on the public server of max. 200 requests.