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.

Unable to run automated test on iOS simulator: "No WDA on the device"

See original GitHub issue

Unable to run the automated test on iOS simulator.

I have ran these same tests before updating Mac OS to Monterrey and updating xcode and it worked. After the update as soon as I run the same test the errors are:

The simulator has '0' bundles which have 'WebDriverAgentRunner-Runner' as their 'CFBundleName': [debug] [35m[WebDriverAgent][39m No WDAs on the device.

[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [info] [35m[WD Proxy][39m connect ECONNREFUSED 127.0.0.1:8100 [debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'

Environment

  • Appium version 1.22.2
  • Last Appium version that did not exhibit the issue (if applicable):1.22.1
  • Desktop OS/version used to run Appium: Mac OS 12.01
  • Node.js version (unless using Appium.app|exe): v16.13.0
  • Npm or Yarn package manager: npm 8.1.0
  • Mobile platform/version under test: iOS (iPhone 11, 12)
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: Appium Server GUI

Details

As soon as the test runs, the app gets installed, but the tests do not run.

Link to Appium logs

GIST File: https://gist.github.com/ayimaster/65bf26e0b97c8864f73b35ee187d3af5

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
mykola-mokhnachcommented, Jan 19, 2022

@ayimaster kindly use Appium forum to ask questions.

Closing this thread as not an issue.

0reactions
ayimastercommented, Jan 19, 2022

@mykola-mokhnach, there are three questions:

  1. if I am running on simulator, can I leave the port in Appium (desktop) as it is: 4723, without touching WebDriverAgent port: 8100?
  2. Once I run the script, in the simulator it installs the TheApp and WebDriverAgent (app), so I can see two apps being installed, is this normal?
  3. At the end of the log, there are errors: [error] [Xcode] Failing tests: [error] [Xcode] [error] [Xcode] WebDriverAgentRunner: [error] [Xcode] -[UITestingUITests testRunner] [error] [Xcode] [error] [Xcode] [error] [Xcode] ** TEST EXECUTE FAILED ** [error] [Xcode] [error] [Xcode] [error] [Xcode] Testing started [error] [Xcode] [error] [WebDriverAgent] xcodebuild exited with code '65' and signal 'null' Is this the way it should be? Thank you.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium: WDA not recognised - Support
The XCode WDA succeeds but when running the automation script on real device, WDA is not recognized. The certificates and profile is correct....
Read more >
Appium (and desktop) unable to launch wda session since ...
To solve this issue, We need to update our appkum on the computer ( should be 1.22.0 or above). To see your version:...
Read more >
WebDriverAgent: Getting Started with Automated iOS Testing
Open WebDriverAgent.xcodeproj to set up the runner before building. Select the provisioning certificate that is trusted on the target device. ... Once built, ......
Read more >
Wda custom server - appium - Read the Docs
No futher confuguration steps are needed if you're going to execute your automated tests on iOS Simulator. Real device, however, requires some more...
Read more >
XCTest | Apple Developer Forums
Using WDA from Appium to automate XCUI Tests Machine: Mac OS 11.4 Device: iPad ... When WDA is unable to take screenShot hence...
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