2019-11-01 09:06:13 INFO [main] at com.quvideo.qa.uisp.commen.Kits.getApkPath(Kits.java:39)
- /Users/onepiece/Desktop/SpringBootProjects/xqa/ui-slideplus/apk/com.quvideo.slideplus_8309011.apk
2019-11-01 09:06:13 WARN [main] at com.quvideo.qa.ui.base.XAppiumDriver.initDriver(XAppiumDriver.java:125)
- DRiver 开始初始化
2019-11-01 09:06:13 INFO [main] at com.quvideo.qa.ui.base.JacobCapabilities.initCaps(JacobCapabilities.java:39)
- actual apkpath is:/Users/onepiece/Desktop/SpringBootProjects/xqa/ui-slideplus/apk/com.quvideo.slideplus_8309011.apk
[WARN] com.quvideo.qa.ui.base.XAppiumDriver.stopUiautomaterTest(XAppiumDriver.java:511):adb -s ce23c423 am force-stop io.appium.uiautomator2.server
[WARN] com.quvideo.qa.ui.base.XAppiumDriver.stopUiautomaterTest(XAppiumDriver.java:516):adb -s ce23c423 am force-stop io.appium.uiautomator2.server.test
[WARN] com.quvideo.qa.ui.base.XAppiumDriver.stopUiautomaterTest(XAppiumDriver.java:521):adb -s ce23c423 am force-stop io.appium.settings
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"appPackage":"io.appium.settings","noReset":true,"noSign":true,"deviceName":"androidDevice","appWaitDuration":60000,"androidInstallTimeout":30000,"autoLaunch":false,"newCommandTimeout":600,"automationName":"UiAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"ce23c423","resetKeyboard":true},"capabilities":{"firstMatch":[{"appium:androidInstallTimeout":30000,"appium:appPackage":"io.appium.settings","appium:appWaitDuration":60000,"autoLaunch":false,"appium:automationName":"UiAutomator2","appium:deviceName":"androidDevice","appium:newCommandTimeout":600,"appium:noReset":true,"appium:noSign":true,"platformName":"android","appium:resetKeyboard":true,"appium:udid":"ce23c423","appium:unicodeKeyboard":true}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"appPackage":"io.appium.settings","noReset":true,"noSign":true,"deviceName":"androidDevice","appWaitDuration":60000,"androidInstallTimeout":30000,"autoLaunch":false,"newCommandTimeout":600,"automationName":"UiAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"ce23c423","resetKeyboard":true},null,{"firstMatch":[{"appium:androidInstallTimeout":30000,"appium:appPackage":"io.appium.settings","appium:appWaitDuration":60000,"autoLaunch":false,"appium:automationName":"UiAutomator2","appium:deviceName":"androidDevice","appium:newCommandTimeout":600,"appium:noReset":true,"appium:noSign":true,"platformName":"android","appium:resetKeyboard":true,"appium:udid":"ce23c423","appium:unicodeKeyboard":true}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1572599174278 (17:06:14 GMT+0800 (China Standard Time))
[BaseDriver] The capabilities ["autoLaunch","javascriptEnabled"] are not standard capabilities and should have an extension prefix
[Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "appium:autoLaunch": false,
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:javascriptEnabled": true,
[debug] [BaseDriver] "appium:androidInstallTimeout": 30000,
[debug] [BaseDriver] "appium:appPackage": "io.appium.settings",
[debug] [BaseDriver] "appium:appWaitDuration": 60000,
[debug] [BaseDriver] "appium:automationName": "UiAutomator2",
[debug] [BaseDriver] "appium:deviceName": "androidDevice",
[debug] [BaseDriver] "appium:newCommandTimeout": 600,
[debug] [BaseDriver] "appium:noReset": true,
[debug] [BaseDriver] "appium:noSign": true,
[debug] [BaseDriver] "appium:resetKeyboard": true,
[debug] [BaseDriver] "appium:udid": "ce23c423",
[debug] [BaseDriver] "appium:unicodeKeyboard": true
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] javascriptEnabled
[BaseDriver] Session created with session id: ebdc5a0e-42e9-49cd-9b83-f940db1fb2c1
[UiAutomator2] Starting 'io.appium.settings' directly on the device
[ADB] Found 2 'build-tools' folders under '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx' (newest first):
[ADB] /Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/build-tools/29.0.2
[ADB] /Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/build-tools/26.0.0
[ADB] Using 'adb' from '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb'
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"ce23c423","state":"device"}]
[AndroidDriver] Using device: ce23c423
[ADB] Using 'adb' from '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb'
[debug] [ADB] Setting device id to ce23c423
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 wait-for-device'
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell dumpsys package io.appium.settings'
[ADB] Using 'apkanalyzer' from '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/tools/bin/apkanalyzer'
[debug] [ADB] Starting '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/tools/bin/apkanalyzer' with args ["manifest","print","/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk"]
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.14.2' >= '2.14.2')
[debug] [ADB] There is no need to install/upgrade '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell pgrep ^appium\.settings\$'
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell pgrep ^appium\.settings\$'
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell appops set io.appium.settings android:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell settings get secure default_input_method'
[debug] [AndroidDriver] Unsetting previous IME com.baidu.input_bbk.service/.PinyinIME
[debug] [AndroidDriver] Setting IME to 'io.appium.settings/.UnicodeIME'
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell ime enable io.appium.settings/.UnicodeIME'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell am force-stop io.appium.settings'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 forward --remove tcp:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 forward --remove tcp:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1572599179138 (17:06:19 GMT+0800 (China Standard Time))
[debug] [W3C] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell ime enable io.appium.settings/.UnicodeIME' exited with code 137'; Stderr: ''; Code: '137'
[debug] [W3C] Error: Command '/Users/onepiece/Downloads/toolspath/android/android-sdk-macosx/platform-tools/adb -P 5037 -s ce23c423 shell ime enable io.appium.settings/.UnicodeIME' exited with code 137
[debug] [W3C] at ChildProcess. (/usr/local/lib/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] [W3C] at ChildProcess.emit (events.js:203:13)
[debug] [W3C] at maybeClose (internal/child_process.js:1021:16)
[debug] [W3C] at Socket. (internal/child_process.js:430:11)
[debug] [W3C] at Socket.emit (events.js:203:13)
[debug] [W3C] at Pipe. (net.js:588:12)
↙↙↙阅读原文可查看相关链接,并与作者交流