This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 6
Dec 2018

I am using Appium to run my tests against real iPad Safari.
The setup works fine and the tests are running fine.
But after a few hours, Appium breaks at a step where it takes a screenshot.

I restart Appium after every test suite (which is around 30 mins)
So, usually there is no problem upto 10 suites. But after that it breaks at a step where it take the screenshot.
And it doesnt get started properly after that for some time.

Below are the logs when Appium is restarted after the screenshot broke.
(BTW, I do not see any error in the logs when Appium breaks when the screenshot is taken.)

Any help would be highly appreciated!

Detailed logs attached.

[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: “An unknown server-side error occurred while processing the command. Original error: CoulAppium_log.txt1 (15.7 KB)
d not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md1. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[debug] [XCUITest] Removing WDA application from device

  • created

    Dec '18
  • last reply

    Dec '18
  • 5

    replies

  • 552

    views

  • 3

    users

  • 3

    links

Hello,
Have you tried the below desired capability (IOSMobileCapabilityType):
caps.setCapability(USE_PREBUILT_WDA, true);

It won’t try to build WebDriverAgent on each run, instead it will use the one’s that already installed on the first step.

Hope it helps.
Cheers!

That did not help.

[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: “An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100”.

Attaching the logs.

Appium.txt1 (15.9 KB)

I have the same problem with the version 1.10.0.
The tests start and run for some time and then breaks at some point of time.

After that, all the tests fail with the following error:

[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: “An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100”.

can not suggest anything… try to change 8100 port with using “wdaLocalPort” capability.