Rotate device command

Rotates the device to either landscape or portrait. To rotate the device orientation, set method to Device. This will affect the screen orientation as well. To rotate the device view without manipulating the device screen, set method to be View. The Next parameter value in operation enables a 90° rotation.

The Rotate device function performs the same operation as the Rotate option in the Manual Testing view.

The operation and state parameters cannot be used together because they dictate a different behavior.

Parameters

Name Type Possible values Description

Device ID*

Device

 

The device for this command. By default, this is the device under test (DUT).

State operation

String

Reset | Next

The state operation to perform on the device, where:

  • Reset rotates the device to its default state

  • Next rotates the device to its next state

Rotate method

String

Device | View

The rotation method, where:

  • Device rotates the device orientation (landscape/portrait)

  • View rotates the displayed image only

Rotation state

String

Portrait | Landscape

The device screen rotation state, where:

  • Portrait indicates that the long side of screen is vertical

  • Landscape indicates that the long side of screen is horizontal

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter