Page tree
Skip to end of metadata
Go to start of metadata

Description


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

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)


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.

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




  • No labels