Validate the scripts

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

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.