Set the device orientation

With the Mobile Engine 3.0, you can steer the application on your Android or iOS device in either portrait or landscape screen orientation.

Use the ME3.0 Set Device Orientation Module to specify the device orientation.

This Module is part of the Standard subset. You can find it under Standard modules->TBox XEngines->Mobile.

Define the screen orientation

To change the screen orientation of the mobile device, follow the steps below:

  1. Specify the test configuration parameters to establish a connection with the device.

  2. Add either the Open Mobile App TestStep or the OpenUrl TestStep as a first TestStep in the execution.

  3. Drag and drop the ME3.0 Set Device Orientation Module onto your TestCase.

  4. From the drop-down in the Value column, select the screen orientation.

  5. Set the ActionMode to Select.

In the example below, you set the screen orientation to Landscape.

ME3.0 Set Device Orientation Module in a TestCase