TestProject Forum
Powered by leading experts in the test automation community

Exception in startRecordingScreen on iOS

Hi,
when I call the startRecordingScreen on iOS, it throws an exception “Error: ‘ffmpeg’ binary is not found in PATH…”.
I’ve download and put it on path environment variable, but it continues failing.
Can you help me?

Hi @carmelo.gascon .

Are you trying to run the recording session from the SDK?
Can you please provide a screenshot of the following error message?

Hi @Vladyslav,

Yes, I’m trying to record the session from the SDK. In Android it works well.
Next you have the appium log info when I launch the command:

2020-06-02 13:50:43.852 [HTTP] --> POST /wd/hub/session/61ee8edb-3061-4752-b207-cb579b8dbcc9/appium/start_recording_screen
2020-06-02 13:50:43.853 [HTTP] {}
2020-06-02 13:50:43.853 [debug] [W3C (61ee8edb)] Calling AppiumDriver.startRecordingScreen() with args: [null,“61ee8edb-3061-4752-b207-cb579b8dbcc9”]
2020-06-02 13:50:43.853 [debug] [XCUITest] Executing command ‘startRecordingScreen’
2020-06-02 13:50:43.853 [XCUITest] Checking if there is/was a previous screen recording. Set ‘forceRestart’ option to ‘true’ if you’d like to skip this step.
2020-06-02 13:50:43.853 [XCUITest] Screen recording is not running. There is nothing to stop.
2020-06-02 13:50:43.854 [DevCon Factory] Releasing connections for 00008020-00051CCC1AD8003A device on 9100 port number
2020-06-02 13:50:43.855 [DevCon Factory] No cached connections have been found
2020-06-02 13:50:43.856 [debug] [WD Proxy] Matched ‘/appium/settings’ to command name ‘getSettings’
2020-06-02 13:50:43.856 [debug] [WD Proxy] Proxying [GET /appium/settings] to [GET http://localhost:8100/session/714E4B81-A32E-48A1-9E4F-C7A065AD6209/appium/settings] with no body
2020-06-02 13:50:43.863 [debug] [WD Proxy] Got response with status 200: {
2020-06-02 13:50:43.863 [debug] [WD Proxy] “value” : {
2020-06-02 13:50:43.864 [debug] [WD Proxy] “screenshotOrientation” : “auto”,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “shouldUseCompactResponses” : true,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “mjpegServerFramerate” : 10,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “snapshotMaxDepth” : 50,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “activeAppDetectionPoint” : “64.00,64.00”,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “acceptAlertButtonSelector” : “”,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “snapshotTimeout” : 15,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “elementResponseAttributes” : “type,label”,
2020-06-02 13:50:43.864 [debug] [WD Proxy] “keyboardPrediction” : 0,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “screenshotQuality” : 1,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “keyboardAutocorrection” : 0,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “useFirstMatch” : false,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “reduceMotion” : false,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “defaultActiveApplication” : “auto”,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “mjpegScalingFactor” : 100,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “mjpegServerScreenshotQuality” : 25,
2020-06-02 13:50:43.865 [debug] [WD Proxy] “dismissAlertButtonSelector” : “”,
2020-06-02 13:50:43.866 [debug] [WD Proxy] “includeNonModalElements” : false
2020-06-02 13:50:43.866 [debug] [WD Proxy] },
2020-06-02 13:50:43.866 [debug] [WD Proxy] “sessionId” : “714E4B81-A32E-48A1-9E4F-C7A065AD6209”
2020-06-02 13:50:43.866 [debug] [WD Proxy] }
2020-06-02 13:50:43.876 [DevCon Factory] Releasing connections for 00008020-00051CCC1AD8003A device on 9100 port number
2020-06-02 13:50:43.877 [DevCon Factory] No cached connections have been found
2020-06-02 13:50:43.877 [debug] [W3C (61ee8edb)] Encountered internal error running command: Error: ‘ffmpeg’ binary is not found in PATH. Install it using ‘brew install ffmpeg’. Check https://www.ffmpeg.org/download.html for more details.
2020-06-02 13:50:43.878 [debug] [W3C (61ee8edb)] at ScreenRecorder.start (C:\snapshot\tmp\node_modules\appium-xcuitest-driver\lib\commands\recordscreen.js:43:13)
2020-06-02 13:50:43.879 [HTTP] <-- POST /wd/hub/session/61ee8edb-3061-4752-b207-cb579b8dbcc9/appium/start_recording_screen 500 26 ms - 749

@carmelo.gascon , the same will not work for iOS for few reasons

  1. TestProject doesn’t support iOS simulators
  2. In order to record iOS app you need to provide iOS configurations on the following page
    https://app.testproject.io/#/settings/ios
    Including Certificate and Provisioning profile with real device that you will use for recording.
    These can be retrieved from your personal Apple developer account, if you have one

Hi @Vladyslav, I’m using real devices, not simulators.

Hi @Vladyslav, I’m using real devices, not simulators.

Can you help me solving this issue? Do you need more info about my scenario/logs?