Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

How to view data for a specific action/step in a scripted browser scenario

synthetics-script

#1

Synthetics Question Template

can we get the metrics in synthetics for all the requests specific to “$browser.findElement($driver.By.id(“signin-button”)).click();” ?

This would help us compare the metrics for this action across various regions as part of the scripted browser flow


#2

Hi @VithalKumar.Akunuri1 - It is possible to record this timing, once you have calculated the duration yourself, by adding a custom attribute to the Synthetic.

Otherwise this sounds like a feature request


#3

Hey @VithalKumar.Akunuri1 - Were you able to get any better detail from custom attributes as Stefan suggested?
Let us know if not, and if not, can you clarify the kind of information you are hoping for?


#4

Hi,

I haven’t tried the suggestion from Stefan. My requirement is to view the data/performance stats of a particular step after the execution of the script.

Script location : https://synthetics.newrelic.com/accounts/2099357/monitors/0a630302-1caa-488b-9eb9-2fc034053eec/script?tw[start]=1573553776.455&tw[end]=1573555576.455

The results page doesn’t have any mapping of the request as to which action or browser click.

Refer to https://synthetics.newrelic.com/accounts/2099357/monitors/0a630302-1caa-488b-9eb9-2fc034053eec/results/a4e028aa-a325-4a1d-ab61-0693b288accf?view=timeline&tw[start]=1572953755.529&tw[end]=1573558555.529

I would like to view the results specific to “$browser.findElement($driver.By.id(“signin-button”)).click();”

Can you please let me know on how to achieve this? Thanks in advance.


#5

I would suggest following Stefan’s guidance on the custom attributes suggestion, there is no way to track specific actions by default. You can see essentially all of the information we have in the monitor results page. Adding additional attributes would be a good way to add extra detail to specific actions.


#6

Another way to do this could be implement PageAction recordings


#7

That would definitely work too :smiley:


#8

I used the Katalon recorder ( Katalon script recorder: Provides option to export to Synthetics ) and able to get the required details.
Thanks for your inputs.


#9

Awesome! Thanks for following up with what worked for you :smiley: