facebookarchive / WebDriverAgent

A WebDriver server for iOS that runs inside the Simulator.
Other
4.14k stars 1.35k forks source link

appium is launching twice on iOS 12 real device #1006

Open jswaroop opened 5 years ago

jswaroop commented 5 years ago

these are my desired capabilities

platformVersion: "12.0", deviceName: "XXXXXXX", udid: "XXXXXXXXXXXXXXXXXXX", bundleId: "XXXX.XXXX.XXX",

when i run appium it relaunches app again and again. when app is launched it waits for some time but i see nothing in the logs and after some time it creates a new session without actually finishing the session created previously its like it is running in a loop where it launches the app --> wait for some time --> and then creates a new session to launch the app again.

Here are the logs:

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538584515231 (12:35:15 GMT-0400 (EDT)) [Appium] Creating new XCUITestDriver (v2.94.2) session [Appium] Capabilities: [Appium] javascriptEnabled: true [Appium] locationContextEnabled: true [Appium] handlesAlerts: true [Appium] rotatable: true [Appium] platformVersion: 12.0 [Appium] deviceName: Learnvest 6s Plus QA [Appium] udid: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [Appium] bundleId: com.nml.crm [Appium] shouldWaitForQuiescence: true [Appium] shouldUseSingletonTestManager: false [Appium] platformName: iOS [Appium] automationName: XCUITest [Appium] useNewWDA: true [Appium] newCommandTimeout: 0 [Appium] clearSystemFiles: true [Appium] waitForQuiescence: false [Appium] startIWDP: true [Appium] requestOrigins: { [Appium] url: http://webdriver.io [Appium] version: 4.13.1 [Appium] name: webdriverio [Appium] } [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"javascriptEnabled":true,"... [BaseDriver] The following capabilities were provided, but are not recognized by appium: javascriptEnabled, locationContextEnabled, handlesAlerts, rotatable, shouldWaitForQuiescence, requestOrigins. [BaseDriver] Session created with session id: 1cc712ca-c26e-40d8-a964-d0df703b2d81 [debug] [XCUITest] Current user: 'mer2350' [debug] [XCUITest] Xcode version set to '10.1' (tools v9.4.1.0.1.1528165917) [debug] [XCUITest] iOS SDK Version set to '12.1' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1538584515405 (12:35:15 GMT-0400 (EDT)) [debug] [XCUITest] Available devices: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Creating iDevice object with udid '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' [XCUITest] Determining device to run tests on: udid: '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794', real device: true [debug] [BaseDriver] Event 'appConfigured' logged at 1538584516033 (12:35:16 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'resetStarted' logged at 1538584516033 (12:35:16 GMT-0400 (EDT)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1538584516034 (12:35:16 GMT-0400 (EDT)) [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [debug] [XCUITest] Crash reports root '/Users/mer2350/Library/Logs/CrashReporter/MobileDevice/Learnvest 6s Plus QA' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1538584516249 (12:35:16 GMT-0400 (EDT)) [XCUITest] Setting up real device [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"73C72AF8-AFC4-4008-A509-E8341E2EE54E","capabilities":{"device":"iphone","browserName":"Authenticator","sdkVersion":"12.0","CFBundleIdentifier":"com.microsoft.azureauthenticator"}},"sessionId":"73C72AF8-AFC4-4008-A509-E8341E2EE54E","status":0} [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1538584557425 (12:35:57 GMT-0400 (EDT)) [debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Build/Products' [debug] [XCUITest] Got derived data root: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj' [debug] [BaseDriver] Event 'wdaStarted' logged at 1538584561517 (12:36:01 GMT-0400 (EDT)) [XCUITest] Using WDA path: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [debug] [BaseDriver] Event 'orientationSet' logged at 1538584561523 (12:36:01 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'iwdpStarting' logged at 1538584561523 (12:36:01 GMT-0400 (EDT)) [debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [BaseDriver] Event 'iwdpStarted' logged at 1538584561535 (12:36:01 GMT-0400 (EDT)) [debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753 [Appium] New XCUITestDriver session created successfully, session 9f48724d-0e16-49a0-a7a3-242c3361a85c added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538584561536 (12:36:01 GMT-0400 (EDT)) [debug] [MJSONWP] Cached the protocol value 'MJSONWP' for the new session 9f48724d-0e16-49a0-a7a3-242c3361a85c [debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":true,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}} [IWDP] Unable to bind 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 on port 27753-27753 [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [debug] [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [debug] [XCUITest] Removing WDA application from device [debug] [XCUITest] Connection to WDA timed out [debug] [iProxy] recv failed: Operation not permitted [debug] [BaseDriver] Event 'wdaUninstalled' logged at 1538584562327 (12:36:02 GMT-0400 (EDT)) [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1538584562328 (12:36:02 GMT-0400 (EDT)) [XCUITest] Launching WebDriverAgent on the device [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' [debug] [XCUITest] Killing running processes 'xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794, iproxy 8100' for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794... [XCUITest] xcodebuild exited with code 'null' and signal 'SIGINT' [debug] [XCUITest] 'pgrep -nif xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] iproxy exited with code 'null' [debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 IPHONEOS_DEPLOYMENT_TARGET=12.0' in directory '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability [debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [XCUITest] Log file for xcodebuild test: /Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Logs/Test/Test-WebDriverAgentRunner-2018.10.03_12-36-10--0400.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-E136F9F8-7AD2-4A7A-A9E1-067C9041B8BE/WebDriverAgentRunner-0B861140-10D8-4AB7-92B9-51A35ED27128/Session-WebDriverAgentRunner-2018-10-03_123612-8PKC5i.log [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"12.0\",\n \"sdkVersion\" : \"12.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.0\",\n \"ip\" : \"10.6.234.48\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1538581885588\",\n \"time\" : \"Oct 3 2018 12:31:02\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"463A37E6-B529-4616-8A7A-9087C7BA7C49\",\n \"status\" : 0\n}" [debug] [XCUITest] WebDriverAgent information: [debug] [XCUITest] { [debug] [XCUITest] "state": "success", [debug] [XCUITest] "os": { [debug] [XCUITest] "name": "iOS", [debug] [XCUITest] "version": "12.0", [debug] [XCUITest] "sdkVersion": "12.0" [debug] [XCUITest] }, [debug] [XCUITest] "ios": { [debug] [XCUITest] "simulatorVersion": "12.0", [debug] [XCUITest] "ip": "10.6.234.48" [debug] [XCUITest] }, [debug] [XCUITest] "build": { [debug] [XCUITest] "upgradedAt": "1538581885588", [debug] [XCUITest] "time": "Oct 3 2018 12:31:02", [debug] [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [debug] [XCUITest] } [debug] [XCUITest] } [debug] [XCUITest] WebDriverAgent successfully started after 11887ms [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1538584579719 (12:36:19 GMT-0400 (EDT)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.nml.crm","arguments":[],"environment":{},"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}} [HTTP] <-- POST /wd/hub/session - - ms - - [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538584607356 (12:36:47 GMT-0400 (EDT)) [Appium] Creating new XCUITestDriver (v2.94.2) session [Appium] Capabilities: [Appium] javascriptEnabled: true [Appium] locationContextEnabled: true [Appium] handlesAlerts: true [Appium] rotatable: true [Appium] platformVersion: 12.0 [Appium] deviceName: Learnvest 6s Plus QA [Appium] udid: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [Appium] bundleId: com.nml.crm [Appium] shouldWaitForQuiescence: true [Appium] shouldUseSingletonTestManager: false [Appium] platformName: iOS [Appium] automationName: XCUITest [Appium] useNewWDA: true [Appium] newCommandTimeout: 0 [Appium] clearSystemFiles: true [Appium] waitForQuiescence: false [Appium] startIWDP: true [Appium] requestOrigins: { [Appium] url: http://webdriver.io [Appium] version: 4.13.1 [Appium] name: webdriverio [Appium] } [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"javascriptEnabled":true,"... [BaseDriver] The following capabilities were provided, but are not recognized by appium: javascriptEnabled, locationContextEnabled, handlesAlerts, rotatable, shouldWaitForQuiescence, requestOrigins. [BaseDriver] Session created with session id: 8325f312-0646-494a-98ee-266e655ae80f [debug] [XCUITest] Current user: 'mer2350' [debug] [XCUITest] Xcode version set to '10.1' (tools v9.4.1.0.1.1528165917) [debug] [XCUITest] iOS SDK Version set to '12.1' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1538584607622 (12:36:47 GMT-0400 (EDT)) [debug] [XCUITest] Available devices: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Creating iDevice object with udid '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' [XCUITest] Determining device to run tests on: udid: '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794', real device: true [debug] [BaseDriver] Event 'appConfigured' logged at 1538584608158 (12:36:48 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'resetStarted' logged at 1538584608158 (12:36:48 GMT-0400 (EDT)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1538584608159 (12:36:48 GMT-0400 (EDT)) [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [debug] [XCUITest] Crash reports root '/Users/mer2350/Library/Logs/CrashReporter/MobileDevice/Learnvest 6s Plus QA' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1538584608374 (12:36:48 GMT-0400 (EDT)) [XCUITest] Setting up real device [HTTP] <-- POST /wd/hub/session - - ms - - [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538584697366 (12:38:17 GMT-0400 (EDT)) [Appium] Creating new XCUITestDriver (v2.94.2) session [Appium] Capabilities: [Appium] javascriptEnabled: true [Appium] locationContextEnabled: true [Appium] handlesAlerts: true [Appium] rotatable: true [Appium] platformVersion: 12.0 [Appium] deviceName: Learnvest 6s Plus QA [Appium] udid: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [Appium] bundleId: com.nml.crm [Appium] shouldWaitForQuiescence: true [Appium] shouldUseSingletonTestManager: false [Appium] platformName: iOS [Appium] automationName: XCUITest [Appium] useNewWDA: true [Appium] newCommandTimeout: 0 [Appium] clearSystemFiles: true [Appium] waitForQuiescence: false [Appium] startIWDP: true [Appium] requestOrigins: { [Appium] url: http://webdriver.io [Appium] version: 4.13.1 [Appium] name: webdriverio [Appium] } [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"javascriptEnabled":true,"... [BaseDriver] The following capabilities were provided, but are not recognized by appium: javascriptEnabled, locationContextEnabled, handlesAlerts, rotatable, shouldWaitForQuiescence, requestOrigins. [BaseDriver] Session created with session id: 1a308b0d-67a1-4bb2-b431-4b21ee91b085 [debug] [XCUITest] Current user: 'mer2350' [debug] [XCUITest] Xcode version set to '10.1' (tools v9.4.1.0.1.1528165917) [debug] [XCUITest] iOS SDK Version set to '12.1' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1538584697560 (12:38:17 GMT-0400 (EDT)) [debug] [XCUITest] Available devices: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Creating iDevice object with udid '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' [XCUITest] Determining device to run tests on: udid: '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794', real device: true [debug] [BaseDriver] Event 'appConfigured' logged at 1538584698322 (12:38:18 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'resetStarted' logged at 1538584698322 (12:38:18 GMT-0400 (EDT)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1538584698323 (12:38:18 GMT-0400 (EDT)) [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [debug] [XCUITest] Crash reports root '/Users/mer2350/Library/Logs/CrashReporter/MobileDevice/Learnvest 6s Plus QA' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1538584698531 (12:38:18 GMT-0400 (EDT)) [XCUITest] Setting up real device [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"A4255CD6-61C1-4FA7-950B-F3E42CAE31DF","capabilities":{"device":"iphone","browserName":"Authenticator","sdkVersion":"12.0","CFBundleIdentifier":"com.microsoft.azureauthenticator"}},"sessionId":"A4255CD6-61C1-4FA7-950B-F3E42CAE31DF","status":0} [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1538584702142 (12:38:22 GMT-0400 (EDT)) [debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Build/Products' [debug] [XCUITest] Got derived data root: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj' [debug] [BaseDriver] Event 'wdaStarted' logged at 1538584706070 (12:38:26 GMT-0400 (EDT)) [XCUITest] Using WDA path: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [debug] [BaseDriver] Event 'orientationSet' logged at 1538584706076 (12:38:26 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'iwdpStarting' logged at 1538584706077 (12:38:26 GMT-0400 (EDT)) [debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [BaseDriver] Event 'iwdpStarted' logged at 1538584706087 (12:38:26 GMT-0400 (EDT)) [debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753 [Appium] New XCUITestDriver session created successfully, session d402f112-54f0-40ef-8b18-28540d580230 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538584706090 (12:38:26 GMT-0400 (EDT)) [debug] [MJSONWP] Cached the protocol value 'MJSONWP' for the new session d402f112-54f0-40ef-8b18-28540d580230 [debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":true,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}} [IWDP] Unable to bind 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 on port 27753-27753 [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [debug] [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [debug] [XCUITest] Removing WDA application from device [debug] [XCUITest] Connection to WDA timed out [debug] [iProxy] recv failed: Operation not permitted [debug] [BaseDriver] Event 'wdaUninstalled' logged at 1538584706827 (12:38:26 GMT-0400 (EDT)) [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1538584706827 (12:38:26 GMT-0400 (EDT)) [XCUITest] Launching WebDriverAgent on the device [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' [debug] [XCUITest] Killing running processes 'xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794, iproxy 8100' for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794... [XCUITest] xcodebuild exited with code 'null' and signal 'SIGINT' [debug] [XCUITest] 'pgrep -nif xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] iproxy exited with code 'null' [debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 IPHONEOS_DEPLOYMENT_TARGET=12.0' in directory '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability [debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [XCUITest] Log file for xcodebuild test: /Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Logs/Test/Test-WebDriverAgentRunner-2018.10.03_12-38-35--0400.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-4E9DD2EA-CA0C-49C0-9C23-289441EB3A30/WebDriverAgentRunner-266FCAC2-B761-4DC4-BB54-4576F2CF3DD9/Session-WebDriverAgentRunner-2018-10-03_123837-a3HCLR.log [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"12.0\",\n \"sdkVersion\" : \"12.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.0\",\n \"ip\" : \"10.6.234.48\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1538581885588\",\n \"time\" : \"Oct 3 2018 12:31:02\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"52D42A35-7A9E-4FE7-A140-15336365442F\",\n \"status\" : 0\n}" [debug] [XCUITest] WebDriverAgent information: [debug] [XCUITest] { [debug] [XCUITest] "state": "success", [debug] [XCUITest] "os": { [debug] [XCUITest] "name": "iOS", [debug] [XCUITest] "version": "12.0", [debug] [XCUITest] "sdkVersion": "12.0" [debug] [XCUITest] }, [debug] [XCUITest] "ios": { [debug] [XCUITest] "simulatorVersion": "12.0", [debug] [XCUITest] "ip": "10.6.234.48" [debug] [XCUITest] }, [debug] [XCUITest] "build": { [debug] [XCUITest] "upgradedAt": "1538581885588", [debug] [XCUITest] "time": "Oct 3 2018 12:31:02", [debug] [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [debug] [XCUITest] } [debug] [XCUITest] } [debug] [XCUITest] WebDriverAgent successfully started after 12920ms [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1538584725226 (12:38:45 GMT-0400 (EDT)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.nml.crm","arguments":[],"environment":{},"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}} [HTTP] <-- POST /wd/hub/session - - ms - - [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538584787370 (12:39:47 GMT-0400 (EDT)) [Appium] Creating new XCUITestDriver (v2.94.2) session [Appium] Capabilities: [Appium] javascriptEnabled: true [Appium] locationContextEnabled: true [Appium] handlesAlerts: true [Appium] rotatable: true [Appium] platformVersion: 12.0 [Appium] deviceName: Learnvest 6s Plus QA [Appium] udid: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [Appium] bundleId: com.nml.crm [Appium] shouldWaitForQuiescence: true [Appium] shouldUseSingletonTestManager: false [Appium] platformName: iOS [Appium] automationName: XCUITest [Appium] useNewWDA: true [Appium] newCommandTimeout: 0 [Appium] clearSystemFiles: true [Appium] waitForQuiescence: false [Appium] startIWDP: true [Appium] requestOrigins: { [Appium] url: http://webdriver.io [Appium] version: 4.13.1 [Appium] name: webdriverio [Appium] } [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"javascriptEnabled":true,"... [BaseDriver] The following capabilities were provided, but are not recognized by appium: javascriptEnabled, locationContextEnabled, handlesAlerts, rotatable, shouldWaitForQuiescence, requestOrigins. [BaseDriver] Session created with session id: bdb58aa0-3ac8-44d6-8982-285a8837da1f [debug] [XCUITest] Current user: 'mer2350' [debug] [XCUITest] Xcode version set to '10.1' (tools v9.4.1.0.1.1528165917) [debug] [XCUITest] iOS SDK Version set to '12.1' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1538584787791 (12:39:47 GMT-0400 (EDT)) [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"00E17428-D2A7-4DA9-984E-3D04F66CCE1C","capabilities":{"device":"iphone","browserName":"Posting+","sdkVersion":"12.0","CFBundleIdentifier":"com.nml.crm"}},"sessionId":"00E17428-D2A7-4DA9-984E-3D04F66CCE1C","status":0} [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1538584787879 (12:39:47 GMT-0400 (EDT)) [debug] [XCUITest] Available devices: 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Creating iDevice object with udid '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' [XCUITest] Determining device to run tests on: udid: '9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794', real device: true [debug] [BaseDriver] Event 'appConfigured' logged at 1538584788753 (12:39:48 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'resetStarted' logged at 1538584788754 (12:39:48 GMT-0400 (EDT)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1538584788754 (12:39:48 GMT-0400 (EDT)) [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [debug] [XCUITest] Crash reports root '/Users/mer2350/Library/Logs/CrashReporter/MobileDevice/Learnvest 6s Plus QA' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1538584788973 (12:39:48 GMT-0400 (EDT)) [XCUITest] Setting up real device [debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Build/Products' [debug] [XCUITest] Got derived data root: '/Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj' [debug] [BaseDriver] Event 'wdaStarted' logged at 1538584793115 (12:39:53 GMT-0400 (EDT)) [XCUITest] Using WDA path: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [debug] [BaseDriver] Event 'orientationSet' logged at 1538584793123 (12:39:53 GMT-0400 (EDT)) [debug] [BaseDriver] Event 'iwdpStarting' logged at 1538584793123 (12:39:53 GMT-0400 (EDT)) [debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [BaseDriver] Event 'iwdpStarted' logged at 1538584793135 (12:39:53 GMT-0400 (EDT)) [debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753 [Appium] New XCUITestDriver session created successfully, session 1cc712ca-c26e-40d8-a964-d0df703b2d81 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538584793136 (12:39:53 GMT-0400 (EDT)) [debug] [MJSONWP] Cached the protocol value 'MJSONWP' for the new session 1cc712ca-c26e-40d8-a964-d0df703b2d81 [debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":true,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"handlesAlerts":true,"rotatable":true,"platformVersion":"12.0","deviceName":"Learnvest 6s Plus QA","udid":"9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794","bundleId":"com.nml.crm","shouldWaitForQuiescence":true,"shouldUseSingletonTestManager":false,"platformName":"iOS","automationName":"XCUITest","useNewWDA":true,"newCommandTimeout":0,"clearSystemFiles":true,"waitForQuiescence":false,"startIWDP":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.13.1","name":"webdriverio"}} [IWDP] Unable to bind 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 on port 27753-27753 [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [debug] [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [debug] [XCUITest] Removing WDA application from device [debug] [XCUITest] Connection to WDA timed out [debug] [iProxy] recv failed: Operation not permitted [debug] [BaseDriver] Event 'wdaUninstalled' logged at 1538584793997 (12:39:53 GMT-0400 (EDT)) [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1538584793997 (12:39:53 GMT-0400 (EDT)) [XCUITest] Launching WebDriverAgent on the device [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' [debug] [XCUITest] Killing running processes 'xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794, iproxy 8100' for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794... [XCUITest] xcodebuild exited with code 'null' and signal 'SIGINT' [debug] [XCUITest] 'pgrep -nif xcodebuild.*9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] iproxy exited with code 'null' [debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 [debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=9bf68a23bdbc40ca13b9e64e0fe642df5f9a4794 IPHONEOS_DEPLOYMENT_TARGET=12.0' in directory '/Users/mer2350/posting-plus-automation/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability [debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [XCUITest] Log file for xcodebuild test: /Users/mer2350/Library/Developer/Xcode/DerivedData/WebDriverAgent-eybrjvwcighnfyggujpbkifryynj/Logs/Test/Test-WebDriverAgentRunner-2018.10.03_12-40-03--0400.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-3ACE679C-12AE-43BE-87DF-4B905FB1477E/WebDriverAgentRunner-CC1CA677-B879-4E58-8879-E8B4393F2399/Session-WebDriverAgentRunner-2018-10-03_124004-isivDq.log [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"12.0\",\n \"sdkVersion\" : \"12.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.0\",\n \"ip\" : \"10.6.234.48\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1538581885588\",\n \"time\" : \"Oct 3 2018 12:31:02\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"B2465CBC-7EB2-4DEE-AB1D-44826E1F5BE7\",\n \"status\" : 0\n}" [debug] [XCUITest] WebDriverAgent information: [debug] [XCUITest] { [debug] [XCUITest] "state": "success", [debug] [XCUITest] "os": { [debug] [XCUITest] "name": "iOS", [debug] [XCUITest] "version": "12.0", [debug] [XCUITest] "sdkVersion": "12.0" [debug] [XCUITest] }, [debug] [XCUITest] "ios": { [debug] [XCUITest] "simulatorVersion": "12.0", [debug] [XCUITest] "ip": "10.6.234.48" [debug] [XCUITest] }, [debug] [XCUITest] "build": { [debug] [XCUITest] "upgradedAt": "1538581885588", [debug] [XCUITest] "time": "Oct 3 2018 12:31:02", [debug] [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [debug] [XCUITest] } [debug] [XCUITest] } [debug] [XCUITest] WebDriverAgent successfully started after 13660ms [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1538584813184 (12:40:13 GMT-0400 (EDT)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.nml.crm","arguments":[],"environment":{},"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}

I also tried keeping desired capability shouldWaitForQuiescence: true but no matter what it sets itself to shouldWaitForQuiescence: false

DonnaZh commented 5 years ago

Hi, how is your issue going? I am facing similar problem, WDA seems trying to launch app, but app flashing 3 times and failed to launch, wait for a while, same thing happens again ...

jswaroop commented 5 years ago

i just downgraded appium to 1.8.1 and using for iOS 11.4

jswaroop commented 5 years ago

there are new beta versions released for appium can you try that and let me know