更新:
我決定去用一個簡單的shell腳本,因爲我想不出什麼更「聰明」的事情。這仍然是一項正在進行的工作。這是它的當前狀態:
#!/bin/bash
REPORTROOT=./reports
# remove old report files
echo "Removing old output report files..."
rm $REPORTROOT
# make dir for new report files
echo "Output reports will be stored in $REPORTROOT..."
mkdir $REPORTROOT
# run monkey on the entire system
echo "Running Monkey on entire system..."
adb -e shell monkey -v -v -v 500 > $REPORTROOT/monkey_sys.txt
# pull the log file from device?
# run monkey on particular packages
# packages here...
# create composite report
echo "Running reports..."
grep -A 5 -h -r CRASH $REPORTROOT > $REPORTROOT/crash_report.txt
輸出與任何崩潰的幾行簡單的.txt文件。
它已久,因爲這提高後,比慶典/任何最近的解決方案,這個其他 – nullpointer 2016-01-20 03:34:44