講師回答 / 毫末
把monkeyrunner的位置添加到環(huán)境變量path里。執(zhí)行不了了,是因?yàn)橛兄形牡脑?,需要在python腳本里,明確聲明為utf-8格式。 #encoding:utf-8
2016-12-06
你們注意到了么,三次用的是同一個(gè)seed,但是崩潰時(shí)已經(jīng)執(zhí)行測試的次數(shù)并不一樣?
2016-12-01
講師回答 / 毫末
可以忽略每條命令的執(zhí)行時(shí)間,命令之間設(shè)置間隔,然后用10小時(shí)/命令之間的時(shí)間間隔 = 算出要執(zhí)行的次數(shù)。 之后,在命令中,設(shè)置執(zhí)行的次數(shù)就ok了
2016-11-30
感謝老師嘿嘿,差不過能看懂那些代碼了
monkey -p com.android.browser --throttle 1500 --monitor-native-crashes --ignore-security-exceptions --ignore-native-crashes --pct-syskeys 5 --pct-motion 20 --pct-nav 10 --pct-majornav 20 --pct-appswitch 40 --pct-anyevent 5 -v -v -v 30000 >>$testresult/monkey.log &
waitmonkey
monkey -p com.android.browser --throttle 1500 --monitor-native-crashes --ignore-security-exceptions --ignore-native-crashes --pct-syskeys 5 --pct-motion 20 --pct-nav 10 --pct-majornav 20 --pct-appswitch 40 --pct-anyevent 5 -v -v -v 30000 >>$testresult/monkey.log &
waitmonkey
2016-11-27