Renamed avd in sample UI tests

This commit is contained in:
butomo1989 2017-04-24 15:50:18 +02:00
parent e46800e322
commit f1663eb05e
3 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,7 @@ class SimpleAndroidUITests(unittest.TestCase):
'platformName': 'Android', 'platformName': 'Android',
'deviceName': 'Android Emulator', 'deviceName': 'Android Emulator',
'app': '/root/tmp/sample_apk_debug.apk', 'app': '/root/tmp/sample_apk_debug.apk',
'avd': 'samsung_galaxy_s6_5.0.1' 'avd': 'samsung_galaxy_s6_7.1.1'
} }
self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)

View file

@ -6,12 +6,14 @@ from appium import webdriver
class MSiteChromeAndroidUITests(unittest.TestCase): class MSiteChromeAndroidUITests(unittest.TestCase):
def setUp(self): def setUp(self):
# Default google chrome does not exist for android < 6.0
desired_caps = { desired_caps = {
'platformName': 'Android', 'platformName': 'Android',
'deviceName': 'Android Emulator', 'deviceName': 'Android Emulator',
'appPackage': 'com.android.chrome', 'appPackage': 'com.android.chrome',
'appActivity': 'com.google.android.apps.chrome.Main', 'appActivity': 'com.google.android.apps.chrome.Main',
'avd': 'samsung_galaxy_s6_5.0.1' 'avd': 'samsung_galaxy_s6_7.1.1'
} }
self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)

View file

@ -6,12 +6,14 @@ from appium import webdriver
class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): class MSiteDefaultBrowserAndroidUITests(unittest.TestCase):
def setUp(self): def setUp(self):
# Default browser does not exist for android >= 6.0
desired_caps = { desired_caps = {
'platformName': 'Android', 'platformName': 'Android',
'deviceName': 'Android Emulator', 'deviceName': 'Android Emulator',
'appPackage': 'com.android.browser', 'appPackage': 'com.android.browser',
'appActivity': 'com.android.browser.BrowserActivity', 'appActivity': 'com.android.browser.BrowserActivity',
'avd': 'samsung_galaxy_s6_5.0.1' 'avd': 'samsung_galaxy_s6_6.0'
} }
self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)