WebPagetest Forums
Get last test result - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Get last test result (/showthread.php?tid=13428)



Get last test result - sridharangopal - 12-08-2014 08:32 AM

Hi all,

I am working on way to get test results in JSON format from WPT automatically indexed into Splunk. Splunk has a way to listen to rest endpoints and poll at regular intervals. Is there a way to get the last test result as a response from a WPT Rest API call?

Thanks,
Sri Gopal.


RE: Get last test result - pmeenan - 12-08-2014 10:30 AM

No need to go through the rest interface. WPT can be configured to log test results to a log file as the tests complete exactly for this reason: https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/settings.ini.sample#L96


RE: Get last test result - sridharangopal - 12-09-2014 02:45 AM

That's great ... will try that option. Thanks Pat.