@echo off
setlocal enabledelayedexpansion
REM 设置循环次数
set loop_count=2147483647
REM 执行循环
for /l %%i in (1, 1, %loop_count%) do (
echo Loop: %%i
REM 启动应用
adb -s 183.60.151.152:22780 shell am start -n com.miHoYo.hkrpg/com.mihoyo.combosdk.ComboSDKActivity
adb -s 183.60.151.152:22779 shell am start -n com.miHoYo.hkrpg/com.mihoyo.combosdk.ComboSDKActivity
timeout /t 20
REM 获取进程数量
for /f %%j in ('adb -s 183.60.151.152:22780 shell "ps -T -p $(pidof com.miHoYo.hkrpg) | grep UnityMain | wc -l"') do set return_code_1=%%j
for /f %%j in ('adb -s 183.60.151.152:22779 shell "ps -T -p $(pidof com.miHoYo.hkrpg) | grep UnityMain | wc -l"') do set return_code_2=%%j
REM 检测返回值是否小于等于 1
set /a decimal_value_1 = !return_code_1!
set /a decimal_value_2 = !return_code_2!
echo !decimal_value_1!
echo !decimal_value_2!
if !decimal_value_1! leq 1 (
echo Test Finish!
goto :EndLoop
)
if !decimal_value_2! leq 1 (
echo Test Finish!
goto :EndLoop
)
REM 模拟滑动操作
start /b adb -s 183.60.151.152:22780 shell input swipe 800 540 800 540 100
adb -s 183.60.151.152:22779 shell input swipe 800 540 800 540 100
timeout /t 10
for /l %%k in (1, 1, 3) do (
start /b adb -s 183.60.151.152:22780 shell input swipe 1500 540 10 540 1000
adb -s 183.60.151.152:22779 shell input swipe 1500 540 10 540 1000
)
REM 关闭应用
adb -s 183.60.151.152:22780 shell am force-stop com.miHoYo.hkrpg
adb -s 183.60.151.152:22779 shell am force-stop com.miHoYo.hkrpg
)
:EndLoop
endlocal
压测《崩铁》是否出现黑屏(Unity线程小于等于1)
原创
©著作权归作者所有:来自51CTO博客作者碼雲的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MySQL压测--参数压测
MySQL压测--参数压测
MySQL 压测 参数压测 -
springmvc转发到别的系统
springmvc.xml中配置了前后缀controller层类配置转发1. 第一种情况结果:多一个admin的路径2. 第二种情况结果:成功3. 第三种情况(应该添加后缀)结果:报错4. 第四种情况结果:找不到映射路径(多了admin路径)5. 第五种情况结果:多了前缀和后缀6. 第六种情况(斜杠加不加,结果一样)结果:多了前缀7. 第六种情况(斜杠加不加,效果一样)结果:成功重定向1. 第一种
springmvc转发到别的系统 springmvc springmvc路径问题 springmvc转发和重定向 后缀