Skip to main content

Network Throttling

Real Devices Only

With Sauce Labs Network Throttling, you can simulate and reproduce different network scenarios on iOS and Android, ensuring that your mobile application performs optimally under a huge variety of network conditions. From replicating slow network speeds to mimicking offline states, high latency, or connection disruptions, this feature allows you to identify network-related performance issues early in your pipeline.

In combination with our Network Traffic Capture functionality to record network traffic, you have the tools to replicate and troubleshoot any performance concerns stemming from network operations.

What You'll Need

  • A Sauce Labs paid account (Log in)
  • Access to our Real Devices (iOS/Android)

Supported Network Conditions

The following table shows the allowed range of supported network condition parameters:

Network ConditionParameterRange
Download speeddownloadSpeed0 - 50000 kbps
Upload speeduploadSpeed0 - 50000 kbps
Latencylatency0 - 3000 ms
Packet lossloss0 - 100 %

Only specified parameters will undergo conditioning, allowing for flexibility in customizing network simulations to your precise testing needs.

Predefined Network Profiles

The following table shows the predefined network profiles along with their corresponding parameter values supported on Sauce Labs:

Network ProfileIDDownload Speed (kbps)Upload Speed (kbps)Latency (ms)Packet Loss (%)
No Throttlingno-throttling----
No Networkno-network---100
2G Packet Loss2G-packet-loss1005050010
2G2G2001003001
3G Slow3G-slow5002502001
3G Fast3G-fast70002500100-
4G Slow4G-slow80004000100-
4G Fast4G-fast250001500030-

Automated Testing

Appium

To use the Sauce Labs Network Throttling feature in your automated Appium test, you can add the sauce-specific capability networkConditions to provide custom network conditions for the entire session. Alternatively, you can use the sauce-specific capability networkProfile to apply one of the predefined network profiles to your session.

Upcoming

  • Apply network throttling to your manual Live tests
  • Change your desired network conditions dynamically any time during your automated Appium test
  • Apply network throttling to your Espresso and XCUITest tests

Limitations

Limitations
  • iOS network throttling is supported on iOS/iPadOS 14.0 and above.
  • Android network throttling is supported on Android 10 and above.

More Information