WebPagetest Forums
run script using the API - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Testing Tools/Services (/forumdisplay.php?fid=6)
+--- Thread: run script using the API (/showthread.php?tid=889)



run script using the API - qwertyuser - 06-29-2011 10:54 PM

How can I run/pass scripted tests to the API?

I see the API has the support for script=, but I don't see any documentation or examples on how to pass it to the API.

thanks.


RE: run script using the API - pmeenan - 06-29-2011 11:28 PM

Just URL encode the script that you would normally paste into the UI.


RE: run script using the API - qwertyuser - 06-29-2011 11:35 PM

(06-29-2011 11:28 PM)pmeenan Wrote:  Just URL encode the script that you would normally paste into the UI.


so it would be
&s=<url_encoded script> ?


RE: run script using the API - pmeenan - 06-30-2011 12:07 AM

Close. It would be &script=<url encoded script>


RE: run script using the API - qwertyuser - 06-30-2011 12:15 AM

(06-30-2011 12:07 AM)pmeenan Wrote:  Close. It would be &script=<url encoded script>

cool .thanks.