Add a vertical event line on graphs shown.
- rtcEvent() can be used to mark certain actions taken by the test script to find out how they affect the media transmission. It works well with conjunction with rtcSetNetworkProfile() .
- rtcEvent() can also be used alongside .rtcSetEventsExpectation() and using .rtcSetCustomEventsExpectation() .
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”:
|
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');