Last active
November 17, 2017 02:02
-
-
Save shane51/8ca25b2bf99484b72ba85df945bb6feb to your computer and use it in GitHub Desktop.
Appium log when reset simulator after remove useNewWDA, bundleId, MobileCapabilityType.UDID and MobileCapabilityType.FULL_RESET capabilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Appium] Welcome to Appium v1.7.1 | |
[Appium] Appium REST http interface listener started on 0.0.0.0:4723 | |
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"capabilities":{"desiredCapabilities":{"app":"/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"alwaysMatch":{"platformName":"iOS"},"firstMatch":[]}} | |
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},{},{"desiredCapabilities":{"app":"/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"alwaysMatch":{"platformName":"iOS"},"firstMatch":[]}] | |
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1510883661782 (09:54:21 GMT+0800 (CST)) | |
[Appium] Creating new XCUITestDriver (v2.51.1) session | |
[Appium] Capabilities: | |
[Appium] app: '/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app' | |
[Appium] platformVersion: '11.1' | |
[Appium] automationName: 'XCUITest' | |
[Appium] platformName: 'iOS' | |
[Appium] deviceName: 'iPhone Simulator' | |
[BaseDriver] Session created with session id: 4a410b5d-2483-4af5-a029-417a162f85e8 | |
[debug] [XCUITest] Xcode version set to '9.1' (tools v9.0.1.0.1.1506734476) | |
[debug] [XCUITest] iOS SDK Version set to '11.1' | |
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1510883661971 (09:54:21 GMT+0800 (CST)) | |
[debug] [XCUITest] Changing deviceName from 'iPhone Simulator' to 'iPhone 6' | |
[iOSSim] Constructing iOS simulator for Xcode version 9.1 with udid 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5' | |
[XCUITest] Determining device to run tests on: udid: 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5', real device: false | |
[BaseDriver] Using local app '/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app' | |
[debug] [BaseDriver] Event 'appConfigured' logged at 1510883662225 (09:54:22 GMT+0800 (CST)) | |
[debug] [XCUITest] Checking whether app '/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app' is actually present on file system | |
[debug] [XCUITest] App is present | |
[debug] [iOS] Getting bundle ID from app '/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app': 'com.**.**.**.**.qa2' | |
[debug] [BaseDriver] Event 'resetStarted' logged at 1510883662239 (09:54:22 GMT+0800 (CST)) | |
[XCUITest] Not scrubbing third party app in anticipation of uninstall | |
[debug] [BaseDriver] Event 'resetComplete' logged at 1510883662361 (09:54:22 GMT+0800 (CST)) | |
[debug] [iOSLog] Starting iOS 11.1 simulator log capture | |
[debug] [iOSLog] System log path: /Users/**.**.**.**/Library/Logs/CoreSimulator/A7170447-DFD6-4C5E-8253-9596CDCBFCC5/system.log | |
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1510883662530 (09:54:22 GMT+0800 (CST)) | |
[XCUITest] Setting up simulator | |
[debug] [iOS] No reason to set locale | |
[debug] [iOS] No iOS / app preferences to set | |
[debug] [iOSSim] Setting common Simulator preferences to {"ConnectHardwareKeyboard":false} | |
[debug] [iOSSim] Updated shared Simulator preferences at '/Users/**.**.**.**/Library/Preferences/com.apple.iphonesimulator.plist' with {"ConnectHardwareKeyboard":false} | |
[debug] [iOSSim] The count of running Simulator UI client instances is 0 | |
[iOSSim] Simulator A7170447-DFD6-4C5E-8253-9596CDCBFCC5 is in 'Shutting Down' state. Trying to shutdown... | |
[simctl] Error: simctl error running 'shutdown': An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): | |
Unable to shutdown device in current state: Shutdown | |
at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:63:13) | |
at simCommand$ (../../lib/simctl.js:50:11) | |
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 throw] (/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 process._tickCallback (internal/process/next_tick.js:109:7) | |
Error: simctl error running 'shutdown': An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): | |
Unable to shutdown device in current state: Shutdown | |
at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:63:13) | |
at simCommand$ (../../lib/simctl.js:50:11) | |
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 throw] (/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 process._tickCallback (internal/process/next_tick.js:109:7) | |
[iOSSim] Error on Simulator shutdown: simctl error running 'shutdown': An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): | |
Unable to shutdown device in current state: Shutdown | |
[iOSSim] Booting Simulator with UDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5... | |
[iOSSim] Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5 -ConnectHardwareKeyboard 0 | |
[debug] [iOSSim] The count of running Simulator UI client instances is 1 | |
[iOSSim] Simulator with UDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5 booted in 6 seconds | |
[debug] [BaseDriver] Event 'simStarted' logged at 1510883669288 (09:54:29 GMT+0800 (CST)) | |
[debug] [XCUITest] Installing '/Users/**.**.**.**/Documents/work/**.**.**.**/**.**.**.**-Mobile-Automation-Framework/src/main/resources/**.**.**.** - QA.app' on Simulator with UUID 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5'... | |
[debug] [XCUITest] The app has been installed successfully. | |
[debug] [BaseDriver] Event 'appInstalled' logged at 1510883672284 (09:54:32 GMT+0800 (CST)) | |
[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] Capability 'useNewWDA' set to false, so trying to reuse currently running WDA instance at 'http://localhost:8100/' | |
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body | |
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'. Rebuilding... | |
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1510883672319 (09:54:32 GMT+0800 (CST)) | |
[XCUITest] Launching WebDriverAgent on the device | |
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' | |
[debug] [XCUITest] Killing running processes 'xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5, iproxy 8100, A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*XCTRunner' for the device A7170447-DFD6-4C5E-8253-9596CDCBFCC5... | |
[debug] [XCUITest] 'pgrep -nif xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5' didn't detect any matching processes. Return code: 1 | |
[debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 | |
[debug] [XCUITest] 'pgrep -nif A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*XCTRunner' didn't detect any matching processes. Return code: 1 | |
[debug] [XCUITest] Using Xcode 9.1, so fixing WDA codebase | |
[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=A7170447-DFD6-4C5E-8253-9596CDCBFCC5 IPHONEOS_DEPLOYMENT_TARGET=11.1' 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] [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] [XCUITest] Log file for xcodebuild test: /var/folders/4p/kdhmsjfj7_x8dqy1lbzxc7h00000gn/T/com.apple.dt.XCTest/IDETestRunSession-63CBC4AB-FC29-4C2B-877D-642D32F10576/WebDriverAgentRunner-498EF545-727F-4540-9E88-AB09CD4547F6/Session-WebDriverAgentRunner-2017-11-17_095434-VFeYJn.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] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"40D9EA64-2B0D-4C77-9863-14ACBAD428FF\",\n \"status\" : 0\n}" | |
[debug] [XCUITest] WebDriverAgent running on ip '**.**.**.**' | |
[debug] [XCUITest] WebDriverAgent successfully started after 5528ms | |
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510883677988 (09:54:37 GMT+0800 (CST)) | |
[debug] [XCUITest] Sending createSession command to WDA | |
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.**.**.**.**.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} | |
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"4609DDAC-BDB0-4C82-B94B-744D64003EBB","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"11.1","CFBundleIdentifier":null}},"sessionId":"4609DDAC-BDB0-4C82-B94B-744D64003EBB","status":0} | |
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1510883999607 (09:59:59 GMT+0800 (CST)) | |
[debug] [XCUITest] Cannot find a match for DerivedData folder path from lsof. Trying to access logs | |
[XCUITest] Setting '555' permissions to '/Users/******/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments' folder | |
[debug] [BaseDriver] Event 'wdaPermsAdjusted' logged at 1510883999667 (09:59:59 GMT+0800 (CST)) | |
[debug] [BaseDriver] Event 'wdaStarted' logged at 1510883999667 (09:59:59 GMT+0800 (CST)) | |
[debug] [XCUITest] Setting initial orientation to 'PORTRAIT' | |
[debug] [JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/4609DDAC-BDB0-4C82-B94B-744D64003EBB/orientation] with body: {"orientation":"PORTRAIT"} | |
[debug] [JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"4609DDAC-BDB0-4C82-B94B-744D64003EBB","status":0} | |
[debug] [BaseDriver] Event 'orientationSet' logged at 1510884000752 (10:00:00 GMT+0800 (CST)) | |
[Appium] New XCUITestDriver session created successfully, session 4a410b5d-2483-4af5-a029-417a162f85e8 added to master session list | |
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1510884000755 (10:00:00 GMT+0800 (CST)) | |
[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":"/Users/******/Documents/work/******/******-Mobile-Automation-Framework/src/main/resources/****** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator","udid":"A7170447-DFD6-4C5E-8253-9596CDCBFCC5"} | |
[HTTP] <-- POST /wd/hub/session 200 338987 ms - 537 | |
[HTTP] --> GET /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8 {} | |
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["4a410b5d-2483-4af5-a029-417a162f85e8"] | |
[debug] [XCUITest] Executing command 'getSession' | |
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/4609DDAC-BDB0-4C82-B94B-744D64003EBB] with no body | |
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"4609DDAC-BDB0-4C82-B94B-744D64003EBB\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \" \",\n \"sdkVersion\" : \"11.1\",\n \"CFBundleIdentifier\" : \"com.apple.springboard\"\n }\n },\n \"sessionId\" : \"4609DDAC-BDB0-4C82-B94B-744D64003EBB\",\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":"A7170447-DFD6-4C5E-8253-9596CDCBFCC5","app":"/Users/******/Documents/work/******/******-Mobile-Automation-Framework/src/main/resources/****** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator","device":"iphone","browserName":" ","sdkVersion":"11.1","CFBundleIdentifier":"com.apple.springboard"} | |
[HTTP] <-- GET /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8 200 75 ms - 442 | |
[HTTP] --> GET /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8 {} | |
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["4a410b5d-2483-4af5-a029-417a162f85e8"] | |
[debug] [XCUITest] Executing command 'getSession' | |
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/4609DDAC-BDB0-4C82-B94B-744D64003EBB] with no body | |
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"4609DDAC-BDB0-4C82-B94B-744D64003EBB\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \" \",\n \"sdkVersion\" : \"11.1\",\n \"CFBundleIdentifier\" : \"com.apple.springboard\"\n }\n },\n \"sessionId\" : \"4609DDAC-BDB0-4C82-B94B-744D64003EBB\",\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":"A7170447-DFD6-4C5E-8253-9596CDCBFCC5","app":"/Users/******/Documents/work/******/******-Mobile-Automation-Framework/src/main/resources/****** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator","device":"iphone","browserName":" ","sdkVersion":"11.1","CFBundleIdentifier":"com.apple.springboard"} | |
[HTTP] <-- GET /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8 200 62 ms - 442 | |
[HTTP] --> POST /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8/elements {"using":"xpath","value":"//XCUIElementTypeAlert"} | |
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["xpath","//XCUIElementTypeAlert","4a410b5d-2483-4af5-a029-417a162f85e8"] | |
[debug] [XCUITest] Executing command 'findElements' | |
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id | |
[debug] [BaseDriver] Waiting up to 0 ms for condition | |
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/4609DDAC-BDB0-4C82-B94B-744D64003EBB/elements] with body: {"using":"xpath","value":"//XCUIElementTypeAlert"} | |
[debug] [JSONWP Proxy] Got response with status 200: {"value":[{"ELEMENT":"DEAEAC14-0844-4368-AF36-57F146DF95ED"}],"sessionId":"4609DDAC-BDB0-4C82-B94B-744D64003EBB","status":0} | |
[debug] [MJSONWP] Responding to client with driver.findElements() result: [{"ELEMENT":"DEAEAC14-0844-4368-AF36-57F146DF95ED"}] | |
[HTTP] <-- POST /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8/elements 200 5326 ms - 124 | |
[HTTP] --> GET /wd/hub/session/4a410b5d-2483-4af5-a029-417a162f85e8/alert_text {} | |
[debug] [MJSONWP] Calling AppiumDriver.getAlertText() with args: ["4a410b5d-2483-4af5-a029-417a162f85e8"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment