UI tests failing on AVD every time

step
android
#1

Unable to pass the UI tests we have as part of our TestSuite. I am using a GradleRunner task to initiate the UI testing on the AVD, however all the fail with same error below:

java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Root:

Also, the same workflow works fine on my machine if I run it locally and all the test cases pass.

Any help would be appreciated to resolve this issue.

Gradle runner task

  • gradle-runner@1:
    inputs:
    - gradlew_path: “$PROJECT_LOCATION/gradlew”
    - retry_on_failure: ‘no’
    - gradle_options: ‘’
    - gradle_task: “${MODULE}:connectedDebugAndroidTest ${SMOKE_SUITE_PACKAGE}”

Stack Info
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: standard

0 Likes

#2

Hello @vikramparimi :wave:

Can you please send us the log file or the URL of the related build and also enable Support Access on the Settings tab of the app ( https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/ ) so that we can take a more in-depth look? :slight_smile:

0 Likes