WebPagetest Forums
Using the API for Monitoring - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Using the API for Monitoring (/showthread.php?tid=11150)



Using the API for Monitoring - hxmws - 05-22-2012 01:04 AM

Hi All,

I'm looking to use webpagetest for monitoring our website, I'm planning to run a simple transaction using the scripting option available.

My Question is... From the results you are given i.e page_data.csv and requests.csv can anyone tell me how I can see if the transaction completed successfully? Ideally any way of alerting on a transaction that doesn't complete would be awesome.

Thanks
Matt


RE: Using the API for Monitoring - pmeenan - 05-23-2012 01:59 AM

If you use a script and specify a DOM Element the test should return an error if the DOM element wasn't found. If you have a specific request that indicates a success then that would work as well.


RE: Using the API for Monitoring - hxmws - 05-23-2012 07:29 PM

(05-23-2012 01:59 AM)pmeenan Wrote:  If you use a script and specify a DOM Element the test should return an error if the DOM element wasn't found. If you have a specific request that indicates a success then that would work as well.

Thanks Patrick, I'll take a look at that.

Another quick question for you do you know if it is possible to execute jquery when scripting?

i.e execAndWait $('#blah').click();


RE: Using the API for Monitoring - pmeenan - 05-24-2012 05:29 AM

As long as the page has loaded jquery then yes. The script executes in the context of the page so anything available is fair game.