appium: bug: Android produce blank screenshot / black video within GitHub actions

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I run tests within a CI, I upload an artifacts that contains screenshots and videos of failed test.

This is how it look like for the screenshots image

This is the video shot in CI: <video src="https://user-images.githubusercontent.com/77674046/204561099-597271b2-9bcd-4b68-ba41-e7273432b2b6.mp4"></video>

This is the video log: wdio-0-0-Video-reporter.log

Both work locally.

Expected Behavior

We expect to have proper screenshot of our app

Minimal Reproducible Example

Environment

  • Operating system: macos-12 github action
  • If running via appium CLI…
    • Appium CLI version (output of appium --version): 2.0.0-beta.46
    • Node.js version (output of node --version): v18.7.0
    • yarn version (output of yarn --version): 1.22.15
    • Last appium version which did not exhibit the problem: NA
  • Appium driver(s) and their version(s): - uiautomator2@2.9.0 [installed (NPM)]
  • Appium plugin(s) and their version(s): NA
  • Platform and version under test: Android 10.0 Nexus6P
  • Real device or emulator/simulator: emulator

Link to Appium Logs

https://github.com/pass-culture/pass-culture-app-native/actions/runs/3573959420/jobs/6008640936

Futher Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

I usually pin issues in such case, although this only makes sense if we get the same issue reported by multiple people. For now it was only a single report so far.

@kopax-polyconseil can you please help me how to record video for android emulator on macos in github actions?

These are client logs, I need server ones

If it works locally then, most likely, there is an issue with the screenshot fetching/uploading code. It has nothing to do with driver functionality