Skip to content

Instantly share code, notes, and snippets.

@ochubey
Created March 30, 2018 16:52
Show Gist options
  • Save ochubey/ebb6a551aaf52778e26bc9bfac640ea5 to your computer and use it in GitHub Desktop.
Save ochubey/ebb6a551aaf52778e26bc9bfac640ea5 to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"iOS","platformVersion":"11.1.1","udid":"udid"},"capabilities":{"desiredCapabilities":{"app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"iOS","platformVersion":"11.1.1","udid":"udid"},"firstMatch":[{"platformName":"ios"}]}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"iOS","platformVersion":"11.1.1","udid":"udid"},null,{"desiredCapabilities":{"app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"iOS","platformVersion":"11.1.1","udid":"udid"},"firstMatch":[{"platformName":"ios"}]}]
[BaseDriver] Event 'newSessionRequested' logged at 1522428429920 (19:47:09 GMT+0300 (EEST))
[Appium] Merged W3C capabilities {"desiredCapabilities":{"app":"/Users/user/... into desiredCapabilities object {"app":"/Users/user/Desktop/TheApp.ipa","de...
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: /Users/user/Desktop/TheApp.ipa
[Appium] deviceName: iPhone5s
[Appium] platformName: ios
[Appium] platformVersion: 11.1.1
[Appium] udid: udid
[BaseDriver] Session created with session id: f49444c2-76a0-4ca7-8db4-a695337187a8
[XCUITest] Current user: 'user'
[XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[XCUITest] Xcode version set to '9.2' (tools v9.2.0.0.1.1510905681)
[XCUITest] iOS SDK Version set to '11.2'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1522428430892 (19:47:10 GMT+0300 (EEST))
[XCUITest] Available devices: udid
[XCUITest] Creating iDevice object with udid 'udid'
[XCUITest] Determining device to run tests on: udid: 'udid', real device: true
[BaseDriver] Using local app '/Users/user/Desktop/TheApp.ipa'
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping local app '/var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/appium-app.zip'...
[BaseDriver] Unzipping /var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/Payload/TheApp.app'
[BaseDriver] Event 'appConfigured' logged at 1522428431181 (19:47:11 GMT+0300 (EEST))
[XCUITest] Checking whether app '/var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/Payload/TheApp.app' is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app '/var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/Payload/TheApp.app': 'io.cloudgrey.the-app'
[BaseDriver] Event 'resetStarted' logged at 1522428431186 (19:47:11 GMT+0300 (EEST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1522428431186 (19:47:11 GMT+0300 (EEST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Starting iOS device log capture with: 'idevicesyslog'
[XCUITest] Crash reports root '/Users/user/Library/Logs/CrashReporter/MobileDevice/iPhone5s' does not exist. Got nothing to gather.
[BaseDriver] Event 'logCaptureStarted' logged at 1522428431384 (19:47:11 GMT+0300 (EEST))
[XCUITest] Setting up real device
[XCUITest] Reset requested. Removing app with id 'io.cloudgrey.the-app' from the device
[XCUITest] Installing '/var/folders/9r/szdrvd4n1j5_wj9fgjx0q6t00000gp/T/2018230-5830-g2j54y.dvruj/Payload/TheApp.app' on device with UUID 'udid'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1522428436180 (19:47:16 GMT+0300 (EEST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1.1\",\n \"sdkVersion\" : \"11.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1.1\",\n \"ip\" : \"192.168.2.107\"\n },\n \"build\" : {\n \"time\" : \"Mar 6 2018 14:39:44\"\n }\n },\n \"sessionId\" : \"B09A7AC3-2A3B-428B-BA84-DCC175D02B36\",\n \"status\" : 0\n}"
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[BaseDriver] Event 'wdaStartAttempted' logged at 1522428436277 (19:47:16 GMT+0300 (EEST))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[BaseDriver] Event 'wdaSessionAttempted' logged at 1522428436277 (19:47:16 GMT+0300 (EEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1.1\",\n \"sdkVersion\" : \"11.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1.1\",\n \"ip\" : \"192.168.2.107\"\n },\n \"build\" : {\n \"time\" : \"Mar 6 2018 14:39:44\"\n }\n },\n \"sessionId\" : \"B09A7AC3-2A3B-428B-BA84-DCC175D02B36\",\n \"status\" : 0\n}"
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"io.cloudgrey.the-app","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C","capabilities":{"device":"iphone","browserName":"TheApp","sdkVersion":"11.1.1","CFBundleIdentifier":"io.cloudgrey.the-app"}},"sessionId":"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C","status":0}
[BaseDriver] Event 'wdaSessionStarted' logged at 1522428439131 (19:47:19 GMT+0300 (EEST))
[BaseDriver] Event 'wdaStarted' logged at 1522428439131 (19:47:19 GMT+0300 (EEST))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[BaseDriver] Event 'orientationSet' logged at 1522428439131 (19:47:19 GMT+0300 (EEST))
[Appium] New XCUITestDriver session created successfully, session f49444c2-76a0-4ca7-8db4-a695337187a8 added to master session list
[BaseDriver] Event 'newSessionStarted' logged at 1522428439132 (19:47:19 GMT+0300 (EEST))
[MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"ios","platformVersion":"11.1.1","udid":"udid"}
[HTTP] <-- POST /wd/hub/session 200 9213 ms - 434
[HTTP] --> GET /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 {}
[MJSONWP] Calling AppiumDriver.getSession() with args: ["f49444c2-76a0-4ca7-8db4-a695337187a8"]
[XCUITest] Executing command 'getSession'
[JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \"TheApp\",\n \"sdkVersion\" : \"11.1.1\",\n \"CFBundleIdentifier\" : \"io.cloudgrey.the-app\"\n }\n },\n \"sessionId\" : \"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[MJSONWP] Responding to client with driver.getSession() result: {"udid":"udid","app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"ios","platformVersion":"11.1.1","device":"iphone","browserName":"TheApp","sdkVersion":"11.1.1","CFBundleIdentifier":"io.cloudgrey.the-app"}
[HTTP] <-- GET /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 200 131 ms - 345
[HTTP] --> GET /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 {}
[MJSONWP] Calling AppiumDriver.getSession() with args: ["f49444c2-76a0-4ca7-8db4-a695337187a8"]
[XCUITest] Executing command 'getSession'
[JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \"TheApp\",\n \"sdkVersion\" : \"11.1.1\",\n \"CFBundleIdentifier\" : \"io.cloudgrey.the-app\"\n }\n },\n \"sessionId\" : \"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[MJSONWP] Responding to client with driver.getSession() result: {"udid":"udid","app":"/Users/user/Desktop/TheApp.ipa","deviceName":"iPhone5s","platformName":"ios","platformVersion":"11.1.1","device":"iphone","browserName":"TheApp","sdkVersion":"11.1.1","CFBundleIdentifier":"io.cloudgrey.the-app"}
[HTTP] <-- GET /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 200 162 ms - 345
[HTTP] --> POST /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8/url {"url":"theapp://login/alice/mypassword"}
[MJSONWP] Calling AppiumDriver.setUrl() with args: ["theapp://login/alice/mypassword","f49444c2-76a0-4ca7-8db4-a695337187a8"]
[XCUITest] Executing command 'setUrl'
[JSONWP Proxy] Proxying [POST /url] to [POST http://localhost:8100/session/21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C/url] with body: {"url":"theapp://login/alice/mypassword"}
[JSONWP Proxy] Got response with status 200: {"value":"Failed to open theapp://login/alice/mypassword","sessionId":"21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C","status":13}
[MJSONWP] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command.
at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:176:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- POST /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8/url 500 21 ms - 238
[HTTP] --> DELETE /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["f49444c2-76a0-4ca7-8db4-a695337187a8"]
[BaseDriver] Event 'quitSessionRequested' logged at 1522428439489 (19:47:19 GMT+0300 (EEST))
[Appium] Removing session f49444c2-76a0-4ca7-8db4-a695337187a8 from our master session list
[JSONWP Proxy] Proxying [DELETE /session/f49444c2-76a0-4ca7-8db4-a695337187a8] to [DELETE http://localhost:8100/session/21DCCBD7-80B4-4A4D-8D9D-5642C40AF21C] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n\n },\n \"sessionId\" : \"7E5B5504-8C58-478C-8900-77C3B2DD7C5F\",\n \"status\" : 0\n}"
[XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[iOSLog] Stopping iOS log capture
[BaseDriver] Event 'quitSessionFinished' logged at 1522428440235 (19:47:20 GMT+0300 (EEST))
[MJSONWP] Received response: null
[MJSONWP] But deleting session, so not returning
[MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/f49444c2-76a0-4ca7-8db4-a695337187a8 200 747 ms - 76
[XCUITest] Connection to WDA timed out
[iProxy] recv failed: Operation not permitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment