本帖最后由 bbb327 于 2018-10-30 11:07 编辑
老师,
appium日志: [Appium] Welcome to Appium v1.9.1 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"app":"E:software\\youdaonote_android_6.2.6_youdaoweb.apk","appActivity":".activity2.SplashActivity","appPackage":"com.youdao.note","noReset":"true","automationName":"UIAutomator2","platformName":"Android","deviceName":"first","version":"7.1.1"},"capabilities":{"alwaysMatch":{"appium:app":"E:software\\youdaonote_android_6.2.6_youdaoweb.apk","appium:appActivity":".activity2.SplashActivity","appium:appPackage":"com.youdao.note","appium:automationName":"UIAutomator2","appium:deviceName":"first","appium:noReset":"true","platformName":"android","version":"7.1.1"},"firstMatch":[{}]}} [color=rgba(0, 0, 0, 0.56)][W3C] Calling AppiumDriver.createSession() with args: [{"app":"E:software\\youdaonote_android_6.2.6_youdaoweb.apk","appActivity":".activity2.SplashActivity","appPackage":"com.youdao.note","noReset":"true","automationName":"UIAutomator2","platformName":"Android","deviceName":"first","version":"7.1.1"},null,{"alwaysMatch":{"appium:app":"E:software\\youdaonote_android_6.2.6_youdaoweb.apk","appium:appActivity":".activity2.SplashActivity","appium:appPackage":"com.youdao.note","appium:automationName":"UIAutomator2","appium:deviceName":"first","appium:noReset":"true","platformName":"android","version":"7.1.1"},"firstMatch":[{}]}] [BaseDriver] Event 'newSessionRequested' logged at 1540195528001 (16:05:28 GMT+0800 (中国标准时间)) [BaseDriver] The capabilities ["version"] are not standard capabilities and should have an extension prefix [BaseDriver] Boolean capability passed in as string. Functionality may be compromised. [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] version: 7.1.1 [Appium] app: E:software\youdaonote_android_6.2.6_youdaoweb.apk [Appium] appActivity: .activity2.SplashActivity [Appium] appPackage: com.youdao.note [Appium] automationName: UIAutomator2 [Appium] deviceName: first [Appium] noReset: true [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"E:software\\youdaon... were provided [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] Boolean capability passed in as string. Functionality may be compromised. [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior [BaseDriver] The following capabilities were provided, but are not recognized by appium: version. [BaseDriver] Session created with session id: 0039c460-9e76-4917-9367-558a634699b9 [BaseDriver] Using local app 'E:software\youdaonote_android_6.2.6_youdaoweb.apk' [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_191 [AndroidDriver] Retrieving device list [ADB] Trying to find a connected android device [ADB] Getting connected devices... [ADB] 1 device(s) connected [AndroidDriver] Using device: 192.168.159.101:5555 [ADB] Setting device id to 192.168.159.101:5555 [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell getprop ro.build.version.sdk' [ADB] Current device property 'ro.build.version.sdk': 25 [ADB] Device API level: 25 [ADB] Getting device platform version [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell getprop ro.build.version.release' [ADB] Current device property 'ro.build.version.release': 7.1.1 [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell wm size' [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell wm density' [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell getprop ro.product.model' [ADB] Current device property 'ro.product.model': first [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell getprop ro.product.manufacturer' [ADB] Current device property 'ro.product.manufacturer': Genymotion [ADB] Device API level: 25 [ADB] Running 'E:\software\platform-tools\adb.exe -P 5037 -s 192.168.159.101\:5555 shell am force-stop io.appium.uiautomator2.server' [ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk [ADB] Cannot use apksigner tool for signature verification. Defaulting to verify.jar. Original error: Could not find apksigner.bat in C:\Users\Administrator\AppData\Local\Programs\Appium\platform-tools\apksigner.bat,C:\Users\Administrator\AppData\Local\Programs\Appium\emulator\apksigner.bat,C:\Users\Administrator\AppData\Local\Programs\Appium\tools\apksigner.bat,C:\Users\Administrator\AppData\Local\Programs\Appium\tools\bin\apksigner.bat. Do you have the Android SDK installed at ''? [ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is not signed with debug cert. [ADB] Signing 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' with default cert .......
在学课程: Appium移动app自动化测试高手修炼班
|