简体   繁体   English

Android - Uiautomatorviewer - 如何使用 Uiautomatorviewer 查看 uiautomator 转储视图。xml 文件?

[英]Android - Uiautomatorviewer - How to view uiautomator dump view.xml file using Uiautomatorviewer?

I am planning to capture the uiautomator dump view.xml files and try to view using Uiautomatorviewer.我计划捕获 uiautomator 转储 view.xml 文件并尝试使用 Uiautomatorviewer 查看。

adb shell uiautomator dump view.xml

Is there a way to capture the uiautomatorsnapshots from command line while tests are running and able to view these files using Uiautomatorviewer?有没有办法在测试运行时从命令行捕获 uiautomatornapshots 并能够使用 Uiautomatorviewer 查看这些文件?

  • adb pull /sdcard/view.xml./view.uix
  • Import it using Open > UI xml dump使用Open > UI xml dump导入它
  • Take a screenshot: adb exec-out screencap -p > screen.png截图: adb exec-out screencap -p > screen.png
  • Import it using Open > Screenshot使用Open > Screenshot导入它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM