monkey script
This commit is contained in:
parent
0e2349d6ab
commit
3d167021a6
@ -1,13 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# "AVD_4.1_x86_6" "AVD_4.0.3_x86" "AVD_4.1_x86" "Default" "AVD_4.0.3_x86_7" "AVD_4.1_x86_7" "AVD_4.1_x86_9.5" "Galaxy_Tab" "AVD_4.1_x86_4"
|
predefined=1
|
||||||
# "AVD_4.1_x86_6" "AVD_4.1_x86_7" "AVD_4.1_x86_9.5" "AVD_4.1_x86_4"
|
scale=0.51
|
||||||
|
|
||||||
declare -a names=("AVD_4.1_x86_4")
|
# first predefined
|
||||||
|
|
||||||
for name in ${names[@]}
|
if [ $predefined -eq 1 ]
|
||||||
do
|
then
|
||||||
$ANDROID_HOME/tools/emulator -avd $name &
|
declare -a names=("AVD_Nexus_7_by_Google")
|
||||||
$ANDROID_HOME/tools/monkeyrunner ./take_screenshots.py ~/projects/java/android/calculatorpp/calculatorpp/misc/aux/tmp $name
|
for name in ${names[@]}
|
||||||
$ANDROID_HOME/platform-tools/adb -s emulator-5580 emu kill
|
do
|
||||||
done
|
$ANDROID_HOME/tools/emulator -ports 5580,5581 -avd $name -scale $scale &
|
||||||
|
sleep 50
|
||||||
|
$ANDROID_HOME/tools/monkeyrunner ./take_screenshots.py ~/projects/java/android/calculatorpp/calculatorpp/misc/other/tmp/2012.11.25 $name
|
||||||
|
$ANDROID_HOME/platform-tools/adb -s emulator-5580 emu kill
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user