Change the network profile during a test run dynamically to simulate changing network conditions.


Name Type Description
profile name string

The name of the profile to set


  • profile name should be the exact text of the network profiles that can be selected for tests
  • An empty string profile name will revert the network profile to its default state for the test

Code example:


    .rtcSetNetworkProfile('Regular 4G')
    /* ... */
    /* connect session here */
    /* ... */

    /* Lower network conditions for 10 seconds */
    client.rtcSetNetworkProfile('Poor 3G')

    /* Drop the network altogether for 5 seconds */
    .rtcSetNetworkProfile('Call Drop')

    /* And back to the default again */