WebPagetest Forums
Validate the scripts - 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: Validate the scripts (/showthread.php?tid=13563)



Validate the scripts - heliosantos - 02-24-2015 11:43 PM

Hi,

Is there a way to automatically validate the outcome of a script?

e.g. Suppose I have a script that add items of a eCommerce website to the basket. My validation could be verifying the existence of the text "Added to the basket".

Regards,
Helio


RE: Validate the scripts - pmeenan - 02-24-2015 11:52 PM

You can use a custom metric that checks for the text you are interested in and sets the "result" accordingly: https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/custom-metrics


RE: Validate the scripts - heliosantos - 02-25-2015 12:33 AM

(02-24-2015 11:52 PM)pmeenan Wrote:  You can use a custom metric that checks for the text you are interested in and sets the "result" accordingly: https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/custom-metrics

Perfect. Thanks.