Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adriandumitrascu19/be5e3bfff52d2d9c19d99b7bd3980d4f to your computer and use it in GitHub Desktop.
Save adriandumitrascu19/be5e3bfff52d2d9c19d99b7bd3980d4f to your computer and use it in GitHub Desktop.
[AppiumDriver@af59] Calling AppiumDriver.getSessions() with args: []
[AppiumDriver@af59] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /sessions 304 11 ms - -
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dvhutohcqzfjarekonrsrsjyicyl","appium:udid":"00008110-00165D182279801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dvhutohcqzfjarekonrsrsjyicyl","appium:udid":"00008110-00165D182279801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:s...
[AppiumDriver@af59] Calling AppiumDriver.createSession() with args: [{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dvhutohcqzfjarekonrsrsjyicyl","appium:udid":"00008110-00165D182279801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dvhutohcqzfjarekonrsrsjyicyl","appium:udid":"00008110-00165D182279801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"...
[AppiumDriver@af59] Event 'newSessionRequested' logged at 1737023834419 (12:37:14 GMT+0200 (Eastern European Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'tvOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@af59] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@af59] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@af59] Appium's BaseDriver version is 9.15.0
[AppiumDriver@af59] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@d8dd]
[XCUITestDriver@d8dd] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:app": "de.telekom.magentatv",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Apple TV 4K",
"appium:derivedDataPath": "/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dvhutohcqzfjarekonrsrsjyicyl",
"appium:udid": "00008110-00165D182279801E",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@d8dd] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[c71e4979][XCUITestDriver@d8dd] Session created with session id: c71e4979-fb82-43d0-9002-c06bbba61948
[c71e4979][XCUITest] Current user: 'adriandumitrascu'
[c71e4979][XCUITestDriver@d8dd] Available real devices: fff48:e1:5c:a6:a8:6ffff
[c71e4979][XCUITestDriver@d8dd] {}
[c71e4979][DevCon Factory] Releasing connections for 00008110-00165D182279801E device on any port number
[c71e4979][DevCon Factory] No cached connections have been found
[c71e4979][AppiumDriver@af59] Event 'newSessionStarted' logged at 1737023852858 (12:37:32 GMT+0200 (Eastern European Standard Time))
[c71e4979][AppiumDriver@af59] Encountered internal error running command: Error: Unknown device or simulator UDID: '00008110-00165D182279801E'
at XCUITestDriver.determineDevice (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:1162:21)
at XCUITestDriver.start (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:512:40)
at XCUITestDriver.createSession (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:437:7)
at AppiumDriver.createSession (/usr/local/lib/node_modules/appium/lib/appium.js:384:35)
[c71e4979][HTTP] <-- POST /session 500 18514 ms - 622
@adriandumitrascu19
Copy link
Author

adriandumitrascu19 commented Jan 16, 2025

I have cloned the repository
moved to the workaround branch
npm install
npm link --source=local

@adriandumitrascu19
Copy link
Author

ENH6YV0TJW7K:~ adriandumitrascu$ appium
(node:5155) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
[Appium] Welcome to Appium v2.15.0
[Appium] The APPIUM_HOME environment variable: /usr/local/lib/node_modules/appium
[Appium] Attempting to load driver xcuitest...
[Appium] Requiring driver at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] XCUITestDriver has been successfully loaded in 6.616s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
http://127.0.0.1:4723/ (only accessible from the same host)
http://192.168.0.203:4723/
[Appium] Available drivers:
[Appium] - xcuitest@7.35.1 (automationName 'XCUITest')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-atygjtlzhmclcddyzjqfzjhqdaoh","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:webDriverAgentUrl":"http://192.168.0.204:8100","appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-atygjtlzhmclcddyzjqfzjhqdaoh","appium:udid":"00008110-0010295A227A801E","appium:clearSystemF...
[AppiumDriver@5c59] Calling AppiumDriver.createSession() with args: [{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-atygjtlzhmclcddyzjqfzjhqdaoh","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:webDriverAgentUrl":"http://192.168.0.204:8100","appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:app":"de.telekom.magentatv","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-atygjtlzhmclcddyzjqfzjhqdaoh","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appi...
[AppiumDriver@5c59] Event 'newSessionRequested' logged at 1737541856168 (12:30:56 GMT+0200 (Eastern European Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'tvOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@5c59] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@5c59] Checking BaseDriver versions for Appium and XCUITestDriver
AppiumDriver@5c59] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@badb]
[XCUITestDriver@badb] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:app": "de.telekom.magentatv",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Apple TV 4K",
"appium:derivedDataPath": "/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-atygjtlzhmclcddyzjqfzjhqdaoh",
"appium:udid": "00008110-0010295A227A801E",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:webDriverAgentUrl": "http://192.168.0.204:8100",
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@badb] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[XCUITestDriver@badb] The following provided capabilities were not recognized by this driver:
[XCUITestDriver@badb] skipDeviceCheck
[7d27e285][XCUITestDriver@badb] Session created with session id: 7d27e285-146c-4328-9320-ab843a5d3c1f
[7d27e285][XCUITest] Current user: 'adriandumitrascu'
[7d27e285][XCUITestDriver@badb] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
[7d27e285][XCUITestDriver@badb] Creating iDevice object with udid '00008110-0010295A227A801E'
[7d27e285][XCUITestDriver@badb] Determining device to run tests on: udid: '00008110-0010295A227A801E', real device: true
[7d27e285][XCUITestDriver@badb] Event 'xcodeDetailsRetrieved' logged at 1737541872244 (12:31:12 GMT+0200 (Eastern European Standard Time))
[7d27e285][XCUITestDriver@badb] App is an iOS bundle, will attempt to run as pre-existing
[7d27e285][XCUITestDriver@badb] Event 'appConfigured' logged at 1737541872245 (12:31:12 GMT+0200 (Eastern European Standard Time))
[7d27e285][XCUITestDriver@badb] Event 'resetStarted' logged at 1737541872245 (12:31:12 GMT+0200 (Eastern European Standard Time))
[7d27e285][XCUITestDriver@badb] Reset: fullReset not set. Leaving as is
[7d27e285][XCUITestDriver@badb] Event 'resetComplete' logged at 1737541872245 (12:31:12 GMT+0200 (Eastern European Standard Time))
[7d27e285][XCUITestDriver@badb] Using WDA path: '/Users/adriandumitrascu/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[7d27e285][XCUITestDriver@badb] Using WDA agent: '/Users/adriandumitrascu/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[7d27e285][XCUITestDriver@badb] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
[7d27e285][XCUITestDriver@badb] Setting up real device
[7d27e285][XCUITestDriver@badb] {}
[7d27e285][DevCon Factory] Releasing connections for 00008110-0010295A227A801E device on any port number
[7d27e285][DevCon Factory] No cached connections have been found
[7d27e285][AppiumDriver@5c59] Event 'newSessionStarted' logged at 1737541872271 (12:31:12 GMT+0200 (Eastern European Standard Time))
[7d27e285][AppiumDriver@5c59] Encountered internal error running command: Error: Could not find a pair record for device '00008110-0010295A227A801E'. Please first pair with the device
at startLockdownSession (/Users/adriandumitrascu/appium-xcuitest-driver/node_modules/appium-ios-device/lib/utilities.js:168:13)
at startService (/Users/adriandumitrascu/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:117:20)
at Object.startInstallationProxyService (/Users/adriandumitrascu/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:66:18)
at RealDevice.fetchAppInfo (/Users/adriandumitrascu/appium-xcuitest-driver/lib/real-device.js:197:21)
at RealDevice.isAppInstalled (/Users/adriandumitrascu/appium-xcuitest-driver/lib/real-device.js:181:20)
at XCUITestDriver.start (/Users/adriandumitrascu/appium-xcuitest-driver/lib/driver.js:674:9)
at XCUITestDriver.createSession (/Users/adriandumitrascu/appium-xcuitest-driver/lib/driver.js:429:7)
at AppiumDriver.createSession (/usr/local/lib/node_modules/appium/lib/appium.js:384:35)
[7d27e285][HTTP] <-- POST /session 500 16231 ms - 704

Here are my latest finds, so it seems that skipDeviceCheck was not recognized by the driver?
I am out of solutions :(, I know if might sound strange, do you want to have a call somehow ? I am pretty stuck

@KazuCocoa
Copy link

Did you use appium/appium-xcuitest-driver#2194 branch? The capability is added by the PR, so it could indicate your run was not with the branch's changes

@adriandumitrascu19
Copy link
Author

adriandumitrascu19 commented Jan 23, 2025

@KazuCocoa I much appreciate your help.

Here is my latest:
I have set webdriveragent to my local IP 192.168.0.204:8100
I have paired the device
Here are the logs:

[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:app":"de.telekom.magentatv","appium:webDriverAgentUrl":"http://192.168.0.204:8100","appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout...
[AppiumDriver@728a] Calling AppiumDriver.createSession() with args: [{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:app":"de.telekom.magentatv","appium:webDriverAgentUrl":"http://192.168.0.204:8100","appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Apple TV 4K","appium:derivedDataPath":"/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet","appium:udid":"00008110-0010295A227A801E","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:ski...
[AppiumDriver@728a] Event 'newSessionRequested' logged at 1737629145151 (12:45:45 GMT+0200 (Eastern European Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'tvOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/adriandumitrascu/Documents/appium-xcuitest-driver
[Appium] Requiring driver at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/build/index.js
[AppiumDriver@728a] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@728a] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@728a] Appium's BaseDriver version is 9.15.0
[AppiumDriver@728a] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@16d7]
[XCUITestDriver@16d7] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Apple TV 4K",
"appium:derivedDataPath": "/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet",
"appium:udid": "00008110-0010295A227A801E",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:app": "de.telekom.magentatv",
"appium:webDriverAgentUrl": "http://192.168.0.204:8100",
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@16d7] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[01789120][XCUITestDriver@16d7] Session created with session id: 01789120-447b-4e8b-9228-771c5e5e98d9
[01789120][XCUITest] Current user: 'adriandumitrascu'
[01789120][XCUITestDriver@16d7] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
[01789120][XCUITestDriver@16d7] Creating iDevice object with udid '00008110-0010295A227A801E'
[01789120][XCUITestDriver@16d7] Determining device to run tests on: udid: '00008110-0010295A227A801E', real device: true
[01789120][XCUITestDriver@16d7] Event 'xcodeDetailsRetrieved' logged at 1737629161365 (12:46:01 GMT+0200 (Eastern European Standard Time))
[01789120][XCUITestDriver@16d7] App is an iOS bundle, will attempt to run as pre-existing
[01789120][XCUITestDriver@16d7] Event 'appConfigured' logged at 1737629161365 (12:46:01 GMT+0200 (Eastern European Standard Time))
[01789120][XCUITestDriver@16d7] Event 'resetStarted' logged at 1737629161365 (12:46:01 GMT+0200 (Eastern European Standard Time))
[01789120][XCUITestDriver@16d7] Reset: fullReset not set. Leaving as is
[01789120][XCUITestDriver@16d7] Event 'resetComplete' logged at 1737629161366 (12:46:01 GMT+0200 (Eastern European Standard Time))
[01789120][XCUITestDriver@16d7] Using WDA path: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[01789120][XCUITestDriver@16d7] Using WDA agent: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[01789120][XCUITestDriver@16d7] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
[01789120][XCUITestDriver@16d7] Setting up real device
[01789120][XCUITestDriver@16d7] {}
[01789120][DevCon Factory] Releasing connections for 00008110-0010295A227A801E device on any port number
[01789120][DevCon Factory] No cached connections have been found
[01789120][AppiumDriver@728a] Event 'newSessionStarted' logged at 1737629161403 (12:46:01 GMT+0200 (Eastern European Standard Time))
[01789120][AppiumDriver@728a] Encountered internal error running command: Error: Could not find a pair record for device '00008110-0010295A227A801E'. Please first pair with the device
at startLockdownSession (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/utilities.js:168:13)
at startService (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:117:20)
at Object.startInstallationProxyService (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:66:18)
at RealDevice.fetchAppInfo (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/real-device.js:197:21)
at RealDevice.isAppInstalled (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/real-device.js:181:20)
at XCUITestDriver.start (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:641:9)
at XCUITestDriver.createSession (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:437:7)
at AppiumDriver.createSession (/Users/adriandumitrascu/.nvm/versions/node/v18.20.6/lib/node_modules/appium/lib/appium.js:384:35)
[01789120][HTTP] <-- POST /session 500 16408 ms - 786

@KazuCocoa
Copy link

KazuCocoa commented Jan 24, 2025

"appium:app": "de.telekom.magentatv" should be "appium:bundleId": "de.telekom.magentatv"

This is not the branch-specific, but more general capabilities usage.

@adriandumitrascu19
Copy link
Author

Done, I am able to build and Test the WebDriverAgent on my device but when I try to establish a connection it seems that it is not able to connect :(

AppiumDriver@1f90] Event 'newSessionRequested' logged at 1737709874731 (11:11:14 GMT+0200 (Eastern European Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'tvOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/adriandumitrascu/Documents/appium-xcuitest-driver
[Appium] Requiring driver at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/build/index.js
[AppiumDriver@1f90] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@1f90] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@1f90] Appium's BaseDriver version is 9.15.0
[AppiumDriver@1f90] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@c1d2]
[XCUITestDriver@c1d2] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Entertainment Room",
"appium:derivedDataPath": "/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:bundleId": "de.telekom.magentatv",
"appium:webDriverAgentUrl": "http://192.168.0.204:8100",
"appium:udid": "00008110-0010295A227A801E",
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@c1d2] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[b80dc8b2][XCUITestDriver@c1d2] Session created with session id: b80dc8b2-3b59-477b-9d9a-95ec3f459438
[b80dc8b2][XCUITest] Current user: 'adriandumitrascu'
[b80dc8b2][XCUITestDriver@c1d2] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
[b80dc8b2][XCUITestDriver@c1d2] Creating iDevice object with udid '00008110-0010295A227A801E'
[b80dc8b2][XCUITestDriver@c1d2] Determining device to run tests on: udid: '00008110-0010295A227A801E', real device: true
[b80dc8b2][XCUITestDriver@c1d2] Event 'xcodeDetailsRetrieved' logged at 1737709890851 (11:11:30 GMT+0200 (Eastern European Standard Time))
[b80dc8b2][XCUITestDriver@c1d2] Event 'appConfigured' logged at 1737709890851 (11:11:30 GMT+0200 (Eastern European Standard Time))
[b80dc8b2][XCUITestDriver@c1d2] Event 'resetStarted' logged at 1737709890851 (11:11:30 GMT+0200 (Eastern European Standard Time))
[b80dc8b2][XCUITestDriver@c1d2] Reset: fullReset not set. Leaving as is
[b80dc8b2][XCUITestDriver@c1d2] Event 'resetComplete' logged at 1737709890852 (11:11:30 GMT+0200 (Eastern European Standard Time))
[b80dc8b2][XCUITestDriver@c1d2] Using WDA path: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[b80dc8b2][XCUITestDriver@c1d2] Using WDA agent: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[b80dc8b2][XCUITestDriver@c1d2] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
[b80dc8b2][XCUITestDriver@c1d2] Setting up real device
[b80dc8b2][XCUITestDriver@c1d2] {}
[b80dc8b2][DevCon Factory] Releasing connections for 00008110-0010295A227A801E device on any port number
[b80dc8b2][DevCon Factory] No cached connections have been found
[b80dc8b2][AppiumDriver@1f90] Event 'newSessionStarted' logged at 1737709890864 (11:11:30 GMT+0200 (Eastern European Standard Time))
[b80dc8b2][AppiumDriver@1f90] Encountered internal error running command: Error: Could not find a pair record for device '00008110-0010295A227A801E'. Please first pair with the device
at startLockdownSession (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/utilities.js:168:13)
at startService (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:117:20)
at Object.startInstallationProxyService (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:66:18)
at RealDevice.fetchAppInfo (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/real-device.js:197:21)
at RealDevice.isAppInstalled (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/real-device.js:181:20)
at XCUITestDriver.start (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:641:9)
at XCUITestDriver.createSession (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:437:7)
at AppiumDriver.createSession (/Users/adriandumitrascu/.nvm/versions/node/v18.20.6/lib/node_modules/appium/lib/appium.js:384:35)
[b80dc8b2][HTTP] <-- POST /session 500 16135 ms - 786

@KazuCocoa
Copy link

KazuCocoa commented Jan 24, 2025

Hm, the error place at XCUITestDriver.start (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:641:9) should be skipped when this.skipDeviceCheck is true (== "appium:skipDeviceCheck": true,) in https://github.com/appium/appium-xcuitest-driver/pull/2194/files#diff-ed3c013edbc896bd87ef62539626fcdc8930a31f3cee7ecb37438e172af2c8e0R635

Let me check if the current branch goes through the this.skipDeviceCheck on my local

@KazuCocoa
Copy link

The branch had an issue handling the given capabilities with the recent master merger. I made a fix in the branch so it should work with latest branch

@adriandumitrascu19
Copy link
Author

Thanks for the info
After Pull from the branch, is it necessary to do a npm install again?
Also, I need to perform the linking again ?

@adriandumitrascu19
Copy link
Author

adriandumitrascu19 commented Jan 25, 2025

I made a pull from the branch and just performed an npm install, retried the connection:

[AppiumDriver@ec43] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@ec43] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@ec43] Appium's BaseDriver version is 9.15.0
[AppiumDriver@ec43] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@c5dc]
[XCUITestDriver@c5dc] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Entertainment Room",
"appium:derivedDataPath": "/Users/adriandumitrascu/Library/Developer/Xcode/DerivedData/WebDriverAgent-gyxbklmpxbbxzmcjiwmgcgxloyet",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:bundleId": "de.telekom.magentatv",
"appium:webDriverAgentUrl": "http://192.168.0.204:8100",
"appium:udid": "00008110-0010295A227A801E",
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@c5dc] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[051d6b72][XCUITestDriver@c5dc] Session created with session id: 051d6b72-7bdf-4641-887a-8a998ca4b96b
[051d6b72][XCUITest] Current user: 'adriandumitrascu'
[051d6b72][XCUITestDriver@c5dc] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
[051d6b72][XCUITestDriver@c5dc] Creating iDevice object with udid '00008110-0010295A227A801E'
[051d6b72][XCUITestDriver@c5dc] Determining device to run tests on: udid: '00008110-0010295A227A801E', real device: true
[051d6b72][XCUITestDriver@c5dc] Event 'xcodeDetailsRetrieved' logged at 1737800958730 (12:29:18 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Event 'appConfigured' logged at 1737800958730 (12:29:18 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Event 'resetStarted' logged at 1737800958730 (12:29:18 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Reset: fullReset not set. Leaving as is
[051d6b72][XCUITestDriver@c5dc] Event 'resetComplete' logged at 1737800958730 (12:29:18 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Using WDA path: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[051d6b72][XCUITestDriver@c5dc] Using WDA agent: '/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[051d6b72][XCUITestDriver@c5dc] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
[051d6b72][XCUITestDriver@c5dc] Setting up real device
[051d6b72][XCUITestDriver@c5dc] Skipping de.telekom.magentatv installation check since skipDeviceCheck was given.
[051d6b72][DevCon Factory] Requesting connection for device 00008110-0010295A227A801E on local port 8100
[051d6b72][DevCon Factory] Cached connections count: 0
[051d6b72][DevCon Factory] Successfully requested the connection for 00008110-0010295A227A801E:8100
[051d6b72][XCUITestDriver@c5dc] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[051d6b72][XCUITestDriver@c5dc] Trying to start WebDriverAgent once since at least one of webDriverAgentUrl,usePreinstalledWDA capabilities is provided
[051d6b72][XCUITestDriver@c5dc] Event 'wdaStartAttempted' logged at 1737800958733 (12:29:18 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Using provided WebdriverAgent at 'http://192.168.0.204:8100'
[051d6b72][WD Proxy] Matched '/status' to command name 'getStatus'
[051d6b72][WD Proxy] Proxying [GET /status] to [GET http://192.168.0.204:8100/status] with no body
[051d6b72][WD Proxy] connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] WDA is not listening at 'http://192.168.0.204:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] Event 'wdaSessionAttempted' logged at 1737800959975 (12:29:19 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Sending createSession command to WDA
[051d6b72][XCUITestDriver@c5dc] Matched '/status' to command name 'getStatus'
[051d6b72][XCUITestDriver@c5dc] Proxying [GET /status] to [GET http://192.168.0.204:8100/status] with no body
[051d6b72][XCUITestDriver@c5dc] connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] Event 'wdaSessionFailed' logged at 1737800961033 (12:29:21 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.0.204:8100
at JWProxy.command (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at XCUITestDriver.proxyCommand (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/commands/proxy-helper.js:103:35)
at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:887:59
at wrapped (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
at retry (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
at retryInterval (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:842:7
[051d6b72][XCUITestDriver@c5dc] {}
[051d6b72][DevCon Factory] Releasing connections for 00008110-0010295A227A801E device on any port number
[051d6b72][DevCon Factory] Found cached connections to release: ["00008110-0010295A227A801E:8100"]
[051d6b72][DevCon Factory] Cached connections count: 0
[051d6b72][AppiumDriver@ec43] Event 'newSessionStarted' logged at 1737800961035 (12:29:21 GMT+0200 (Eastern European Standard Time))
[051d6b72][AppiumDriver@ec43] Encountered internal error running command: Error: Unable to start WebDriverAgent session. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.0.204:8100
at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:902:17
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at wrapped (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
at retry (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
at retryInterval (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
at /Users/adriandumitrascu/Documents/appium-xcuitest-driver/lib/driver.js:842:7
[051d6b72][HTTP] <-- POST /session 500 18589 ms - 1064

@KazuCocoa
Copy link

[051d6b72][XCUITestDriver@c5dc] Skipping de.telekom.magentatv installation check since skipDeviceCheck was given.

You have this log, so the branch was working. Your issue here is:

[051d6b72][XCUITestDriver@c5dc] Using provided WebdriverAgent at 'http://192.168.0.204:8100/'
[051d6b72][WD Proxy] Matched '/status' to command name 'getStatus'
[051d6b72][WD Proxy] Proxying [GET /status] to [GET http://192.168.0.204:8100/status] with no body
[051d6b72][WD Proxy] connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] WDA is not listening at 'http://192.168.0.204:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] Event 'wdaSessionAttempted' logged at 1737800959975 (12:29:19 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] Sending createSession command to WDA
[051d6b72][XCUITestDriver@c5dc] Matched '/status' to command name 'getStatus'
[051d6b72][XCUITestDriver@c5dc] Proxying [GET /status] to [GET http://192.168.0.204:8100/status] with no body
[051d6b72][XCUITestDriver@c5dc] connect ECONNREFUSED 192.168.0.204:8100
[051d6b72][XCUITestDriver@c5dc] Event 'wdaSessionFailed' logged at 1737800961033 (12:29:21 GMT+0200 (Eastern European Standard Time))
[051d6b72][XCUITestDriver@c5dc] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.0.204:8100
at JWProxy.command (/Users/adriandumitrascu/Documents/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:350:13)

The appium xcuitest driver was not able to access to WDA running on the TV. Did you launch WDA on the TV device before the session start?

@adriandumitrascu19
Copy link
Author

adriandumitrascu19 commented Jan 27, 2025

The only thing I can do is start WebDriverAgent from Product-Test and only after that can I establish a session with Appium. Is this the only way we can do it? If I do not start with "Test" I cannot establish the connection.

It seems that, in order to run my test cases, I need to include all the capabilities suggested by you and yeah now I'm able to run my tests, thank you so much, this helps me.

@adriandumitrascu19
Copy link
Author

adriandumitrascu19 commented May 14, 2025

Hello @KazuCocoa I am writing to you again maybe you ll have a little bit of time to help me:
Long story short, I have made the same setup on a mac mini with:
Xcode 16.2
appium 2.15
Logs:
can you somehow help me understand ?

Last login: Wed May 14 13:38:41 on ttys000
minimacftp22@miniMacFtp22s-Mac-mini ~ % appium
[Appium] Welcome to Appium v2.15.0 (REV bab86d5de571015b63fd8fc30b47bbe072a1290e)
[Appium] The APPIUM_HOME environment variable: /usr/local/lib/node_modules/appium
[Appium] Attempting to load driver uiautomator2...
[Appium] Attempting to load driver xcuitest...
[Appium] Requiring driver at /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/build/index.js
[Appium] Requiring driver at /Users/minimacftp22/Documents/appium-xcuitest-driver/build/index.js
[Appium] AndroidUiautomator2Driver has been successfully loaded in 1.083s
[Appium] XCUITestDriver has been successfully loaded in 1.084s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
http://127.0.0.1:4723/ (only accessible from the same host)
http://172.16.115.202:4723/
http://172.16.15.202:4723/
[Appium] Available drivers:
[Appium] - uiautomator2@4.2.0 (automationName 'UiAutomator2')
[Appium] - xcuitest@7.35.1 (automationName 'XCUITest')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Entertainment Room","appium:derivedDataPath":"/Users/minimacftp22/Library/Developer/Xcode/DerivedData/WebDriverAgent-guwhtqszvhunzyglkryhhrnagtpn","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:webDriverAgentUrl":"http://192.168.2.157:8100","appium:udid":"00008110-0010295A227A801E","appium:bundleId":"de.telekom.magentatv","appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Entertainment Room","appium:derivedDataPath":"/Users/minimacftp22/Library/Developer/Xcode/DerivedData/WebDriverAgent-guwhtqszvhunzyglkryhhrnagtpn","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceChe...
[AppiumDriver@2a9e] Calling AppiumDriver.createSession() with args: [{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Entertainment Room","appium:derivedDataPath":"/Users/minimacftp22/Library/Developer/Xcode/DerivedData/WebDriverAgent-guwhtqszvhunzyglkryhhrnagtpn","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:webDriverAgentUrl":"http://192.168.2.157:8100","appium:udid":"00008110-0010295A227A801E","appium:bundleId":"de.telekom.magentatv","appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"tvOS","appium:platformVersion":"18.2","appium:automationName":"XCUITest","appium:noReset":true,"appium:deviceName":"Entertainment Room","appium:derivedDataPath":"/Users/minimacftp22/Library/Developer/Xcode/DerivedData/WebDriverAgent-guwhtqszvhunzyglkryhhrnagtpn","appium:clearSystemFiles":true,"appium:newCommandTimeout":"10000","appium:skipDeviceCheck":true,"appium:skipLogCapture":true,"appium:webDr...
[AppiumDriver@2a9e] Event 'newSessionRequested' logged at 1747219317126 (13:41:57 GMT+0300 (Eastern European Summer Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'tvOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/minimacftp22/Documents/appium-xcuitest-driver
[Appium] Requiring driver at /Users/minimacftp22/Documents/appium-xcuitest-driver/build/index.js
[AppiumDriver@2a9e] Appium v2.15.0 creating new XCUITestDriver (v7.35.1) session
[AppiumDriver@2a9e] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@2a9e] Appium's BaseDriver version is 9.17.0
[AppiumDriver@2a9e] XCUITestDriver's BaseDriver version is 9.15.0
[XCUITestDriver@07f0]
[XCUITestDriver@07f0] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "tvOS",
"appium:platformVersion": "18.2",
"appium:automationName": "XCUITest",
"appium:noReset": true,
"appium:deviceName": "Entertainment Room",
"appium:derivedDataPath": "/Users/minimacftp22/Library/Developer/Xcode/DerivedData/WebDriverAgent-guwhtqszvhunzyglkryhhrnagtpn",
"appium:clearSystemFiles": true,
"appium:newCommandTimeout": "10000",
"appium:skipDeviceCheck": true,
"appium:skipLogCapture": true,
"appium:webDriverAgentUrl": "http://192.168.2.157:8100",
"appium:udid": "00008110-0010295A227A801E",
"appium:bundleId": "de.telekom.magentatv",
"appium:connectHardwareKeyboard": true
},
"firstMatch": [
{}
]
}
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[XCUITestDriver@07f0] Capability 'newCommandTimeout' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[0b85a7fb][XCUITestDriver@07f0] Session created with session id: 0b85a7fb-9ec4-4491-b88d-28b5ada84f0b
[0b85a7fb][XCUITest] Current user: 'minimacftp22'
[0b85a7fb][Xcode] '/Library/Developer/CommandLineTools' is not a valid Xcode path. Consider running any of:
sudo xcode-select -s "/Users/minimacftp22/Downloads/Xcode.app/Contents/Developer"
sudo xcode-select -s "/Users/minimacftp22/Downloads/Xcode 2.app/Contents/Developer"
sudo xcode-select -s "/Users/minimacftp22/Downloads/Xcode 3.app/Contents/Developer"
sudo xcode-select -s "/Users/minimacftp22/Downloads/Xcode 4.app/Contents/Developer"
to address this issue.
[0b85a7fb][XCUITestDriver@07f0] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
[0b85a7fb][XCUITestDriver@07f0] Creating iDevice object with udid '00008110-0010295A227A801E'
[0b85a7fb][XCUITestDriver@07f0] Determining device to run tests on: udid: '00008110-0010295A227A801E', real device: true
[0b85a7fb][XCUITestDriver@07f0] Event 'xcodeDetailsRetrieved' logged at 1747219317201 (13:41:57 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Event 'appConfigured' logged at 1747219317202 (13:41:57 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Event 'resetStarted' logged at 1747219317202 (13:41:57 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Reset: fullReset not set. Leaving as is
[0b85a7fb][XCUITestDriver@07f0] Event 'resetComplete' logged at 1747219317202 (13:41:57 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Using WDA path: '/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[0b85a7fb][XCUITestDriver@07f0] Using WDA agent: '/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[0b85a7fb][XCUITestDriver@07f0] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
[0b85a7fb][XCUITestDriver@07f0] Setting up real device
[0b85a7fb][XCUITestDriver@07f0] Skipping de.telekom.magentatv installation check since skipDeviceCheck was given.
[0b85a7fb][DevCon Factory] Requesting connection for device 00008110-0010295A227A801E on local port 8100
[0b85a7fb][DevCon Factory] Cached connections count: 0
[0b85a7fb][DevCon Factory] Successfully requested the connection for 00008110-0010295A227A801E:8100
[0b85a7fb][XCUITestDriver@07f0] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[0b85a7fb][XCUITestDriver@07f0] Trying to start WebDriverAgent once since at least one of webDriverAgentUrl,usePreinstalledWDA capabilities is provided
[0b85a7fb][XCUITestDriver@07f0] Event 'wdaStartAttempted' logged at 1747219317205 (13:41:57 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Using provided WebdriverAgent at 'http://192.168.2.157:8100'
[0b85a7fb][WD Proxy] Matched '/status' to command name 'getStatus'
[0b85a7fb][WD Proxy] Proxying [GET /status] to [GET http://192.168.2.157:8100/status] with no body
[0b85a7fb][WD Proxy] timeout of 3000ms exceeded
[0b85a7fb][XCUITestDriver@07f0] WDA is not listening at 'http://192.168.2.157:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 3000ms exceeded
[0b85a7fb][XCUITestDriver@07f0] Event 'wdaSessionAttempted' logged at 1747219320299 (13:42:00 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Sending createSession command to WDA
[0b85a7fb][XCUITestDriver@07f0] Matched '/status' to command name 'getStatus'
[0b85a7fb][XCUITestDriver@07f0] Proxying [GET /status] to [GET http://192.168.2.157:8100/status] with no body
[0b85a7fb][XCUITestDriver@07f0] connect ETIMEDOUT 192.168.2.157:8100
[0b85a7fb][XCUITestDriver@07f0] Event 'wdaSessionFailed' logged at 1747219395315 (13:43:15 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ETIMEDOUT 192.168.2.157:8100
at JWProxy.command (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at XCUITestDriver.proxyCommand (/Users/minimacftp22/Documents/appium-xcuitest-driver/lib/commands/proxy-helper.js:103:35)
at /Users/minimacftp22/Documents/appium-xcuitest-driver/lib/driver.js:887:59
at wrapped (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
at retry (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
at retryInterval (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
at /Users/minimacftp22/Documents/appium-xcuitest-driver/lib/driver.js:842:7
[0b85a7fb][XCUITestDriver@07f0] {}
[0b85a7fb][DevCon Factory] Releasing connections for 00008110-0010295A227A801E device on any port number
[0b85a7fb][DevCon Factory] Found cached connections to release: ["00008110-0010295A227A801E:8100"]
[0b85a7fb][DevCon Factory] Cached connections count: 0
[0b85a7fb][AppiumDriver@2a9e] Event 'newSessionStarted' logged at 1747219395318 (13:43:15 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][AppiumDriver@2a9e] Encountered internal error running command: Error: Unable to start WebDriverAgent session. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ETIMEDOUT 192.168.2.157:8100
at /Users/minimacftp22/Documents/appium-xcuitest-driver/lib/driver.js:902:17
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at wrapped (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
at retry (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
at retryInterval (/Users/minimacftp22/Documents/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
at /Users/minimacftp22/Documents/appium-xcuitest-driver/lib/driver.js:842:7
[0b85a7fb][HTTP] <-- POST /session 500 78202 ms - 1050

@KazuCocoa
Copy link

Your capability provided:

"appium:webDriverAgentUrl": "http://192.168.2.157:8100",

Then, the xcuitest driver tried to establish a connection with the URL, but that destination didn't respond:

[0b85a7fb][XCUITestDriver@07f0] Using provided WebdriverAgent at 'http://192.168.2.157:8100'
[0b85a7fb][WD Proxy] Matched '/status' to command name 'getStatus'
[0b85a7fb][WD Proxy] Proxying [GET /status] to [GET http://192.168.2.157:8100/status] with no body
[0b85a7fb][WD Proxy] timeout of 3000ms exceeded
[0b85a7fb][XCUITestDriver@07f0] WDA is not listening at 'http://192.168.2.157:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 3000ms exceeded
[0b85a7fb][XCUITestDriver@07f0] Event 'wdaSessionAttempted' logged at 1747219320299 (13:42:00 GMT+0300 (Eastern European Summer Time))
[0b85a7fb][XCUITestDriver@07f0] Sending createSession command to WDA
[0b85a7fb][XCUITestDriver@07f0] Matched '/status' to command name 'getStatus'
[0b85a7fb][XCUITestDriver@07f0] Proxying [GET /status] to [GET http://192.168.2.157:8100/status] with no body
[0b85a7fb][XCUITestDriver@07f0] connect ETIMEDOUT 192.168.2.157:8100
[0b85a7fb][XCUITestDriver@07f0] Event 'wdaSessionFailed' logged at 1747219395315 (13:43:15 GMT+0300 (Eastern European Summer Time))

Have you confirmed the http://192.168.2.157:8100/status was listening HTTP requests?

@adriandumitrascu19
Copy link
Author

It doesnt listen to any http requests, I am at home and the mac mini with apple tv are in the office and I use screen sharing to start a session on the mac mini.
If I am in the office and I use my MacBook I can establish a connection with the apple tv, so the problem is not with the apple tv...

@KazuCocoa
Copy link

So,

mac mini cannot establish http connection with Apple TV:

mac mini <--- the same WiFi network ---> Apple TV/WDA

while your MacBook can:

MacBook <--- the same WiFi network ---> Apple TV/WDA

Correct? Then, it looks like a network-related issue. I'd recommend checking if ping/curl etc from the mac mini can reach the Apple TV without Appium first.

@adriandumitrascu19
Copy link
Author

Last login: Thu May 15 09:30:34 on ttys000
minimacftp22@miniMacFtp22s-Mac-mini ~ % ping 192.168.2.157
PING 192.168.2.157 (192.168.2.157): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
^C
--- 192.168.2.157 ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
minimacftp22@miniMacFtp22s-Mac-mini ~ % curl http://192.168.2.157:8100/status
curl: (28) Failed to connect to 192.168.2.157 port 8100 after 75002 ms: Could not connect to server
minimacftp22@miniMacFtp22s-Mac-mini ~ %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment