安卓压力测试
工具:https://github.com/zhangzhao4444/Maxim
1、把framework.jar和monkey.jar push到手机的/sdcard目录
adb push framework.jar monkey.jar /sdcard
2、关闭状态栏
关闭:adb shell settings put global policy_control immersive.full=*
恢复:adb shell settings put global policy_control null
3、旋转屏幕
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
i后面跟的不同的值代表旋转为不同的方向,取值范围为0,1,2,3
4、关闭uiautomator服务
d.uiautomator.stop() # 暂停
d.uiautomator.start() # 开启
5、执行命令:
adb shell CLASSPATH=/sdcard/monkey.jar:/sdcard/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p com.panda.videoliveplatform --uiautomatormix --running-minutes 1 >/sdcard/monkeyout.txt
IOS压力测试
敬请期待