咱們穩定性測試用的monkey,跑monkey的同時存儲logshell
monkey腳本:測試
@echo.
@set /p name=請輸入你的名字(好比liuyl):spa
set YYYYmmdd=%date:~0,4%%date:~5,2%%date:~8,2%
mkdir %YYYYmmdd%blog
start "logcat" cmd /k call logcat_v1.0.bat
adb shell monkey -p com.tencent.xxx -p com.tencent.xxx --ignore-security-exceptions --kill-process-after-error --ignore-crashes --ignore-timeouts --pct-syskeys 0 -v -v -v --throttle 300 1000000000 > %YYYYmmdd%\monkeylog_%name%.txtcmd
logcat腳本:it
@echo [*] 次日Monkey測試結束後,請按Ctrl+C結束io
@set /p name=請輸入你的名字(好比liuyl):thread
set YYYYmmdd=%date:~0,4%%date:~5,2%%date:~8,2%bfc
adb logcat -v threadtime > %YYYYmmdd%\logcatlog_%name%.txtdate
開始處理生成的log,查找ANR,CRASH等信息
經過數據處理文件*.py處理log,篩選anr,crash等信息