Basic Actions - google/android-uiconductor GitHub Wiki

Click/Swipe/Long Click Actions

Click action is the basic action one can perform.UI Conductor also supports special click actions like Longclick, Double Click, Zoom In and Zoom Out. Swipe is another most widely used action, and the required buttons are present beside the device UI(left/right/up/down). You can perform a long click action on the required portion as well.

specialclick

Home button

There is a home button located to the left of the UI window, The difference between the button and the click on the device UI is that the external Home button works using the adb command and the home on the device UI functions as a normal click action. It is preferred to use the Home button because some devices may have a physical home button instead of the on screen touch.

Command Line Action

In UIConductor, we treat every single step during the test as an action. When we create complex workflow it is very normal we want to run some adb command, or sometimes external python script.

commandline

Logcat validation

Logcat validation can be performed when you are searching for some element in the logs. For example you have a scenario where you want to validate the presence of string "display".

  1. Select the Add action tile and then choose LogCat Validation Action.
  2. Type the logcat command for the logs in the commandline field, for instance "adb logcat".
  3. Select the Match type and then enter display in the text pattern and select the stop type.

Screenshot

This action can be used to take the picture of the screen and can be added after every validation action to visually verify the right path in our test flow.

this

Input Action

The purpose of this action is to provide long input strings in the required fields instead of individual keyboard click, hence reducing the number of test steps.

inputaction

Reboot Action

As the name suggests, this action is used to perform a reboot action in the test. Some of the work flows need a reboot of the device in between, So this action can help the user to restart the device in such conditions.

this

NOTE: By default the value in time is set as 30 seconds, if you think the reboot is taking too long or completes fast you can change the time accordingly. If the check box is selected, then the reboot will be skipped and the device will be directly connected to UI Conductor.