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

Description


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

NameValueDescription
ProfileNetwork profile as StringSelect the network conditions profile which was created in the Network Virtualization Tool
DurationTime in MillsecondsSet the duration in milliseconds for the selected profile (0 = permanent ).


Note: If the 'Profile' parameter is not set (empty), the default profile (no network limitations) will be selected.

Usage

Network Profile Virtualization will be enabled for the Project Administrators, See below screenshot. Subsequent to this the profile name can be used to set the network condition.

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the sample code below.

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




  • No labels