11 Mar 2022 06:20 AM - last edited on 11 Mar 2022 12:48 PM by AgataWlodarczyk
Do we have a way where I can capture webpage variables upon synthetic script execution?
I have been getting frequent alerts but unable to identify which webserver node is failing. I'm thinking of capturing the webpage variable so we can directly isolate it from the web cluster. Do you think it's possible?
Solved! Go to Solution.
11 Mar 2022 08:30 AM
Is this information available somewhere on the page? If so, you could use a JavaScript event to grab the value and then either print it in the logs using, api.info etc or you could fail the monitor with api.fail and print the information in event shown the WebUI. You can find information on JavaScript events here
11 Mar 2022 09:16 AM
I tried the api.info and it works if I want to run manually.
Is there a way that I can view the details on script analysis page?
11 Mar 2022 11:07 AM
No, for HTTP Monitors you can't currently add information there. If it's a monitor being run on a private location, you can see messages in the vuc-http-custom.log. Otherwise for a public monitor you could fail the test as you can see the failure message in the Events section on the HTTP Monitor details page.
Otherwise, you could use the events API to send an event to the tenant for this monitor
01 Apr 2022 06:41 AM
do we have document on how to do this?