diff options
author | Amit Khare <amit.khare@linaro.org> | 2014-08-19 18:01:09 +0530 |
---|---|---|
committer | Amit Khare <amit.khare@linaro.org> | 2014-08-19 18:01:09 +0530 |
commit | cd9f13b491827808f3507a5a0b6e03ee7db682a5 (patch) | |
tree | fb32398ae03795cf8ebb8b11fc2f4d168a712a4b | |
parent | 5d0f7c263c4a2dc241ba87c9b6ef4c035aacc287 (diff) |
Fixed vellamo
-rwxr-xr-x[-rw-r--r--] | vellamo/adb_pull.sh | 0 | ||||
-rw-r--r-- | vellamo/vc.py | 13 |
2 files changed, 4 insertions, 9 deletions
diff --git a/vellamo/adb_pull.sh b/vellamo/adb_pull.sh index 1b97d98..1b97d98 100644..100755 --- a/vellamo/adb_pull.sh +++ b/vellamo/adb_pull.sh diff --git a/vellamo/vc.py b/vellamo/vc.py index b918546..8bbe162 100644 --- a/vellamo/vc.py +++ b/vellamo/vc.py @@ -8,12 +8,6 @@ from HTMLParser import HTMLParser from com.dtmilano.android.viewclient import ViewClient, ViewNotFoundException -#def collect_score(score_name, score_widget): - #print ['lava-test-case', score_name, '--result pass', '--measurement', score_widget.getText()] - -#parent_dir = os.path.realpath(os.path.dirname(__file__)) -#res_path = os.path.join(parent_dir, 'latest_result.html') - def extract_scores(filename): list_of_scores = [] @@ -62,11 +56,13 @@ vc.dump('-1') btn_setup_2 = vc.findViewByIdOrRaise("android:id/button2") btn_setup_2.touch() vc.dump('-1') +time.sleep(5) #Start Button -btn_start_on = vc.findViewByIdOrRaise("android:id/title") +btn_start_on = vc.findViewWithTextOrRaise("Start") btn_start_on.touch() vc.dump('-1') +time.sleep(2) #Enable Tutorial button btn_setup_3 = vc.findViewByIdOrRaise("android:id/button2") @@ -75,13 +71,12 @@ btn_setup_3.touch() #Wait while Vellamo is running benchmark finished = False while (not finished): - time.sleep(35) + time.sleep(50) try: vc.dump(window='-1') vc.findViewByIdOrRaise("com.quicinc.vellamo:id/score_view") finished = True except ViewNotFoundException: - #finished = True pass except RuntimeError as e: print e |