appium: Failed connecting to appium server with tvOS simulator

The 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 ]

  1. 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.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments