Example #1
0
	def setUp(self):
		u.setUp()
		#Launch music player
		d.start_activity(component='com.smartisanos.music/.activities.MusicMain')
		assert d(resourceId = 'com.smartisanos.music:id/ib_right').wait.exists(timeout=5000),'Launch music player failed in 5s!'
		d(text = '歌曲',resourceId = 'com.smartisanos.music:id/rb_song').click.wait()
		assert d(resourceId = 'com.smartisanos.music:id/tv_title',text = '歌曲').wait.exists(timeout = 5000),'Switch to music list failed in 5s!'
Example #2
0
	def setUp(self):
		u.setUp()
Example #3
0
import os
import commands
import sys
import json
import util
from optparse import OptionParser
PKG_ARCHS = ["x86", "arm", "x86_64", "arm64"]

util.setUp()
try:
    usage = "Usage: ./test.py -m shared -a x86"
    opts_parser = OptionParser(usage=usage)
    opts_parser.add_option(
        "-a",
        "--arch",
        dest="pkgarch",
        help="specify the apk arch, e.g. x86, arm, x86_64, arm64")
    global BUILD_PARAMETERS
    (BUILD_PARAMETERS, args) = opts_parser.parse_args()
except Exception as e:
    print "Got wrong options: %s, exit ..." % e
    sys.exit(1)

if not BUILD_PARAMETERS.pkgarch:
    print "Please add the -a parameter for the pkgarch"
    sys.exit(1)
elif BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
    print "Wrong pkg-arch, only support: %s, exit ..." % PKG_ARCHS
    sys.exit(1)

app_name = "CrosswalkVersion"
Example #4
0
	def setUp(self):
		u.setUp()
		#Launch telephony
		d.start_activity(component='com.android.contacts/.activities.DialtactsActivity')
		assert d(text = '拨号').wait.exists(timeout = 5000),'Launch settings failed in 5s!'
Example #5
0
	def setUp(self):
		d.watcher("IGNORE_DRAFT").when(textContains='是否保存草稿').click(text='不保存草稿')
		u.setUp()
Example #6
0
import os
import commands
import sys
import json
import util
from optparse import OptionParser
PKG_ARCHS = ["x86", "arm", "x86_64", "arm64"]

util.setUp()
try:
    usage = "Usage: ./test.py -m shared -a x86"
    opts_parser = OptionParser(usage=usage)
    opts_parser.add_option(
        "-a",
        "--arch",
        dest="pkgarch",
        help="specify the apk arch, e.g. x86, arm, x86_64, arm64")
    global BUILD_PARAMETERS
    (BUILD_PARAMETERS, args) = opts_parser.parse_args()
except Exception as e:
    print "Got wrong options: %s, exit ..." % e
    sys.exit(1)


if not BUILD_PARAMETERS.pkgarch:
    print "Please add the -a parameter for the pkgarch"
    sys.exit(1)
elif BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
    print "Wrong pkg-arch, only support: %s, exit ..." % PKG_ARCHS
    sys.exit(1)
Example #7
0
	def setUp(self):
		d.watcher("IGNORE_ANR").when(textContains='停止运行').click(text='确定')
		u.setUp()
Example #8
0
	def setUp(self):
		u.setUp()
		d.start_activity(component='com.android.browser/.BrowserActivity')
		assert d(resourceId = 'com.android.browser:id/switch_btn').wait.exists(timeout=5000),'Launch browser failed in 5s!'
Example #9
0
	def setUp(self):
		u.setUp()
		# Launch calculator
		d.start_activity(component='com.smartisanos.calculator/.Calculator')
		assert d(resourceId = 'com.smartisanos.calculator:id/show').wait.exists(timeout=5000),'Launch calculator failed in 5s!'