summaryrefslogtreecommitdiff
path: root/glbenchmark-2.5.1/glbenchmark_first_launch.py
blob: 1a153d22a18442afcf55db9f480212669dab3fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Author: Botao Sun <botao.sun@linaro.org>
# First touch on GLBenchmark

import time
import re
from com.dtmilano.android.viewclient import ViewClient

device, serialno = ViewClient.connectToDeviceOrExit()
vc = ViewClient(device, serialno)
time.sleep(2)

apps_tab = vc.findViewWithContentDescriptionOrRaise(re.compile('Apps'))
apps_tab.touch()
time.sleep(5)

vc.dump(window='-1')
target_app = vc.findViewWithText("GLBenchmark 2.5.1")
target_app.touch()
print "GLBenchmark 2.5.1 touched!"
time.sleep(15)

device.press('KEYCODE_BACK')
time.sleep(3)