Ui Automator Test Through Command

问题描述:

  通过adb shell uiautomator runtest 命令,直接运行java测试例。

 

命令解析:    

   adb shell uiautomator runtest <JARS> -c <CLASSES> [options]

       example:

   adb shell uiautomator runtest LaunchSettings.jar -c com.uia.example.my.LaunchSettings


 参考资料: https://developer.android.com/tools/help/uiautomator/index.html

      

原文地址:https://www.cnblogs.com/udld/p/4220769.html