美文网首页
APP压力测试总结

APP压力测试总结

作者: bluepang | 来源:发表于2021-05-22 10:28 被阅读0次

    安卓压力测试

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

    敬请期待

    相关文章

      网友评论

          本文标题:APP压力测试总结

          本文链接:https://www.haomeiwen.com/subject/ipenjltx.html