Difference between revisions of "Command list for Smart Devices"
From GXtest Wiki
(→Validaciones) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Idiomas|Comandos disponibles para SmartDevices|Command list for Smart Devices| | + | {{Idiomas|Comandos disponibles para SmartDevices|Command list for Smart Devices| スマートデバイス用のコマンドリスト}} |
Line 9: | Line 9: | ||
| Back || Simulates the action of pressing the back button on the Android device. | | Back || Simulates the action of pressing the back button on the Android device. | ||
|- | |- | ||
− | | Go || Is used to launch the application on the device. It receives only one parameter, where we specify the path to the apk of the Android app | + | | Go || Is used to launch the application on the device. It receives only one parameter, where we specify the path to the apk of the Android app to install/launch. |
|- | |- | ||
| Tap || It simulates a click or tap on a control of the app defined in GeneXus | | Tap || It simulates a click or tap on a control of the app defined in GeneXus | ||
Line 35: | Line 35: | ||
|} | |} | ||
− | === | + | === Validations === |
{| border="1" cellpadding="5" cellspacing="0" align="center" width="100%" | {| border="1" cellpadding="5" cellspacing="0" align="center" width="100%" | ||
|- | |- | ||
− | ! style="background:#efefef;" colspan="2" | | + | ! style="background:#efefef;" colspan="2" | Validations |
|- | |- | ||
| AppearText|| Checks if a specific text is or is not on the screen. The text must be visible on the screen. If the text is outside the screen (for example in small resolutions, where you must scroll to find the text), you should use Swipe command to scroll and find the text, so it appears in the screen. | | AppearText|| Checks if a specific text is or is not on the screen. The text must be visible on the screen. If the text is outside the screen (for example in small resolutions, where you must scroll to find the text), you should use Swipe command to scroll and find the text, so it appears in the screen. | ||
|- | |- | ||
− | | VerifyControlText || Compares a value displayed by a control, with another value | + | | VerifyControlText || Compares a value displayed by a control, with another value. |
|} | |} | ||
− | |||
=== Considerations === | === Considerations === | ||
There are some GXtest platform-independent commands, that are supported by the Android execution but are not detailed in the above lists. Those commands are: | There are some GXtest platform-independent commands, that are supported by the Android execution but are not detailed in the above lists. Those commands are: | ||
*Concatenation | *Concatenation | ||
− | * | + | *Execute |
+ | *Pause | ||
+ | *Random | ||
+ | *SQLExecute | ||
+ | *StoreValue | ||
+ | *GetValue | ||
+ | *Summarize | ||
+ | *TakeScreenshot | ||
+ | *Equals | ||
Go back to [[GXtest for Smart Devices]] | Go back to [[GXtest for Smart Devices]] |
Latest revision as of 19:35, 29 May 2015
Contents |
Events
Events | |
---|---|
Back | Simulates the action of pressing the back button on the Android device. |
Go | Is used to launch the application on the device. It receives only one parameter, where we specify the path to the apk of the Android app to install/launch. |
Tap | It simulates a click or tap on a control of the app defined in GeneXus |
TapText | It simulates a click or tap on a text that is visible on the device screen |
TapTable | It simulates a click or tap on a table cell (identified by the row and column of the table) |
Actions
Actions | |
---|---|
DPNext | Move to the next row of a Data Pool. You should always use DPNext before you begin to use a Data Pool, indicating the name of Data Pool |
DPReset | Returns to the beginning of a Data Pool.
Note: In order to re-use a Datapool, the DPNext command must be executed against it. |
FillInput | Is used to insert a value into a field |
Menu | It simulates a tap on the Menu button of the Android device (if available) |
Swipe | It simulates a swipe action, like a user would do by pressing and dragging its finger through the screen. It receives as a parameter the direction of the swipe movement (up, down, left, right). |
Validations
Validations | |
---|---|
AppearText | Checks if a specific text is or is not on the screen. The text must be visible on the screen. If the text is outside the screen (for example in small resolutions, where you must scroll to find the text), you should use Swipe command to scroll and find the text, so it appears in the screen. |
VerifyControlText | Compares a value displayed by a control, with another value. |
Considerations
There are some GXtest platform-independent commands, that are supported by the Android execution but are not detailed in the above lists. Those commands are:
- Concatenation
- Execute
- Pause
- Random
- SQLExecute
- StoreValue
- GetValue
- Summarize
- TakeScreenshot
- Equals
Go back to GXtest for Smart Devices