diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-11-24 18:16:35 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-11-24 18:16:35 +0000 |
commit | ff4482fc9f386596ef7334be0e45f5eea95d28e6 (patch) | |
tree | eb98a8f6dd90cf77e3f8b171c705641959ac2907 | |
parent | 5612717d7e96fbfd86f63abbca8bb735ff4e50b3 (diff) |
vellamo: fixed script for Juno
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rw-r--r-- | vellamo/vc.py | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/vellamo/vc.py b/vellamo/vc.py index d4826b1..5e6ca2b 100644 --- a/vellamo/vc.py +++ b/vellamo/vc.py @@ -5,7 +5,6 @@ import time from subprocess import call from HTMLParser import HTMLParser - from com.dtmilano.android.viewclient import ViewClient, ViewNotFoundException def extract_scores(filename): @@ -56,7 +55,30 @@ vc.dump('-1') btn_setup_2 = vc.findViewByIdOrRaise("android:id/button2") btn_setup_2.touch() vc.dump('-1') -time.sleep(10) +time.sleep(1) + +#Discard low battery level dialog +btn_battery_3 = vc.findViewByIdOrRaise("android:id/button3") +btn_battery_3.touch() +vc.dump('-1') +time.sleep(1) + +#Discard no network connection +btn_network_3 = vc.findViewByIdOrRaise("android:id/button3") +btn_network_3.touch() +vc.dump('-1') +time.sleep(1) + +#Disable safeguards +btn_more = vc.findViewWithTextOrRaise("More") +btn_more.touch() +vc.dump('-1') +time.sleep(1) + +btn_safeguards = vc.findViewWithTextOrRaise("Override Safeguards") +btn_safeguards.touch() +vc.dump('-1') +time.sleep(1) #Start Button btn_start_on = vc.findViewWithTextOrRaise("Start") @@ -64,7 +86,7 @@ btn_start_on.touch() vc.dump('-1') time.sleep(5) -#Enable Tutorial button +#Discard Enable Tutorial dialog btn_setup_3 = vc.findViewByIdOrRaise("android:id/button2") btn_setup_3.touch() @@ -75,7 +97,7 @@ while (not finished): try: vc.dump(window='-1') vc.findViewByIdOrRaise("com.quicinc.vellamo:id/score_view") - finished = True + finished = True except ViewNotFoundException: pass except RuntimeError as e: |