Skip to main content

rtcEvent()

Add a vertical event line on graphs shown.

You can read more about it on event based test expectations.

Arguments

Name Type Description
event name string The name given to the event. This name will appear when you hover on the horizontal line in the graph
event type string “local” or “global”:
  • local – if you want the horizontal line for the event to appear only on the graphs of the probe who added the event (recommended)
  • global – if you want the horizontal line for the event to appear on all graphs of all probes as well as the high level graphs. It is recommended to use that for a limited number of events, preferably 1 or 2 in the whole test scenario, otherwise, it will clutter the graphs too much

Code examples

client
    // Limit network
    .rtcEvent('throttle', 'global')
    .rtcSetNetworkProfile('Poor 3G')

    // In the session
    .pause(30000)
    .rtcScreenshot('hi there 2')
    .pause(30000)
    
    // Back to normal
    .rtcSetNetworkProfile('') // back to pristine network conditions
    .rtcEvent('unthrottle', 'global');

Was this article helpful?

0 out of 0 found this helpful