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.

Failed connecting to appium server with tvOS simulator

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Apr 20, 2020
0reactions
BoazWarshawskycommented, Apr 20, 2020

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Appium
Make sure the app is compiled for the simulator (or real device) as appropriate (e.g., in debug mode for the simulator), or you...
Read more >
Failed to start remote service on device - Apple Developer
I am unable to get applications to run on a physical iPhone 11 device from xcode. They work fine when the target is...
Read more >
java - iOS app wont launch when appium server is started ...
If I manually start the appium GUI server and run my appium java test, iOS simulator opens and the app launches as expected....
Read more >
Appium error [resolved] - Unable to launch WebDriverAgent ...
The above error is due to WebDriverAgent is not installed on your real device or simulator connected to run the appium tests.
Read more >
appium/appium - Gitter
I installed iOS 12.0 Simulator via Xcode > Preferences > Components , but that ... RunTest: Exception while running Tear down:An unknown server-side...
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