Monkey稳定性测试常用命令:

1.adb shell monkey n

2.adb shell monkey -p  com.android.calculator2 1000

3.adb shell monkey -p  com.android.calculator2 --throttle 1000 100

4.adb shell monkey -p  com.android.calculator2 --throttle 1000 -s 200 100

5.adb shell monkey -p  com.android.calculator2 --throttle 1000 100 >c:\test.txt 每次都会覆盖原来的结果

6.adb shell monkey -v -p com.android.calculator2 --throttle 1000 --pct-touch 100 100

只需要点击事件,0代表点击事件,--pct-touch 100,表示的是点击事件的百分比,设置成100,代表100%

 【Monkey】Monkey稳定性测试常用命令

7.忽略奔溃和未响应:

adb shell monkey -p com.android.calculator2 --ignore-crashes --ignore-timeouts 1000

 

 测试结果类型:

1.Crash:奔溃

2.ANR:Application Not Responding,程序未响应

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-06-06
  • 2021-05-27
  • 2021-11-25
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2021-10-31
  • 2022-03-12
  • 2022-12-23
  • 2021-06-12
  • 2022-02-03
  • 2022-12-23
相关资源
相似解决方案