APP压力测试总结

安卓压力测试

工具: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压力测试

敬请期待

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容