This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import time | |
| udid = '99SAY1BJFV' | |
| filename = 'videoRecord' | |
| def startRecord(filename): | |
| adb = 'adb -s ' + udid + ' shell screenrecord /sdcard/' + filename + '.mp4' | |
| os.system(adb) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from appium import webdriver | |
| import os.path | |
| import time | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.common.by import By | |
| from appium.webdriver.common.touch_action import TouchAction | |
| xpath = By.XPATH | |
| id = By.ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Common import Utility as ss | |
| import pytest | |
| import os | |
| appPackageappActivity = "com.android.settings/.Settings" | |
| @pytest.mark.parametrize("lang, udid, systemPort, appPackage, appActivity", [ | |
| ("en-US,ko,ja", "98151FFAZ002QN", "8201", "com.android.settings", ".Settings"), | |
| ("zh-TW,fr,hi", "99151FFAZ008YB", "8202", "com.android.settings", ".Settings") | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Common import mWebBaseClass as ss | |
| import pytest | |
| import os | |
| @pytest.mark.parametrize("lang, udid, systemPort", [ | |
| ("en-US,ja,ko,id", "FA7BP1A03027", "8201") | |
| ] | |
| ) | |
| def test_AndroidTestCase(lang, udid, systemPort): | |
| for lang in lang.split(","): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Common import mWebBaseClass as ss | |
| import pytest | |
| import os | |
| @pytest.mark.parametrize("lang, udid, systemPort", [ | |
| ("en-US,ja,ko,id", "FA7BP1A03027", "8201") | |
| ] | |
| ) | |
| def test_AndroidTestCase(lang, udid, systemPort): | |
| for lang in lang.split(","): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import time | |
| udid = '9A221FFBA002JN' | |
| appPackage = 'com.google.android.apps.gmm' | |
| appActivity = 'com.google.android.maps.MapsActivity' | |
| def startApp(): | |
| print('Start application ' + appPackage) | |
| adb = 'adb -s ' + udid + ' shell am start -n ' + appPackage + '/' + appActivity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Common import Utility as ss | |
| import os.path | |
| import pytest | |
| @pytest.mark.parametrize("language, profile", [ | |
| ("ar,bg,ca,da,de", "prof1"), | |
| ("el,en-AU,en-GB,en-US,es,es-419,et", "prof2"), | |
| ("fi,fil,fr,hi,hr,hu", "prof3") | |
| ] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.common.action_chains import ActionChains as chains | |
| from selenium.webdriver.support.ui import Select | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.common.exceptions import TimeoutException | |
| import time | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| import pytest | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| import os | |
| @pytest.mark.parametrize("language, profile, profDriver", [ | |
| ("ar,bg,ca,da,de", "Profile_01", "chromedriver1"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytest | |
| from appium import webdriver | |
| import time | |
| @pytest.mark.parametrize("lang, udid, systemPort", [ | |
| ("en-US,fr-FR,ko-KR,ar-GE", "FA7BN1A04058", "8201"), | |
| ("ka-IN,zh-TW,ja-JP,pt-BR", "FA7BN1A04086", "8202") | |
| ] | |
| ) | |
| def test_SettingsTestCase(lang, udid, systemPort): |