Android UiAutomator快速调试

在测试类中添加主函数

public static void main(String[] args){  
    String jarName,testClass, testName,androidId;  
    jarName="test1";//生成的jar包名  
    testClass="com.li.test1";//测试包名  
    testName="testDemo";//测试类名  
    androidId="1";//对应androidSDK版本  
      
    new UiAutomatorHelper(jarName, testClass, testName, androidId);  
} 

 

直接点击运行~~

posted @ 2016-09-30 15:33  黒貓  阅读(678)  评论(0编辑  收藏  举报