To initialize the variable to a specific value, enter one or multiple selection strings in the Text field. The strings consists of the following items: property’s name followed by operator value followed by property’s value,. The strings are separated with commas. Example: type = Android,
Key | Content (value) |
---|---|
type | Type iOS or Android |
description | A string containing the device model and its brand |
apilevel | Starting from 8 for Android and 60000 for iOS (60000 is for 6.0, 60100 is for 6.1) |
width | Width of the screen in pixels |
height | Height of the screen in pixels |
locale | Configured locale (language or country code) |
simulator | True for an emulator or simulator, false for a real device |
landscape | True if the device is landscape oriented, otherwise false (example: portrait oriented) |
gps | True if GPS is available and active, otherwise false |
phone | True if phone is available, otherwise false |
bluetooth | True if Bluetooth is available and active, otherwise false |
id | This is a unique identifier generated for a device. It is displayed in the device category of detailed properties of the Mobile Device editor. It must be used in the RTW_Mobile_Selected_Device variable. |
Other properties can be used. They are displayed in the Mobile Device editor.
sentence: property-expr { , property-expr }*
property-expr: property-name operator value
operator: = | != | < | > | <= | >= | : | =* | !=*
value: boolean | decimal-number | word | quoted-string
boolean: true | false
integer: optional-minus-sign [digit]+
floating-number: optional-minus-sign [digit]+.[digit]+
word: [A-Za-z$_][A-Za-z$_0-9]*
quoted-string: 'any-char-1' | "any-char-2"