Skip to content

Instantly share code, notes, and snippets.

@saikrishna321
Created December 6, 2022 06:15
Show Gist options
  • Save saikrishna321/05061394d1cb14ac99512a79bd9519f0 to your computer and use it in GitHub Desktop.
Save saikrishna321/05061394d1cb14ac99512a79bd9519f0 to your computer and use it in GitHub Desktop.
{"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:iPhoneOnly":true,"appium:bundleId":"com.devicefarm.HelloWorld","appium:usePrebuiltWDA":true,"appium:updatedWDABundleId":"com.demo.wda.xctrunner","appium:platformVersion":"16.1"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:automationName":"XCUITest","appium:iPhoneOnly":true,"appium:bundleId":"com.devicefarm.HelloWorld","appium:usePrebuiltWDA":true,"appium:updatedWDABundleId":"com.demo.wda.xctrunner","appium:platformVersion":"16.1"}}
[debug] [AppiumDriver@81a4] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","appium:automationName":"XCUITest","appium:iPhoneOnly":true,"appium:bundleId":"com.devicefarm.HelloWorld","appium:usePrebuiltWDA":true,"appium:updatedWDABundleId":"com.demo.wda.xctrunner","appium:platformVersion":"16.1"},null,{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:iPhoneOnly":true,"appium:bundleId":"com.devicefarm.HelloWorld","appium:usePrebuiltWDA":true,"appium:updatedWDABundleId":"com.demo.wda.xctrunner","appium:platformVersion":"16.1"},"firstMatch":[{}]}]
[AppiumDriver@81a4] Plugins which can handle cmd 'createSession': device-farm
[AppiumDriver@81a4] Plugin device-farm is now handling cmd 'createSession'
[device-farm] IOS Device details for 00008110-XXXXXXX already available
[device-farm] {"platform":"ios","name":"iPhone","busy":false}
[device-farm] Waiting for free device
[device-farm] 📱 Device found: {"wdaLocalPort":51248,"mjpegServerPort":51249,"udid":"00008110-XXXXXXX","sdk":"16.1.1","name":"Sai’s iPhone","busy":false,"realDevice":true,"deviceType":"real","platform":"ios","host":"http://127.0.0.1:31337","totalUtilizationTimeMilliSec":4112,"sessionStartTime":0,"derivedDataPath":"/Users/saikrishna/Library/Developer/Xcode/DerivedData/WebDriverAgent-00008110-XXXXXXX","offline":false,"meta":{"revision":6,"created":1670307076870,"version":0,"updated":1670307198585},"$loki":1}
[device-farm] 📱 Blocking device 00008110-XXXXXXX for new session
[AppiumDriver@81a4] Executing default handling behavior for command 'createSession'
[debug] [AppiumDriver@81a4] Event 'newSessionRequested' logged at 1670307204289 (11:43:24 GMT+0530 (India Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /tmp/device-farm/node_modules/appium-xcuitest-driver
[debug] [Appium] Requiring driver at /tmp/device-farm/node_modules/appium-xcuitest-driver
[AppiumDriver@81a4] Appium v2.0.0-beta.46 creating new XCUITestDriver (v4.13.2) session
[AppiumDriver@81a4] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@81a4] Appium's BaseDriver version is 8.7.3
[AppiumDriver@81a4] XCUITestDriver's BaseDriver version is 8.7.3
[debug] [XCUITestDriver@31c9] Creating session with W3C capabilities: {
[debug] [XCUITestDriver@31c9] "alwaysMatch": {
[debug] [XCUITestDriver@31c9] "platformName": "iOS",
[debug] [XCUITestDriver@31c9] "appium:automationName": "XCUITest",
[debug] [XCUITestDriver@31c9] "appium:iPhoneOnly": true,
[debug] [XCUITestDriver@31c9] "appium:bundleId": "com.devicefarm.HelloWorld",
[debug] [XCUITestDriver@31c9] "appium:usePrebuiltWDA": true,
[debug] [XCUITestDriver@31c9] "appium:updatedWDABundleId": "com.demo.wda.xctrunner",
[debug] [XCUITestDriver@31c9] "appium:udid": "00008110-XXXXXXX",
[debug] [XCUITestDriver@31c9] "appium:deviceName": "Sai’s iPhone",
[debug] [XCUITestDriver@31c9] "appium:platformVersion": "16.1.1",
[debug] [XCUITestDriver@31c9] "appium:wdaLocalPort": 51248,
[debug] [XCUITestDriver@31c9] "appium:mjpegServerPort": 51249,
[debug] [XCUITestDriver@31c9] "appium:derivedDataPath": "/Users/saikrishna/Library/Developer/Xcode/DerivedData/WebDriverAgent-00008110-XXXXXXX"
[debug] [XCUITestDriver@31c9] },
[debug] [XCUITestDriver@31c9] "firstMatch": [
[debug] [XCUITestDriver@31c9] {}
[debug] [XCUITestDriver@31c9] ]
[debug] [XCUITestDriver@31c9] }
[XCUITestDriver@31c9] The following capabilities were provided, but are not recognized by Appium:
[XCUITestDriver@31c9] iPhoneOnly
[XCUITestDriver@31c9 (4c2769c8)] Session created with session id: 4c2769c8-8126-4cf0-9275-2a70d14fe032
[debug] [XCUITest] Current user: 'saikrishna'
[debug] [XCUITestDriver@31c9 (4c2769c8)] Available devices: 00008110-XXXXXXX
[debug] [XCUITest] Creating iDevice object with udid '00008110-XXXXXXX'
[XCUITestDriver@31c9 (4c2769c8)] Determining device to run tests on: udid: '00008110-XXXXXXX', real device: true
[XCUITestDriver@31c9 (4c2769c8)] Normalized platformVersion capability value '16.1.1' to '16.1'
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'xcodeDetailsRetrieved' logged at 1670307204304 (11:43:24 GMT+0530 (India Standard Time))
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'appConfigured' logged at 1670307204305 (11:43:24 GMT+0530 (India Standard Time))
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'resetStarted' logged at 1670307204305 (11:43:24 GMT+0530 (India Standard Time))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'resetComplete' logged at 1670307204305 (11:43:24 GMT+0530 (India Standard Time))
[XCUITestDriver@31c9 (4c2769c8)] Using WDA path: '/private/tmp/device-farm/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@31c9 (4c2769c8)] Using WDA agent: '/private/tmp/device-farm/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Crash reports root '/Users/saikrishna/Library/Logs/CrashReporter/MobileDevice/Sai’s iPhone' does not exist. Got nothing to gather.
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'logCaptureStarted' logged at 1670307204471 (11:43:24 GMT+0530 (India Standard Time))
[XCUITestDriver@31c9 (4c2769c8)] Setting up real device
[debug] [XCUITestDriver@31c9 (4c2769c8)] No obsolete cached processes from previous WDA sessions listening on port 51248 have been found
[DevCon Factory] Requesting connection for device 00008110-XXXXXXX on local port 51248, device port 51248
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 00008110-XXXXXXX:51248
[debug] [XCUITestDriver@31c9 (4c2769c8)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:51248/status] with no body
[debug] [WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"16.1","version":"16.1.1"},"ios":{"ip":"169.254.215.117"},"ready":true,"build":{"upgradedAt":"1670306647231","time":"Dec 6 2022 11:41:36","productBundleIdentifier":"com.demo.wda.xctrunner"}},"sessionId":null}
[debug] [XCUITestDriver@31c9 (4c2769c8)] Upgrade timestamp of the currently bundled WDA: 1670306647231
[debug] [XCUITestDriver@31c9 (4c2769c8)] Upgrade timestamp of the WDA on the device: 1670306647231
[XCUITestDriver@31c9 (4c2769c8)] Will reuse previously cached WDA instance at 'http://127.0.0.1:51248/' with 'com.demo.wda.xctrunner'. Set the wdaLocalPort capability to a value different from 51248 if this is an undesired behavior.
[debug] [XCUITestDriver@31c9 (4c2769c8)] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITestDriver@31c9 (4c2769c8)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'wdaStartAttempted' logged at 1670307204742 (11:43:24 GMT+0530 (India Standard Time))
[XCUITestDriver@31c9 (4c2769c8)] Using provided WebdriverAgent at 'http://127.0.0.1:51248/'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:51248/status] with no body
[debug] [WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"16.1","version":"16.1.1"},"ios":{"ip":"169.254.215.117"},"ready":true,"build":{"upgradedAt":"1670306647231","time":"Dec 6 2022 11:41:36","productBundleIdentifier":"com.demo.wda.xctrunner"}},"sessionId":null}
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'wdaSessionAttempted' logged at 1670307204748 (11:43:24 GMT+0530 (India Standard Time))
[debug] [XCUITestDriver@31c9 (4c2769c8)] Sending createSession command to WDA
[debug] [XCUITestDriver@31c9 (4c2769c8)] Matched '/session' to command name 'createSession'
[debug] [XCUITestDriver@31c9 (4c2769c8)] Proxying [POST /session] to [POST http://127.0.0.1:51248/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.devicefarm.HelloWorld","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"forceAppLaunch":true,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}}
[debug] [XCUITestDriver@31c9 (4c2769c8)] Got response with status 200: {"value":{"sessionId":"B5916D31-87FD-4901-B481-D89407D6EBA7","capabilities":{"device":"iphone","browserName":"HelloWorld","sdkVersion":"16.1.1","CFBundleIdentifier":"com.devicefarm.HelloWorld"}},"sessionId":"B5916D31-87FD-4901-B481-D89407D6EBA7"}
[XCUITestDriver@31c9 (4c2769c8)] Determined the downstream protocol as 'W3C'
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'wdaSessionStarted' logged at 1670307206004 (11:43:26 GMT+0530 (India Standard Time))
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'wdaStarted' logged at 1670307206004 (11:43:26 GMT+0530 (India Standard Time))
[XCUITestDriver@31c9 (4c2769c8)] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [XCUITestDriver@31c9 (4c2769c8)] Event 'orientationSet' logged at 1670307206004 (11:43:26 GMT+0530 (India Standard Time))
[debug] [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
[debug] [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
[AppiumDriver@81a4] New XCUITestDriver session created successfully, session 4c2769c8-8126-4cf0-9275-2a70d14fe032 added to master session list
[debug] [AppiumDriver@81a4] Event 'newSessionStarted' logged at 1670307206005 (11:43:26 GMT+0530 (India Standard Time))
[device-farm] 📱 Updating Device 00008110-XXXXXXX with session ID 4c2769c8-8126-4cf0-9275-2a70d14fe032
[AppiumDriver@81a4] Promoting 1 sessionless plugins to be attached to session ID 4c2769c8-8126-4cf0-9275-2a70d14fe032
[debug] [XCUITestDriver@31c9 (4c2769c8)] Cached the protocol value 'W3C' for the new session 4c2769c8-8126-4cf0-9275-2a70d14fe032
[debug] [XCUITestDriver@31c9 (4c2769c8)] 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","automationName":"XCUITest","iPhoneOnly":true,"bundleId":"com.devicefarm.HelloWorld","usePrebuiltWDA":true,"updatedWDABundleId":"com.demo.wda.xctrunner","udid":"00008110-XXXXXXX","deviceName":"Sai’s iPhone","platformVersion":"16.1.1","wdaLocalPort":51248,"mjpegServerPort":51249,"derivedDataPath":"/Users/saikrishna/Library/Developer/Xcode/DerivedData/WebDriverAgent-00008110-XXXXXXX"}}
[HTTP] <-- POST /wd/hub/session 200 1826 ms - 701
[HTTP]
[HTTP] --> DELETE /wd/hub/session/4c2769c8-8126-4cf0-9275-2a70d14fe032
[HTTP] {}
[debug] [XCUITestDriver@31c9 (4c2769c8)] Calling AppiumDriver.deleteSession() with args: ["4c2769c8-8126-4cf0-9275-2a70d14fe032"]
[AppiumDriver@81a4] Plugins which can handle cmd 'deleteSession': device-farm
[AppiumDriver@81a4] Plugin device-farm is now handling cmd 'deleteSession'
[device-farm] 📱 Unblocking the device that is blocked for session 4c2769c8-8126-4cf0-9275-2a70d14fe032
[AppiumDriver@81a4] Executing default handling behavior for command 'deleteSession'
[debug] [AppiumDriver@81a4] Event 'quitSessionRequested' logged at 1670307208059 (11:43:28 GMT+0530 (India Standard Time))
[AppiumDriver@81a4] Removing session 4c2769c8-8126-4cf0-9275-2a70d14fe032 from our master session list
[debug] [XCUITestDriver@31c9 (4c2769c8)] Matched '/session/4c2769c8-8126-4cf0-9275-2a70d14fe032' to command name 'deleteSession'
[debug] [XCUITestDriver@31c9 (4c2769c8)] Proxying [DELETE /session/4c2769c8-8126-4cf0-9275-2a70d14fe032] to [DELETE http://127.0.0.1:51248/session/B5916D31-87FD-4901-B481-D89407D6EBA7] with no body
[debug] [XCUITestDriver@31c9 (4c2769c8)] Got response with status 200: {"value":null,"sessionId":null}
[DevCon Factory] Releasing connections for 00008110-XXXXXXX device on any port number
[DevCon Factory] Found cached connections to release: ["00008110-XXXXXXX:51248"]
[DevCon Factory] Releasing the listener for '00008110-XXXXXXX:51248'
[debug] [iProxy@00008110:51248] Closing the connection
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITestDriver@31c9 (4c2769c8)] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [AppiumDriver@81a4] Event 'quitSessionFinished' logged at 1670307209099 (11:43:29 GMT+0530 (India Standard Time))
[debug] [AppiumDriver@81a4] Received response: null
[debug] [AppiumDriver@81a4] But deleting session, so not returning
[debug] [AppiumDriver@81a4] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/4c2769c8-8126-4cf0-9275-2a70d14fe032 200 1044 ms - 14
[HTTP]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment