Skip to content

Instantly share code, notes, and snippets.

@pavanbachu0604
Last active February 27, 2018 21:43
Show Gist options
  • Save pavanbachu0604/e85cd0b94ae19f5aa6fd15391f5cf6a1 to your computer and use it in GitHub Desktop.
Save pavanbachu0604/e85cd0b94ae19f5aa6fd15391f5cf6a1 to your computer and use it in GitHub Desktop.
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: YYY
[Appium] clearSystemFiles: true
[Appium] noReset: true
[Appium] newCommandTimeout: 45000
[Appium] automationName: XCuiTest
[Appium] useNewWDA: true
[Appium] platformName: iOS
[Appium] deviceName: iPad
[Appium] iosInstallPause: 10000
[Appium] nativeWebTap: true
[Appium] udid: XXX
[BaseDriver] Capability 'newCommandTimeout' changed from string ('45000') to integer (45000). This may cause unexpected behavior
[BaseDriver] Capability 'iosInstallPause' changed from string ('10000') to integer (10000). This may cause unexpected behavior
[BaseDriver] Session created with session id: 74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd
[debug] [XCUITest] Current user: 'bachupa'
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to '8.2.1' (tools v9.2.0.0.1.1510905681)
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1519766202797 (16:16:42 GMT-0500 (EST))
[debug] [XCUITest] Available devices: XXX
[debug] [XCUITest] Creating iDevice object with udid 'XXX'
[XCUITest] Determining device to run tests on: udid: 'XXX', real device: true
[debug] [XCUITest] App is an iOS bundle, will attempt to run as pre-existing
[debug] [BaseDriver] Event 'appConfigured' logged at 1519766202941 (16:16:42 GMT-0500 (EST))
[debug] [BaseDriver] Event 'resetStarted' logged at 1519766202941 (16:16:42 GMT-0500 (EST))
[debug] [XCUITest] Reset: fullReset not set. Leaving as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1519766202941 (16:16:42 GMT-0500 (EST))
[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/bachupa/Library/Logs/CrashReporter/MobileDevice/iPad' does not exist. Got nothing to gather.
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1519766203170 (16:16:43 GMT-0500 (EST))
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[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] [BaseDriver] Event 'wdaUninstalled' logged at 1519766203659 (16:16:43 GMT-0500 (EST))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1519766203659 (16:16:43 GMT-0500 (EST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*96a4edd39f6130c598a1acc5cc36c7facfaa1e03, iproxy 8100' for the device 96a4edd39f6130c598a1acc5cc36c7facfaa1e03...
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGINT'
[debug] [XCUITest] 'pgrep -nif xcodebuild.*96a4edd39f6130c598a1acc5cc36c7facfaa1e03' 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
[XCUITest] Cannot parse major and minor version numbers from platformVersion "null". Will build for the default platform instead
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=96a4edd39f6130c598a1acc5cc36c7facfaa1e03' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use 'showXcodeLog' desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/bachupa/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/F2FAC20C-8CD2-49E6-B995-106A86A38838/Session-WebDriverAgentRunner-2018-02-27_161650-DsmVfd.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[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\" : \"10.3.3\",\n \"sdkVersion\" : \"10.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"10.3.3\",\n \"ip\" : \"10.169.196.31\"\n },\n \"build\" : {\n \"time\" : \"Feb 27 2018 14:05:53\"\n }\n },\n \"sessionId\" : \"4130CA75-E88E-4D61-8453-68F45A931FC7\",\n \"status\" : 0\n}"
[debug] [XCUITest] WebDriverAgent running on ip '10.169.196.31'
[debug] [XCUITest] WebDriverAgent successfully started after 24495ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1519766233511 (16:17:13 GMT-0500 (EST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"YYY","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD","capabilities":{"device":"ipad","browserName":"Flex Quote","sdkVersion":"10.3.3","CFBundleIdentifier":"YYY"}},"sessionId":"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1519766235966 (16:17:15 GMT-0500 (EST))
[XCUITest] Enabled WDA attachments prevention by default to save the disk space. Set preventWDAAttachments capability to false if this is an undesired behavior.
[XCUITest] Not changing permissions of '/Users/bachupa/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments' to '555', because they were already set by the other session
[debug] [BaseDriver] Event 'wdaPermsAdjusted' logged at 1519766236033 (16:17:16 GMT-0500 (EST))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1519766236033 (16:17:16 GMT-0500 (EST))
[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 1519766236033 (16:17:16 GMT-0500 (EST))
[Appium] New XCUITestDriver session created successfully, session 74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1519766236034 (16:17:16 GMT-0500 (EST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"app":"YYY","clearSystemFiles":true,"noReset":true,"newCommandTimeout":45000,"automationName":"XCuiTest","useNewWDA":true,"platformName":"iOS","deviceName":"iPad","iosInstallPause":10000,"nativeWebTap":true,"udid":"96a4edd39f6130c598a1acc5cc36c7facfaa1e03"}
[HTTP] <-- POST /wd/hub/session 200 34215 ms - 544
[HTTP] --> GET /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd"]
[debug] [XCUITest] Executing command 'getSession'
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/E563C5C9-F1C8-4817-8C3F-442EE0FD81DD] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD\",\n \"capabilities\" : {\n \"device\" : \"ipad\",\n \"browserName\" : \"Flex Quote\",\n \"sdkVersion\" : \"10.3.3\",\n \"CFBundleIdentifier\" : \"YYY\"\n }\n },\n \"sessionId\" : \"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {"udid":"96a4edd39f6130c598a1acc5cc36c7facfaa1e03","app":"YYY","clearSystemFiles":true,"noReset":true,"newCommandTimeout":45000,"automationName":"XCuiTest","useNewWDA":true,"platformName":"iOS","deviceName":"iPad","iosInstallPause":10000,"nativeWebTap":true,"device":"ipad","browserName":"Flex Quote","sdkVersion":"10.3.3","CFBundleIdentifier":"
"}
[HTTP] <-- GET /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd 200 285 ms - 458
[HTTP] --> GET /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd"]
[debug] [XCUITest] Executing command 'getSession'
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/E563C5C9-F1C8-4817-8C3F-442EE0FD81DD] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD\",\n \"capabilities\" : {\n \"device\" : \"ipad\",\n \"browserName\" : \"Flex Quote\",\n \"sdkVersion\" : \"10.3.3\",\n \"CFBundleIdentifier\" : \"YYY\"\n }\n },\n \"sessionId\" : \"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {"udid":"96a4edd39f6130c598a1acc5cc36c7facfaa1e03","app":"YYY","clearSystemFiles":true,"noReset":true,"newCommandTimeout":45000,"automationName":"XCuiTest","useNewWDA":true,"platformName":"iOS","deviceName":"iPad","iosInstallPause":10000,"nativeWebTap":true,"device":"ipad","browserName":"Flex Quote","sdkVersion":"10.3.3","CFBundleIdentifier":"YYY"}
[HTTP] <-- GET /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd 200 158 ms - 458
[HTTP] --> POST /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd/execute {"script":"mobile: terminateApp","args":[{"bundleId":"YYY"}]}
[debug] [MJSONWP] Calling AppiumDriver.execute() with args: ["mobile: terminateApp",[{"bundleId":"
"}],"74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd"]
[debug] [XCUITest] Executing command 'execute'
[debug] [JSONWP Proxy] Proxying [POST /wda/apps/terminate] to [POST http://localhost:8100/session/E563C5C9-F1C8-4817-8C3F-442EE0FD81DD/wda/apps/terminate] with body: {"bundleId":"YYY"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":true,"sessionId":"E563C5C9-F1C8-4817-8C3F-442EE0FD81DD","status":0}
[debug] [MJSONWP] Responding to client with driver.execute() result: true
[HTTP] <-- POST /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd/execute 200 363 ms - 76
[HTTP] --> POST /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd/execute {"script":"mobile: launchApp","args":[{"bundleId":"YYY"}]}
[debug] [MJSONWP] Calling AppiumDriver.execute() with args: ["mobile: launchApp",[{"bundleId":"YYY"}],"74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd"]
[debug] [XCUITest] Executing command 'execute'
[debug] [JSONWP Proxy] Proxying [POST /wda/apps/launch] to [POST http://localhost:8100/session/E563C5C9-F1C8-4817-8C3F-442EE0FD81DD/wda/apps/launch] with body: {"bundleId":"YYY"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"'activate' method is not supported by the current iOS SDK\n\n(\n\t0 CoreFoundation 0x000000018252eff8 <redacted> + 148\n\t1 libobjc.A.dylib 0x0000000180f90538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018252eca8 <redacted> + 0\n\t3 WebDriverAgentLib 0x0000000103c0b264 -[XCUIApplication(FBCompatibility) fb_activate] + 152\n\t4 WebDriverAgentLib 0x0000000103bfa1dc -[FBSession launchApplicationWithBundleId:arguments:environment:] + 392\n\t5 WebDriverAgentLib 0x0000000103c00bfc +[FBSessionCommands handleSessionAppLaunch:] + 332\n\t6 WebDriverAgentLib 0x0000000103be4730 -[FBRoute_TargetAction mountRequest:intoResponse:] + 208\n\t7 WebDriverAgentLib 0x0000000103bd7a1c __37-[FBWebServer registerRouteHandlers:]_block_invoke + 496\n\t8 RoutingHTTPServer 0x0000000103ca63cc -[RoutingHTTPServer handleRoute:withR...
[MJSONWP] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command.
at JWProxy.command$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:176:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[HTTP] <-- POST /wd/hub/session/74dd4a35-ab87-44b5-8d1b-c9c478fa5cfd/execute 500 1636 ms - 238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment