2

I am planning to capture the uiautomator dump view.xml files and try to view using 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?

Lino
  • 5,084
  • 3
  • 21
  • 39
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54

1 Answers1

2
  • adb pull /sdcard/view.xml ./view.uix
  • Import it using Open > UI xml dump
  • Take a screenshot: adb exec-out screencap -p > screen.png
  • Import it using Open > Screenshot
Amin Guermazi
  • 1,632
  • 9
  • 19