UI Automator for Android

Document created by DPM Admin Employee on Jul 18, 2017
Version 1Show Document
  • View in full screen mode

Prerequisites

 

Your Android device must be tethered to a machine running conductor and UI Automator must be enabled. To enable UI Automator, open your Conductor Preferences and place a checkmark next to Allow UI Automator [Android].

Running UI Automator

 

  1. Go to Central > New Custom Module.
  1. Go to your Target (whatever Target you are using for your app.)
  1. Click the Choose UI Automator custom module button.
  1. Click +Add Custom Module.
  1. Upload the appropriate JAR file. You can rename the file anything without spaces. You will use the same JAR file name when adding the uiautomator action to your Target.

 

 

 

 

  1. Open your Target in a Clip and add the uiautomator action.


  1. Enter the following in the app action details:
  • Class Name: Specify with package prefix.
  • Test Name: Specify which test to run. If you don’t specify, everything in that class will be run.
  • JAR: Specify the JAR file. Name is the same as what you uploaded to Custom Module.

  1. Hit Play in the Composition Editor.

After UI Automator Action

 

After your UI Automator action, the test should end in one of two places:

 

  • if you have not performed a native app action, including a noOp, you need to go back to TouchTest Agent.

  • if you have opened your app, you need to go back to your app.

Attachments

    Outcomes