iOS: ScreenRecord: Wrong video saved when running parallel tests
See original GitHub issueThe problem
Wrong video attached while running parallel tests. Maybe problem cause default:
const DEFAULT_MJPEG_SERVER_PORT = 9100;
when all recorders use same port… not sure. Why not to add this port into capabilities for iOS?
Environment
- Appium version (or git revision) that exhibits the issue: 1.11.0
- Desktop OS/version used to run Appium: MacOS 10.13.6
- Node.js version (unless using Appium.app|exe): v11.10.0
- Npm or Yarn package manager: 6.8.0
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: iPhone6s with iOS 12.last
Details
configure parallel test execution with iOS devices and video recording. i use testNG with parallel methods and thread count = 3. each device uses it own Appium server with different port. make some tests fail. check saved video. only very few videos matches test steps. most of videos are taken from some other test.
Link to Appium logs
example of command from log:
'ffmpeg -f mjpeg -i http://localhost:9100 -vf scale=320:-2 -vcodec h264 -y /var/folders/_r/nbsgp9v95gq0ht_43kqc1lqc0000gq/T/2019125-24248-g3a6u.eoc939/appium_03b2c9.mp4'
Code To Reproduce Issue [ Good To Have ]
n/a
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to solve “Screen Recording failed to save due to
My iPad runs on iPadOS 15.3, and I am facing this issue when I try to save a recording. My recordings are around...
Read more >Issue: iOS real device test recording shorter than intended
I have determined its not an issue with parallel testing, the same device ... Log shows no errors, but video ends halfway through...
Read more >Windows & iOS 14 Screen Recording Not Working
For iOS 11: Open Settings > Genral > Restrictions > Game Center > Screen Recording and turn it on.
Read more >Fix: iOS 15 Screen Recording Not Working on iPhone iPad
It means that iPhone not recording videos, the screen recording failed to save, the recording videos have no sound, the screen recorder ......
Read more >[SOLVED] Why can't I screen record - 2021 Guide - CopyTrans
A screen recording might not be saved if you don't have enough storage on your iOS device. To check the amount of storage...
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
mjpegServerPort - made it work!
found “mjpegServerPort” in XCUITests will try to change it. it is absent -> http://appium.io/docs/en/writing-running-appium/caps/