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
- Go to Central > New Custom Module.
- Go to your Target (whatever Target you are using for your app.)
- Click the Choose UI Automator custom module button.
- Click +Add Custom Module.
- 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.
- Open your Target in a Clip and add the uiautomator action.
- 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.
- 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.