Failed connecting to appium server with tvOS simulator
See original GitHub issueThe problem
I have a nonconsists problem when sometimes I failed connecting to the appium server even before the test starts.
My test runs when the autoLaunch
flag is set to False.
My test actually failing in the remote line:
self.driver_ = webdriver.Remote(self.appium_server_host_, self.desired_capabilities_)
Environment
- Appium version (or git revision) that exhibits the issue: both 1.15.1 and 1.16.0
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: Mac OS catalina
- Node.js version (unless using Appium.app|exe): 12.16.1
- Npm or Yarn package manager: npm and yarn
- Mobile platform/version under test: tvOS
- Real device or emulator/simulator: Simulator
- Appium CLI or Appium.app|exe: cli
Details
I can tell about 2 main logs I am seeing, during the test run I am seeing this log:
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM' [XCUITest] Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Active application instance is not expected to be equal to nil [XCUITest] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:519:15) [XCUITest] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:580:11 [XCUITest] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13) [XCUITest] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13) [XCUITest] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10) [XCUITest] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:529:7 [XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
and the appium server logs are found below
Link to Appium logs
https://assets-secure.applicaster.com/qa/zapp_qa/manual/boaz/failed_connecting_appium_tv_os.log
Code To Reproduce Issue [ Good To Have ]
- connect to appium server when
autoLaunch
=False Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (7 by maintainers)
Top GitHub Comments
We don’t provide patches to lower versions. You can use it with
appium@beta
for now. https://dev.azure.com/AppiumCI/Appium CI/_build/results?buildId=9141&view=logs&j=5b05e4cb-1b9e-5cec-ae67-62a6adb04306&t=7ac6e1f3-6e81-5a23-8df7-eee56af1c0e5 is an example.@KazuCocoa my issue is found in appium server 1.16.0 and 1.15.1 from what I checked.
If there is a fix in a newer version then whine one? and how does the desired_capabilities should be defined for tvOS with appium 1.17.0 and on?