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
Name | Type | Description |
---|---|---|
Profile | String | Network conditions profile created in the Network Virtualization Tool |
Duration | Int | Time 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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