先看uiautomator的命令解析,随便输了个uiautomator -help,让其显示用法,打印出来的信息如下:
——————————————————————————————————————————————————————————————
shell@V4:/ $ uiautomator -help
uiautomator -helpUsage: uiautomator <subcommand> [options]
Available subcommands:
help: displays help message
runtest: executes UI automation tests
runtest <class spec> [options]
<class spec>: <JARS> < -c <CLASSES> | -e class <CLASSES> >
<JARS>: a list of jar files containing test classes and dependencies. If
the path is relative, it's assumed to be under /data/local/tmp. Use
absolute path if the file is elsewhere. Multiple files can be
specified, separated by space.
<CLASSES>: a list of test class names to run, separated by comma. To