Cannot start webdriveragent on simulator due to port problem

I am trying to start the automation on Mac, and already setup:
katalon 6.1.2
xcode 10.1 with SDK 12.1
node v11.14.0
npm 6.9.0
appium 1.8.2-beta
and manually clone webDriverAgent lastest version
also the building of webDriverAgent in xcode passed.

but when I run the test from katalon, it says “[WD Proxy] Got an unexpected response: {“errno”:“ECONNREFUSED”,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:62613}”
actually the started webDriverAgent’s port is 8100(able to get response from curl -GET http://127.0.0.1:8100/status)
I have tried to set wdLocalPort in desired capabilities which is not working.

from the debug info, it seems appium always set random port to start webDriverAgent, so is there a way to specific the port or any workaround?

thanks

after search the commit of appium, problem solved, should use wdaRemotePort here

2 Likes