bug: Android produce blank screenshot / black video within GitHub actions
See original GitHub issueIs 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
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
- github action workflow: https://github.com/pass-culture/pass-culture-app-native/blob/8ee2e682c8b0d299e8aa64586efc627a9b6b65ab/.github/workflows/e2e-android-app.yml
- code to do screenshot: https://github.com/pass-culture/pass-culture-app-native/blob/8ee2e682c8b0d299e8aa64586efc627a9b6b65ab/e2e/config/wdio.shared.conf.ts#L159-L174
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 ofyarn --version
): 1.22.15- Last
appium
version which did not exhibit the problem: NA
- Appium CLI version (output of
- 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
Issue Analytics
- State:
- Created 10 months ago
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Android emulator on macos blank screenshots and videos
Issue was reported to appium bug: Android produce blank screenshot / black video within GitHub actions appium/appium#17837 , but they advised us to...
Read more >Android device screenshots are transparent on Github Actions
Description I use Github Actions to run a pipeline that tests a react ... bug: Android produce blank screenshot / black video within...
Read more >Android emulator boots up with black screen on microsoft ...
Description I have setup a pipeline in azure devops to run automated tests using android emulator on microsoft hosted agent .
Read more >Does not work with apps that block screenshots #36 - GitHub
Apps such as Bitwarden and Silence block screenshots. Attemtping to take a screenshot on the device results in this error.
Read more >Getting a black screen when using webrtc video #37 - GitHub
Great work. I was able to set up the project and run it. But accessing video is not working, screenshotting works but as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.
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