Appium Mobile Test Execution Fails on AWS Device Farm Despite Correct Project Packaging

Hi,

I am trying to run my mobile automation tests on AWS Device Farm using Appium. I followed the official AWS documentation for Appium test setup and packaging. I created the ZIP file according to the guidelines, uploaded it to Device Farm, and triggered the run. However, the tests do not execute successfully on a real device.

Even though Device Farm completes the run in about 1 minute, the results show:

  • Setup Suite: Passed

  • Teardown Suite: Passed

  • Tests Suite: Failed (1 test failed)

What I have already done:

  • Packaged the project according to AWS documentation (including pom.xml, dependencies, and test source folders).

  • Ensured that Appium server version, capabilities, and drivers match the device type.

  • Verified that the tests run successfully locally.

  • Set mvn clean package -DskipTests=true during packaging.

  • Confirmed that the test runner and suite structure are correct.

    I would appreciate guidance on any missing configuration, required capabilities, or packaging structure issues.