Good Day,
I updated xcode to 11 from 10 and after that i faced a strange issue, i searched for a lot of solutions but noting work. I also tried to update my tools and update the webagent but no luck
The issue appear when I execute my test case the app open and then the error thrown
We faced this on two macs and on differents simulators the log file is as below
from eclipse:
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
Build info: version: â3.141.59â, revision: âe82be7d358â, time: â2018-11-14T08:17:03â
from appium:
[info] e[35m[Appium]e[39m Welcome to Appium v1.12.1
[info] e[35m[Appium]e[39m Non-default server args:
[info] e[35m[Appium]e[39m address: 127.0.0.1
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 127.0.0.1:4723[info] e[35m[HTTP]e[39m e[37mâ>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{âdesiredCapabilitiesâ:{âappâ:"/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app",âplatformVersionâ:â12.1â,âautomationNameâ:âXCUITestâ,âautoGrantPermissionsâ:âtrueâ,âplatformNameâ:âiOSâ,âudidâ:âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ,âdeviceNameâ:âiPhone 5sâ,âautoAcceptAlertsâ:âtrueâ},âcapabilitiesâ:{âalwaysMatchâ:{âappium:appâ:"/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app",âappium:autoAcceptAlertsâ:âtrueâ,âappium:autoGrantPermissionsâ:âtrueâ,âappium:automationNameâ:âXCUITestâ,âappium:deviceNameâ:âiPhone 5sâ,âplatformNameâ:âiosâ,âappium:platformVersionâ:â12.1â,âappium:udidâ:âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ},âfirstMatchâ:[{}]}}e[39m
[debug] e[35m[W3C]e[39m Calling AppiumDriver.createSession() with args: [{âappâ:"/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app",âplatformVersionâ:â12.1â,âautomationNameâ:âXCUITestâ,âautoGrantPermissionsâ:âtrueâ,âplatformNameâ:âiOSâ,âudidâ:âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ,âdeviceNameâ:âiPhone 5sâ,âautoAcceptAlertsâ:âtrueâ},null,{âalwaysMatchâ:{âappium:appâ:"/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app",âappium:autoAcceptAlertsâ:âtrueâ,âappium:autoGrantPermissionsâ:âtrueâ,âappium:automationNameâ:âXCUITestâ,âappium:deviceNameâ:âiPhone 5sâ,âplatformNameâ:âiosâ,âappium:platformVersionâ:â12.1â,âappium:udidâ:âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ},âfirstMatchâ:[{}]}]
[debug] e[35m[BaseDriver]e[39m Event ânewSessionRequestedâ logged at 1569240740088 (15:12:20 GMT+0300 (EEST))
[info] e[35m[Appium]e[39m Appium v1.12.1 creating new XCUITestDriver (v2.110.1) session
[info] e[35m[Appium]e[39m Capabilities:
[info] e[35m[Appium]e[39m platformName: ios
[info] e[35m[Appium]e[39m app: /Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app
[info] e[35m[Appium]e[39m autoAcceptAlerts: true
[info] e[35m[Appium]e[39m autoGrantPermissions: true
[info] e[35m[Appium]e[39m automationName: XCUITest
[info] e[35m[Appium]e[39m deviceName: iPhone 5s
[info] e[35m[Appium]e[39m platformVersion: 12.1
[info] e[35m[Appium]e[39m udid: EEA97C54-8F15-47D7-AC75-0CA7FBE810CF
[debug] e[35m[BaseDriver]e[39m W3C capabilities {âalwaysMatchâ:{âplatformNa⌠and MJSONWP desired capabilities {âappâ:â/Users/mohammadalha⌠were provided
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {âalwaysMatchâ:{"platformNaâŚ
[warn] e[35m[BaseDriver]e[39m Capability âautoAcceptAlertsâ changed from string to boolean. This may cause unexpected behavior
[warn] e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by appium: autoGrantPermissions.
[info] e[35m[BaseDriver]e[39m Session created with session id: 6cebdda2-0870-4f9f-9d28-6feebaf2895e
[debug] e[35m[XCUITest]e[39m Current user: âmohammadalhajâ[info] e[35m[iOSSim]e[39m Constructing iOS simulator for Xcode version 11.0 with udid âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ
[info] e[35m[XCUITest]e[39m Determining device to run tests on: udid: âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ, real device: false[info] e[35m[XCUITest]e[39m Xcode version set to â11.0â (tools v10.3.0.0.1.1562985497)
[info] e[35m[XCUITest]e[39m iOS SDK Version set to â13.0â
[debug] e[35m[BaseDriver]e[39m Event âxcodeDetailsRetrievedâ logged at 1569240740688 (15:12:20 GMT+0300 (EEST))
[info] e[35m[BaseDriver]e[39m Using local app â/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.appâ
[debug] e[35m[BaseDriver]e[39m Event âappConfiguredâ logged at 1569240740690 (15:12:20 GMT+0300 (EEST))
[debug] e[35m[XCUITest]e[39m Checking whether app â/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.appâ is actually present on file system
[debug] e[35m[XCUITest]e[39m App is present
[debug] e[35m[iOS]e[39m Getting bundle ID from app â/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.appâ: âcom.genie9.intellizoolzâ
[debug] e[35m[BaseDriver]e[39m Event âresetStartedâ logged at 1569240740691 (15:12:20 GMT+0300 (EEST))[info] e[35m[XCUITest]e[39m Not scrubbing third party app in anticipation of uninstall
[debug] e[35m[BaseDriver]e[39m Event âresetCompleteâ logged at 1569240741071 (15:12:21 GMT+0300 (EEST))[debug] e[35m[XCUITest]e[39m Starting log capture for iOS Simulator with udid âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ, using âxcrun simctl spawn EEA97C54-8F15-47D7-AC75-0CA7FBE810CF log stream --style compactâ[debug] e[35m[BaseDriver]e[39m Event âlogCaptureStartedâ logged at 1569240741695 (15:12:21 GMT+0300 (EEST))
[info] e[35m[XCUITest]e[39m Setting up simulator
[debug] e[35m[iOS]e[39m No reason to set locale
[debug] e[35m[iOS]e[39m No iOS / app preferences to set
[debug] e[35m[iOSSim]e[39m Setting preferences of EEA97C54-8F15-47D7-AC75-0CA7FBE810CF Simulator to {âConnectHardwareKeyboardâ:false}
[debug] e[35m[iOSSim]e[39m Setting common Simulator preferences to {âRotateWindowWhenSignaledByGuestâ:true,âConnectHardwareKeyboardâ:false}
[debug] e[35m[iOSSim]e[39m Updated EEA97C54-8F15-47D7-AC75-0CA7FBE810CF Simulator preferences at â/Users/mohammadalhaj/Library/Preferences/com.apple.iphonesimulator.plistâ with {âDevicePreferencesâ:{âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ:{âConnectHardwareKeyboardâ:false}},âRotateWindowWhenSignaledByGuestâ:true,âConnectHardwareKeyboardâ:false}
[debug] e[35m[iOSSim]e[39m Got Simulator UI client PID: 721
[info] e[35m[iOSSim]e[39m Both Simulator with UDID EEA97C54-8F15-47D7-AC75-0CA7FBE810CF and the UI client are currently running
[debug] e[35m[BaseDriver]e[39m Event âsimStartedâ logged at 1569240741837 (15:12:21 GMT+0300 (EEST))
[debug] e[35m[XCUITest]e[39m Verifying application platform
[debug] e[35m[XCUITest]e[39m CFBundleSupportedPlatforms: [âiPhoneSimulatorâ][debug] e[35m[XCUITest]e[39m Reset requested. Removing app with id âcom.genie9.intellizoolzâ from the device[debug] e[35m[XCUITest]e[39m Cleaning installd cache to save the disk space
[debug] e[35m[XCUITest]e[39m Installing â/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.appâ on Simulator with UUID âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFââŚ[debug] e[35m[XCUITest]e[39m The app has been installed successfully.
[debug] e[35m[BaseDriver]e[39m Event âappInstalledâ logged at 1569240753012 (15:12:33 GMT+0300 (EEST))
[info] e[35m[XCUITest]e[39m Using WDA path: â/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentâ
[info] e[35m[XCUITest]e[39m Using WDA agent: â/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeprojâ
[debug] e[35m[XCUITest]e[39m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] e[35m[WD Proxy]e[39m Matched â/statusâ to command name âgetStatusâ
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] e[35m[WD Proxy]e[39m Got response with status 200: â{\n âvalueâ : {\n âstateâ : âsuccessâ,\n âosâ : {\n ânameâ : âiOSâ,\n âversionâ : â13.0â,\n âsdkVersionâ : â13.0â\n },\n âiosâ : {\n âsimulatorVersionâ : â13.0â,\n âipâ : â192.168.1.220â\n },\n âbuildâ : {\n âupgradedAtâ : â1554217107091â,\n âtimeâ : âSep 23 2019 14:41:53â,\n âproductBundleIdentifierâ : âcom.facebook.WebDriverAgentRunnerâ\n }\n },\n âsessionIdâ : âB845344E-B7F0-40D2-BC64-4330EDE127ABâ,\n âstatusâ : 0\n}â
[debug] e[35m[XCUITest]e[39m Upgrade timestamp of the currently bundled WDA: 1554217107091
[debug] e[35m[XCUITest]e[39m Upgrade timestamp of the WDA on the device: 1554217107091
[info] e[35m[XCUITest]e[39m Will reuse previously cached WDA instance at âhttp://localhost:8100/â with âcom.facebook.WebDriverAgentRunnerâ. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] e[35m[XCUITest]e[39m Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] e[35m[XCUITest]e[39m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] e[35m[BaseDriver]e[39m Event âwdaStartAttemptedâ logged at 1569240753064 (15:12:33 GMT+0300 (EEST))
[info] e[35m[XCUITest]e[39m Using provided WebdriverAgent at âhttp://localhost:8100/â
[debug] e[35m[WD Proxy]e[39m Matched â/statusâ to command name âgetStatusâ
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] e[35m[WD Proxy]e[39m Got response with status 200: â{\n âvalueâ : {\n âstateâ : âsuccessâ,\n âosâ : {\n ânameâ : âiOSâ,\n âversionâ : â13.0â,\n âsdkVersionâ : â13.0â\n },\n âiosâ : {\n âsimulatorVersionâ : â13.0â,\n âipâ : â192.168.1.220â\n },\n âbuildâ : {\n âupgradedAtâ : â1554217107091â,\n âtimeâ : âSep 23 2019 14:41:53â,\n âproductBundleIdentifierâ : âcom.facebook.WebDriverAgentRunnerâ\n }\n },\n âsessionIdâ : âB845344E-B7F0-40D2-BC64-4330EDE127ABâ,\n âstatusâ : 0\n}â
[debug] e[35m[BaseDriver]e[39m Event âwdaSessionAttemptedâ logged at 1569240753069 (15:12:33 GMT+0300 (EEST))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched â/sessionâ to command name âcreateSessionâ
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://localhost:8100/session] with body: {âdesiredCapabilitiesâ:{âbundleIdâ:âcom.genie9.intellizoolzâ,âargumentsâ:[],âenvironmentâ:{},âeventloopIdleDelaySecâ:0,âshouldWaitForQuiescenceâ:true,âshouldUseTestManagerForVisibilityDetectionâ:false,âmaxTypingFrequencyâ:60,âshouldUseSingletonTestManagerâ:true,âdefaultAlertActionâ:âacceptâ}}[debug] e[35m[WD Proxy]e[39m Got response with status 200: {âvalueâ:{âsessionIdâ:â030E0477-422A-46F0-A576-3FCB4014BACFâ,âcapabilitiesâ:{âdeviceâ:âiphoneâ,âbrowserNameâ:" ",âsdkVersionâ:â13.0â,âCFBundleIdentifierâ:âcom.apple.springboardâ}},âsessionIdâ:â030E0477-422A-46F0-A576-3FCB4014BACFâ,âstatusâ:0}
[debug] e[35m[BaseDriver]e[39m Event âwdaSessionStartedâ logged at 1569240758041 (15:12:38 GMT+0300 (EEST))
[debug] e[35m[BaseDriver]e[39m Event âwdaStartedâ logged at 1569240758041 (15:12:38 GMT+0300 (EEST))
[info] e[35m[XCUITest]e[39m Skipping setting of the initial display orientation. Set the âorientationâ capability to either âLANDSCAPEâ or âPORTRAITâ, if this is an undesired behavior.
[debug] e[35m[BaseDriver]e[39m Event âorientationSetâ logged at 1569240758042 (15:12:38 GMT+0300 (EEST))
[info] e[35m[Appium]e[39m New XCUITestDriver session created successfully, session 6cebdda2-0870-4f9f-9d28-6feebaf2895e added to master session list
[debug] e[35m[BaseDriver]e[39m Event ânewSessionStartedâ logged at 1569240758044 (15:12:38 GMT+0300 (EEST))
[debug] e[35m[W3C (6cebdda2)]e[39m Cached the protocol value âW3Câ for the new session 6cebdda2-0870-4f9f-9d28-6feebaf2895e
[debug] e[35m[W3C (6cebdda2)]e[39m Responding to client with driver.createSession() result: {âcapabilitiesâ:{âwebStorageEnabledâ:false,âlocationContextEnabledâ:false,âbrowserNameâ:"",âplatformâ:âMACâ,âjavascriptEnabledâ:true,âdatabaseEnabledâ:false,âtakesScreenshotâ:true,ânetworkConnectionEnabledâ:false,âplatformNameâ:âiosâ,âappâ:"/Users/mohammadalhaj/ios/src/test/resources/Builds/ios.app",âautoAcceptAlertsâ:true,âautoGrantPermissionsâ:âtrueâ,âautomationNameâ:âXCUITestâ,âdeviceNameâ:âiPhone 5sâ,âplatformVersionâ:â12.1â,âudidâ:âEEA97C54-8F15-47D7-AC75-0CA7FBE810CFâ}}
[info] e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[32m200e[39m e[90m17959 ms - 541e[39m
[info] e[35m[HTTP]e[39m e[90me[39m[info] e[35m[HTTP]e[39m e[37mâ>e[39m e[37mGETe[39m e[37m/wd/hub/session/6cebdda2-0870-4f9f-9d28-6feebaf2895ee[39m
[info] e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[W3C (6cebdda2)]e[39m Calling AppiumDriver.getSession() with args: [â6cebdda2-0870-4f9f-9d28-6feebaf2895eâ]
[debug] e[35m[XCUITest]e[39m Executing command âgetSessionâ
[debug] e[35m[WD Proxy]e[39m Matched â/â to command name âgetSessionâ
[debug] e[35m[WD Proxy]e[39m Proxying [GET /] to [GET http://localhost:8100/session/030E0477-422A-46F0-A576-3FCB4014BACF] with no body[warn] e[35m[WD Proxy]e[39m Got an unexpected response: {âerrnoâ:âECONNREFUSEDâ,âcodeâ:âECONNREFUSEDâ,âsyscallâ:âconnectâ,âaddressâ:â127.0.0.1â,âportâ:8100}
[debug] e[35m[W3C (6cebdda2)]e[39m Encountered internal error running command: UnknownError: 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
[debug] e[35m[W3C (6cebdda2)]e[39m at JWProxy.command (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:236:13)
[info] e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/session/6cebdda2-0870-4f9f-9d28-6feebaf2895e e[39me[31m500e[39m e[90m14 ms - 605e[39m
[info] e[35m[HTTP]e[39m e[90me[39m[debug] e[35m[XCUITest]e[39m Log file for xcodebuild test: /Users/mohammadalhaj/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.09.23_15-11-49-+0300.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-318C623F-6A58-4C66-8A27-D0A11EECC59A/WebDriverAgentRunner-B2584993-4084-49A3-A2C7-746C27FC8364/Session-WebDriverAgentRunner-2019-09-23_151316-2hZc0p.log[error] e[35m[XCUITest]e[39m xcodebuild exited with code â65â and signal ânullâ