Ale*_*le7 9 xml testing android adb android-uiautomator
我正在用adb测试我的应用程序,但是当我执行"uiautomator的转储视图层次结构"时,我收到此错误:
获取UI层次结构时出错获取UI层次结构XML文件时出错:com.android.ddmlib.SyncException:远程对象不存在!
我的adb版本是1.0.36,我的android版本是6.0.1.
仅当在界面中存在运动中的动态元素时才会启动此错误.
先感谢您.
Ale*_* P. 11
目前,您的UI需要在AccessibilityService能够生成UI层次结构转储之前至少1000ms 处于空闲状态(如在没有发送的可访问性事件中).
如果你试图运行adb shell uiautomator dump它会给你ERROR: could not get idle state.
我意识到这是一个旧帖子。但是当我使用 uiautomator 控制模拟器进行自动化测试时,我注意到了同样的问题。在模拟器被uiautomator控制后,uiautomatorviewer似乎没有连接到模拟器来截图。
我发现运行adb reconnect允许 uiautomatorviewer 再次截取屏幕截图。
| 归档时间: |
|
| 查看次数: |
27434 次 |
| 最近记录: |