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:
|
Rotate method |
String |
Device | View |
The rotation method, where:
|
Rotation state |
String |
Portrait | Landscape |
The device screen rotation state, where:
|
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