question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS: ScreenRecord: Wrong video saved when running parallel tests

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
amedvedjevcommented, Feb 25, 2019

mjpegServerPort - made it work!

1reaction
amedvedjevcommented, Feb 25, 2019

found “mjpegServerPort” in XCUITests will try to change it. it is absent -> http://appium.io/docs/en/writing-running-appium/caps/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found