在测试类中添加主函数

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);  
} 

 

直接点击运行~~

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-05-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-06-03
相关资源
相似解决方案