From e2b24dc170538557a25c2d6d415fd0021ec83e05 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Wed, 1 Mar 2017 13:30:36 +0100 Subject: [PATCH] Edited example UI tests with appium --- example/android/python/app_simple.py | 3 +-- example/android/python/msite_simple_chrome.py | 3 +-- example/android/python/msite_simple_default_browser.py | 3 +-- example/android/python/msite_simple_firefox.py | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/example/android/python/app_simple.py b/example/android/python/app_simple.py index f16a046..483c35c 100644 --- a/example/android/python/app_simple.py +++ b/example/android/python/app_simple.py @@ -9,9 +9,8 @@ class SimpleAndroidUITests(unittest.TestCase): desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', - 'platformVersion': '4.2', 'app': '/target_apk/sample_apk_debug.apk', - 'avd': 'emulator_4.2.2' + 'avd': 'nexus_5_5.0' } 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 728cdc7..61bab1e 100644 --- a/example/android/python/msite_simple_chrome.py +++ b/example/android/python/msite_simple_chrome.py @@ -9,13 +9,12 @@ class MSiteChromeAndroidUITests(unittest.TestCase): desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', - 'platformVersion': '4.2', # For emulator type armeabi, please use browser apk : # /root/browser_apk/chrome_55.0.2883.91-288309100_min_android4.1_armeabi-v7a.apk 'app': '/root/browser_apk/chrome_55.0.2883.91_min_android4.1_x86.apk', 'appPackage': 'com.android.chrome', 'appActivity': 'com.google.android.apps.chrome.Main', - 'avd': 'emulator_4.2.2' + 'avd': 'nexus_5_5.0' } 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 6a69e83..fbc377b 100644 --- a/example/android/python/msite_simple_default_browser.py +++ b/example/android/python/msite_simple_default_browser.py @@ -9,10 +9,9 @@ class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', - 'platformVersion': '4.2', 'appPackage': 'com.android.browser', 'appActivity': 'com.android.browser.BrowserActivity', - 'avd': 'emulator_4.2.2' + 'avd': 'nexus_5_5.0' } self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) diff --git a/example/android/python/msite_simple_firefox.py b/example/android/python/msite_simple_firefox.py index 75588a3..897c90b 100644 --- a/example/android/python/msite_simple_firefox.py +++ b/example/android/python/msite_simple_firefox.py @@ -9,13 +9,12 @@ class MSiteFirefoxAndroidUITests(unittest.TestCase): desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', - 'platformVersion': '4.2', # For emulator type armeabi, please use browser apk : # /root/browser_apk/firefox_51.0-2015466281_min_android4.0.3_armeabi-v7a.apk 'app': '/root/browser_apk/firefox_51.0-2015466284_min_android4.0.3_x86.apk', 'appPackage': 'org.mozilla.firefox', 'appActivity': 'org.mozilla.gecko.LauncherActivity', - 'avd': 'emulator_4.2.2' + 'avd': 'nexus_5_5.0' } self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)