AWS Device Farm
Developer Guide (API Version 2015-06-23)

Troubleshooting UI Automator Tests in AWS Device Farm

The following topic lists error messages that occur during the upload of UI Automator tests and recommends workarounds to resolve each error.


If you see the following message, follow these steps to fix the issue.


We could not open your test JAR file. Please verify that the file is valid and try again.


The instructions below are based on Linux x86_64 and Mac.

Make sure that you can unzip the application package without errors. In the following example, the package's name is com.uiautomator.example.jar.

  1. Copy your application package to your working directory, and then run the following command:

    $ unzip com.uiautomator.example.jar
  2. After you successfully unzip the package, you can find the working directory tree structure by running the following command:

    $ tree .

    A valid UI Automator package should produce output like the following:

    . |-- classes.dex |-- META-INF (directory) | `-- MANIFEST.MF `-- (any other files)

    For more information, see UI Automator.