Scripts to generate WebPagetest tests and download results
This tool is a simple wrapper for the WebPagetest API that allows you to easily generate tests and graph results
example cron entry:
0 */6 * * * php /path/to/webpagetest-public/bin/run.php
*/5 * * * * php /path/to/webpagetest-public/bin/get_results.php
Specify a conf file by passing -c:
php run.php -c /path/to/my.conf
By default, looks for a default.conf in the root folder.
Configs are JSON. Available Config Keys:
The test server, where you view results and set configuration for the agents, is an Ubuntu EC2 instance. You can SSH to it with the following command:
ssh -i ~/.ssh/webpagetest.pem [email protected]
WebPagetest is installed on /var/www/. The directories you will likely care about are results/ and settings/, although if you want to clear out existing tests you can delete the files in /var/www/work/jobs/US_East_Foo/*.
The documentation for private WPT instances is here. Some other useful links are:
The test agents are built from EC2 AMIs that Patrick and the WPT team provide. You can login to your EC2 account to manage them, and you can remote desktop to the windows machines to watch the browsers execute the tests or debug issues.
Once in a while things will break with the private WPT instance - either test results will stop showing up, individual metrics will be lost, or other oddities may occur. Before doing anything else, the steps to take are:
If you are still having issues, try posting in the WebPagetest forums - Pat is extremely responsive.
For more Etsy specific setup details, check out the "Monitoring Frontend Performance with WebPagetest" article on our internal wiki.