示例#1
0
 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
示例#2
0
 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
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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 = ''
示例#6
0
 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)
示例#7
0
 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
示例#9
0
 def __init__(self,
              account="*****@*****.**",
              password="******",
              force=True,
              **kwargs):
     ui_step.__init__(self, **kwargs)
     self.account = account
     self.password = password
     self.force = force
示例#10
0
 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)
示例#11
0
 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
示例#12
0
 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)
示例#13
0
 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
示例#14
0
 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
示例#15
0
 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)
示例#16
0
 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")
示例#17
0
    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")
示例#18
0
 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
示例#19
0
 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))
示例#20
0
 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
示例#21
0
 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
示例#22
0
 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
示例#23
0
 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
示例#24
0
 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
示例#25
0
    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
示例#26
0
 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)
示例#27
0
 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)
示例#28
0
 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)
示例#29
0
 def __init__(self, keyword="test", wait_time=20000, **kwargs):
     self.keyword = keyword
     self.wait_time = wait_time
     ui_step.__init__(self, **kwargs)
示例#30
0
 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)