51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1332|回复: 1
打印 上一主题 下一主题

[在学] 设置启用ui2报错,不用就正常

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2018-10-30 11:03:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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自动化测试高手修炼班



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2018-10-30 13:14:37 | 只看该作者
不确定安装过程中是否存在缺失;

可以尝试一下在appium-desktop上使用uiautomation2看能否正常运行,如果能运行正常,那么可以把appium-desktop目录下的appium\node_modules,将命令行安装的appium\node_modules替换, 看下是否能成功运行
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-10 21:58 , Processed in 0.066536 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表