It is a really interesting functionality, with this you would be able to achieve test scenarios that requires different network conditions such as how tests would react under High Latency, or Low Bandwidth etc.
When we do testing, usually it is on the office with a good network, but what we miss out is that Users don’t always have a good network speed, or is in a location that could be underground, with Network Virtualization you can simulate similar behavior.
Here is the documentation for setting up Network Virtualization.
You are able to use this functionality on the Cloud Manual and Automation, as well as use it in your Code Environment, here is an example snippet:
DesiredCapabilities dc = new DesiredCapabilities();
AndroidDriver driver = new AndroidDriver (new URL("http://localhost:4723"), dc);
driver.setNetworkConditions("profile");
// clear the network conditions which were set on the device
driver.clearNetworkConditions();