赞
踩
Starting Node Server
info: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {"address":"127.0.0.1","logNoColors":true,"platformName":"Android","platformVersion":"18","automationName":"Appium"}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"appPackage":"com.huawei.ichannel","appWaitPackage":"com.huawei.ichannel","appWaitActivity":"com.huawei.ichannel.StartActivity","fullReset":"false","deviceName":"","deviceReadyTimeout":"3600","appActivity":"com.huawei.ichannel.StartActivity","newCommandTimeout":"3600","platformVersion":"7.0","automationName":"Appium","locationContextEnabled":true,"webStorageEnabled":true,"browserName":"","javascriptEnabled":true,"unicodeKeyboard":"True","platformName":"Android","resetKeyboard":"True"}}
info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
warn: Converting cap fullReset from string to boolean. This might cause unexpected behavior.
warn: Converting cap unicodeKeyboard from string to boolean. This might cause unexpected behavior.
warn: Converting cap resetKeyboard from string to boolean. This might cause unexpected behavior.
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : locationContextEnabled, webStorageEnabled, javascriptEnabled
info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
info: [debug] Creating new appium session 31f544b9-1ee0-463e-aa3c-698831acda29
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_60
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Not checking whether app is present since we are assuming it's already on the device
info: [debug] Checking whether adb is present
info: [debug] Using adb from D:\Tools\android-sdk\platform-tools\adb.exe
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device GWY0216C07005073
info: [debug] Setting device id to GWY0216C07005073
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 3600)
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 wait-for-device
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "echo 'ready'"
info: [debug] Starting logcat capture
warn: No app capability, can't parse package/activity
info: [debug] Getting device API level
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 24
info: Device API level is: 24
info: [debug] Apk doesn't exist locally
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "rm -rf /data/local/tmp/strings.json"
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Skipping install since we launched with a package instead of an app path
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 push "D:\Tools\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Enabling Unicode keyboard support
info: [debug] Pushing unicode ime to device...
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 install "D:\Tools\Appium\node_modules\appium\build\unicode_ime_apk\UnicodeIME-debug.apk"
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "settings get secure default_input_method"
info: [debug] Unsetting IME 'com.nuance.swype.emui/com.nuance.swype.input.HuaweiIME'
info: [debug] Setting IME to 'io.appium.android.ime/.UnicodeIME'
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "ime enable io.appium.android.ime/.UnicodeIME"
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "ime set io.appium.android.ime/.UnicodeIME"
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 install "D:\Tools\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 install "D:\Tools\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "ps 'uiautomator'"
info: [debug] Resetting IME to 'com.nuance.swype.emui/com.nuance.swype.input.HuaweiIME'
info: [debug] executing cmd: D:\Tools\android-sdk\platform-tools\adb.exe -s GWY0216C07005073 shell "ime set com.nuance.swype.emui/com.nuance.swype.input.HuaweiIME"
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
error: Failed to start an Appium session, err was: Error: Command failed:
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Error: Command failed:
at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket. (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: )","killed":false,"code":1,"signal":null,"origValue":"Command failed: "},"sessionId":null}
info:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。