npm install webpagetest -g
webpagetest test wpt-script.txt -k $WPT_API_KEY -l "Dulles_MotoG" -y "3G" -r "5" -vpt
This ^^^ does 5 runs of the test on a Motorola Moto G on a 3G connection.
If you're feeling brave, try -y "3GSlow"
. If you're feeling really brave, try -y Edge
.
-k
for key-l
for location-y
for connection-r
for runs-v
for video-p
for private (keep the test hidden from the test log)-t
for sensitive (discard script and http headers in the result, for when you include logins and such in the script)