From f1663eb05eee1718ad9390df08863f8f4b28d6cf Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Mon, 24 Apr 2017 15:50:18 +0200 Subject: [PATCH] Renamed avd in sample UI tests --- example/android/python/app_simple.py | 2 +- example/android/python/msite_simple_chrome.py | 4 +++- example/android/python/msite_simple_default_browser.py | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/example/android/python/app_simple.py b/example/android/python/app_simple.py index ef5866b..fe214ca 100644 --- a/example/android/python/app_simple.py +++ b/example/android/python/app_simple.py @@ -10,7 +10,7 @@ class SimpleAndroidUITests(unittest.TestCase): 'platformName': 'Android', 'deviceName': 'Android Emulator', '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) diff --git a/example/android/python/msite_simple_chrome.py b/example/android/python/msite_simple_chrome.py index 67ee18f..32bb198 100644 --- a/example/android/python/msite_simple_chrome.py +++ b/example/android/python/msite_simple_chrome.py @@ -6,12 +6,14 @@ from appium import webdriver class MSiteChromeAndroidUITests(unittest.TestCase): def setUp(self): + + # Default google chrome does not exist for android < 6.0 desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPackage': 'com.android.chrome', '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) diff --git a/example/android/python/msite_simple_default_browser.py b/example/android/python/msite_simple_default_browser.py index 69b4771..e6fe319 100644 --- a/example/android/python/msite_simple_default_browser.py +++ b/example/android/python/msite_simple_default_browser.py @@ -6,12 +6,14 @@ from appium import webdriver class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): def setUp(self): + + # Default browser does not exist for android >= 6.0 desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPackage': 'com.android.browser', '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)