In many cases, you would want to test how your websites looks and performs on browsers with different networks (2G, 3G, LTE etc.,) that have varied upload & download speeds & latencies.
To simulate these network conditions, you can use one of our presets, or define your own custom network conditions using the
browserstack.customNetwork capabilities. You can also change the network conditions mid-way during the test run, just like in real world where the end-user’s network varies.
You can use the
browserstack.networkProfile capability to set the network profile the test should start with. By default, each device will have unhindered WiFi connection with Internet connectivity.
||The network profile to start the test with||A string.
See the list of all pre-defined network profiles
If you have unique network conditions to test in, you can use the
browserstack.customNetwork to specify the connection speed, latencies and the packet loss %.
||The custom network condition to start the test with||A string.
Specify the desired download speed, upload speed, latency in milliseconds and packet loss percentage
You can use the following REST API to switch network profiles in the middle of the test run.
|Authorization||Basic authorization with your username and accesskey|
|JSON to send||
Read more about getting the session ID of the running test.
|Profile Name||Download Speed (Kbps)||Upload Speed (Kbps)||Latency (ms)||Packet Loss (%)|