自动化要做断言,原本打算使用的testng,因为它断言后就能出结果,还能生成报告,但是在实践过程中,硬是没有成功,所以还是放弃,使用的junit,后面使用的cts框架生成的邮件,现在记录使用junit遇到的坑

1.在调试junit时提示shortMsg=java.lang.RuntimeException

uiatuomator提示shortMsg=java.lang.RuntimeException

 

出现这样的问题解决方法

1.项目clear,关闭项目在重新开启

2.前面已经运行了一个应用程序还没有结束,导致后面不能运行

先查出uiatuomator的进程,在杀掉进程,

adb shell ps |find "uiautomator"      

adb shell kill <PID>

 

相关文章:

  • 2021-08-06
  • 2021-04-09
  • 2021-08-10
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-07-03
  • 2021-08-03
  • 2022-12-23
  • 2022-02-14
相关资源
相似解决方案