Skip to end of metadata
Go to start of metadata

Return to the Product Announcements and Release Notes Blog

Happy to share with you couple of the latest TestObject Real Device Cloud (RDC) updates that are deployed on production.

Device allocation in Appium

Appium test developers now have have two options for allocation real devices to use in tests:

  1. [New feature] Dynamic allocation of a device, based on target OS platform and OS version, using the platformName and platformVersion capabilities.
  2. Static allocation of a specific device, using the deviceName capability.

Dynamic allocation using platformName and platformVersion

In the first option, you set the capabilities platformName and platformVersion, and a device with those specifications is dynamically allocated to your test run.

Since you aren't asking for a specific device, this option gives you access to a larger selection of free devices to use in your testing. When using this option, you must specify both capabilities.

Java Example for All Capabilities for Dynamic Allocation
public void setUp() throws Exception {
        DesiredCapabilities capabilities = new DesiredCapabilities();
        // Set my TestObject API Key
        capabilities.setCapability("testobjectApiKey", "1234567890123456789012345678901234567890");
        // Dynamic device allocation of an iOS device
        capabilities.setCapability("platformName", "iOS");
        capabilities.setCapability("platformVersion", "10");
        // Set Application under test
        capabilities.setCapability("testobject_app_id", "1");
        capabilities.setCapability("name", "My Test 1!");
        // Set Appium version
        capabilities.setCapability("appiumVersion", "1.6.4");
        // Set Appium end point
        driver = new IOSDriver(new URL(""), capabilities);

Allocating a tablet or a phone

You can use the tabletOnly and phoneOnly desired capabilities to to focus device allocation to a specific device type (applies to both iOS and Android).


Setting Capabilities for a Tablet device
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability(tabletOnly, true);
Setting Capabilities for a phone device
capabilities.setCapability("platformName", "Android");
capabilities.setCapability(phoneOnly, true); 

Static allocation using deviceName

In the second option you can use deviceName to set a specific device, without needing to use plaformName or platformVersion. The device name will be the same as the as the ID shown in the TestObject device selection menu, for example the deviceName for the free Motorola Moto E (2nd gen) device would be Motorola_Moto_E_2nd_gen_free.


Setting Capabilities for the LG G2 Device
capabilities.setCapability("deviceName", "LG_G2_real");

Learn more on RDC Desired capabilities on our wiki:

New TestObject Manual UI UX

We have a new design for the TestObject manual UI screen which provide users with better usability.

Main motivation was to provide the users with max real estate for the mobile device screen, both in landscape and portrait modes.