Skip to main content

Configure network throttling

Important:

You have installed the Katalon TestCloud Keywords plugin to automatically load all TestCloud keywords into your project without having to manually define them. If you have not, visit Katalon Store: Katalon TestCloud keywords.

There might be scenarios where you would have to check the functionality of your website or mobile app on poor network conditions or even offline. Such networks have variable upload and download speeds which can alter how your website performs on different browsers.

With Network throttling feature, you can test the performance and behavior of your website under different network conditions by simulating different network profiles.

The ThrottleNetworkExecutor contains 2 keywords for the following use cases:
  1. setNetworkProfile:
    • When testing with mobile app, the keyword throttles network for mobile devices by profile.
      Profile NameDownload SpeedUpload SpeedLatency
      2g-gprs-poor20 Kbps6 Kbps1000 ms
      2g-gprs-good50 Kbps16 Kbps500 ms
      3g-umts-poor200 Kbps64 Kbps 400 ms
      4g-lte-poor 1 Mbps500 Kbps200 ms
      3g-umts-good5 Mbps2 Mbps100 ms
      4g-lte-good15 Mbps 7 Mbps70 ms
      4g-lte-advanced-good25 Mbps12 Mbps20 ms
    • When testing with web, the keyword throttle network for web browsers by profile.
      Profile NameDownload SpeedUpload SpeedLatency
      offline0 Kbps0 Kbps0 ms
      GPRS50 Kbps20 Kbps500 ms
      Regular 2G250 Kbps50 Kbps300 ms
      Good 2G450 Kbps150 Kbps150 ms
      Regular 3G750 Kbps250 Kbps100 ms
      Good 3G1 Mbps750 Kbps20 ms
      Regular 4G 4 Mbps3 Mbps20 ms
      DSL2 Mbps1 Mbps5 ms
  2. customNetworkProfile: provide arbitrary values for network throttling.

To configure network throttling with TestCloud, follow these steps:

  1. In Katalon Studio, click the Profile drop-down and select Reload Plugins to make sure the plugin is installed.
  2. Go to Project Settings > Desired Capabilities > TestCloud.
  3. In the TestCloud table, add a katalon:options property, set Type as Dictionary, then click the ....
  4. In the Dictionary Property Builder, set the boolean enableNetworkThrottling=True desired capability for your project. Then, click OK.
  5. Add the ThrottleNetworkExecutor keyword to your test case as needed.
  6. Configure your TestCloud environment and run the test.
Was this page helpful?