Skip to main content

SetNetworkConditions

Description​

Use this command to select the profile configured on the Network Virtualization server to test the device under the different network conditions.

info

This command only works for the users having Project Administrator role.

Parameters​

NameTypeDescription
ProfileStringNetwork conditions profile created in the Network Virtualization Tool
DurationIntTime in milliseconds for the selected profile (0 = permanent)
info

If Profile is not set (empty), the default profile (no network limitations) is selected.

Usage​

Network Profile Virtualization is enabled for the Project Administrators. Subsequent to this the profile name can be used to set the network condition.

info

Replace <server> with the appropriate URL.

SetNetworkConditions

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
seetest.setNetworkConditions("LTE Network", 30000);


// Do Test