android-emulator-runner icon indicating copy to clipboard operation
android-emulator-runner copied to clipboard

UI tests failing on emulator on macOS vm

Open RotBolt opened this issue 4 years ago • 5 comments

UI tests are not failing on my local machine but on my gh action using this , it fails here https://github.com/RotBolt/ProjectConf/runs/765406708?check_suite_focus=true

RotBolt avatar Jun 12 '20 12:06 RotBolt

Could you try again with the following?

script: |
  adb logcat -c
  adb logcat *:E &
  ./gradlew connectedCheck

I wonder if it's the new build-tools 30.0.0 we updated to in the latest release. Could you try with the previous version of the action?

uses: reactivecircus/[email protected]

ychescale9 avatar Jun 12 '20 13:06 ychescale9

I will try these and show the logcat to you. But I guess the issue is related to sceen size. Might be view is not visible on default emulator provided by action

RotBolt avatar Jun 12 '20 18:06 RotBolt

this is an issue with me and i think it's because of the screen size as well. what emulator did you end up using? i've tried multiple emulators but tests still seem to fail often on different test cases with each run.

binglaianchor avatar Feb 06 '21 22:02 binglaianchor

@binglaianchor you could see my Github action pipeline here https://github.com/tech-conferences/ProjectConf/blob/master/.github/workflows/android-master.yml

RotBolt avatar Feb 07 '21 16:02 RotBolt

I had a similar issue. In my case, my recorded tests (on a Pixel emulator) failed on a Nexus 6. Turns out the ViewMatcher had excessive parameters which I manually cut down to the essential checks only.

sprajagopal avatar Jun 15 '21 08:06 sprajagopal

Closing because screen-size or infrastructure related

mrk-han avatar Nov 02 '22 04:11 mrk-han