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