Renamed avd in sample UI tests
This commit is contained in:
parent
e46800e322
commit
f1663eb05e
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue