def __init__(self, frequency, rds = "ON", ta = "ON", af = "ON", wait_time = 10, **kwargs): ui_step.__init__(self, **kwargs) self.frequency = float(frequency)/100.0 self.rds = rds self.ta = ta self.af = af self.wait_time = wait_time
def __init__(self, name, position, **kwargs): ui_step.__init__(self, **kwargs) adb_step.__init__(self, **kwargs) self.name = name self.position = position self.initial_value = -1 self.final_value = -1
def __init__(self, account=None, password=None, subject=None, **kwargs): ui_step.__init__(self, **kwargs) adb_step.__init__(self, **kwargs) self.account = account self.subject = subject self.password = password self.acc_no = gms_utils.get_google_account_number(serial=self.serial)
def __init__(self, reset_button_text="Reset tablet", reboot_timeout=120, **kwargs): self.reset_button_text = reset_button_text self.reboot_timeout = reboot_timeout ui_step.__init__(self, **kwargs)
def __init__(self, path, **kwargs): ui_step.__init__(self, **kwargs) adb_step.__init__(self, **kwargs) self.path = path self.bt_files = '' self.cmd_check_file = 'ls ' + self.path self.file_to_accept = ''
def __init__(self, app_name, app_description, app_uninstall_time, **kwargs): self.app_name = app_name self.app_description = app_description self.app_uninstall_time = app_uninstall_time * 1000 self.set_passm(str(app_name)) self.set_errorm("", str(app_name)) ui_step.__init__(self, **kwargs)
def __init__(self, browser = "Chrome", browser_process = "chrome", view_to_check = {"packageName": "com.android.chrome"},**kwargs): ui_step.__init__(self, **kwargs) adb_step.__init__(self, **kwargs) self.browser = browser self.browser_process = browser_process self.view_to_check = view_to_check
def __init__(self, serial, **kwargs): self.serial = serial ui_step.__init__(self, serial=serial, **kwargs) adb_step.__init__(self, serial=serial, **kwargs) self.set_errorm("", "Time not updated while device was off") self.set_passm("Time successfully updated while device was off") self.first_date = None self.second_date = None
def __init__(self, account="*****@*****.**", password="******", force=True, **kwargs): ui_step.__init__(self, **kwargs) self.account = account self.password = password self.force = force
def __init__(self, account_to, subject="Compose mail Test", body_mail="this is a test mail", **kwargs): self.account_to = account_to self.subject = subject self.body_mail = body_mail ui_step.__init__(self, **kwargs)
def __init__(self, desired_language_key_word="United States", desired_os_key_word="Langue", original_country="France", **kwargs): ui_step.__init__(self, **kwargs) self.desired_language_key_word = desired_language_key_word self.desired_os_key_word = desired_os_key_word self.original_country = original_country
def __init__(self, title="New document", undo=False, content="This is the content of my new document", **kwargs): self.content = content self.title = title self.undo = undo ui_step.__init__(self, **kwargs)
def __init__(self, search_for="The Hobbit", items_count=5, comparator="=", **kwargs): ui_step.__init__(self, **kwargs) self.search_for = search_for self.items_count = items_count self.comparator = comparator
def __init__(self, desired_language_key_word, desired_language_check_word, desired_original_key_word="United States", desired_original_check_word="Language", **kwargs): ui_step.__init__(self, **kwargs) self.desired_language_key_word = desired_language_key_word self.desired_original_key_word = desired_original_key_word
def __init__(self, title="New document", cancel=False, new_title="Updated document", **kwargs): self.new_title = new_title self.title = title self.cancel = cancel ui_step.__init__(self, **kwargs)
def __init__(self, page_to_check, exists = True, **kwargs): ui_step.__init__(self, **kwargs) self.page_to_check = page_to_check self.exists = exists if exists: self.set_passm("page " + page_to_check + " is present") self.set_errorm("", "page " + page_to_check + " is present") else: self.set_passm("page \"" + page_to_check + "\" not is present") self.set_errorm("", "page \"" + page_to_check + "\" not is present")
def __init__(self, **kwargs): ######################################################################## # Self-explanatory. ######################################################################## pnp_step.__init__(self, **kwargs) ui_step.__init__(self, **kwargs) ######################################################################## # get the benchmark / platform specific sleep time. self.sleeps = pnp_utils.get_glbenchmark_sleep(platform="t100")
def __init__(self, view_to_check={"packageName": "com.google.android.apps.maps"}, timeout=5000, **kwargs): ui_step.__init__(self, **kwargs) self.view_to_check = view_to_check self.timeout = timeout self.set_errorm("", "Could not press car map") self.set_passm("Successfully opened car map") self.step_data = False
def __init__(self, url, text_in_page = None, url_title = None, is_bad_url = False, wait_time = 10000, **kwargs): ui_step.__init__(self, **kwargs) self.url = url self.text_in_page = text_in_page self.url_title = url_title self.is_bad_url = is_bad_url self.wait_time = wait_time self.set_passm("Openning " + url + " checking " + str(url_title)) self.set_errorm("", "Openning " + url + " checking " + str(url_title))
def __init__(self, view_to_check={"packageName": "com.android.car.media"}, timeout=5000, **kwargs): ui_step.__init__(self, **kwargs) self.view_to_check = view_to_check self.timeout = timeout self.set_errorm("", "Could not open car media") self.set_passm("Successfully opened car media") self.step_data = False
def __init__(self, view_to_check={"text": "All apps"}, timeout=5000, **kwargs): ui_step.__init__(self, **kwargs) self.view_to_check = view_to_check self.timeout = timeout self.set_errorm("", "Could not open car ") self.set_passm("Successfully opened car") self.step_data = False
def __init__(self, account=None, password=None, force=True, existing=False, **kwargs): ui_step.__init__(self, **kwargs) self.force = force self.account = account self.password = password self.existing = existing
def __init__(self, account, subject=None, body_mail=None, delete=False, **kwargs): ui_step.__init__(self, **kwargs) self.account = account self.subject = subject self.body_mail = body_mail self.delete = delete
def __init__(self, wait_time=20000, **kwargs): self.wait_time = wait_time ui_step.__init__(self, **kwargs) # adb_connection = Adb(serial=self.serial) # product_name = adb_connection.parse_cmd_output( # cmd="cat /system/build.prop", grep_for="ro.product.name") # self.ro_name = None # if product_name: # ro_name = product_name.split("=")[1] # self.ro_name = ro_name self.step_data = False
def __init__(self, desired_language_key_word="France", desired_os_key_word="Localisation", desired_os_language_translation="Langue", language_section="United States", **kwargs): ui_step.__init__(self, **kwargs) self.desired_language_key_word = desired_language_key_word self.desired_os_key_word = desired_os_key_word self.desired_os_language_translation = desired_os_language_translation self.language_section = language_section
def __init__(self, random_app = False, app_name = None, **kwargs): if not random_app: if app_name: self.app_name = app_name else: self.set_errorm("", "App name is not provided") self.app_no = None else: self.app_name = None self.app_no = random.randint(0, 5) self.set_errorm("", "App number " + str(self.app_no + 1)) self.set_passm("App number " + str(self.app_no + 1)) ui_step.__init__(self, **kwargs)
def __init__(self, account_to, subject="Compose mail Test", body_mail="this is a test mail", send_mail=True, save_as_draft=False, **kwargs): self.account_to = account_to self.subject = subject self.body_mail = body_mail self.send_mail = send_mail self.save_as_draft = save_as_draft ui_step.__init__(self, **kwargs)
def __init__(self, title, to_replace, replaced_by, count=1, undo=True, **kwargs): self.count = count self.title = title self.to_replace = to_replace self.replaced_by = replaced_by self.undo = undo ui_step.__init__(self, **kwargs)
def __init__(self, keyword="test", wait_time=20000, **kwargs): self.keyword = keyword self.wait_time = wait_time ui_step.__init__(self, **kwargs)
def __init__(self, wait_time=20000, from_location="homescreen", **kwargs): self.from_location = from_location self.wait_time = wait_time ui_step.__init__(self, **kwargs)