Example #1
0
 def select_daily_schedule(self, time, every_day):
     time_list = time.split(":")
     hour = time_list[0]
     minute = time_list[1]
     if WindowsGUIUtil.is_selected(self.AutoRadioButton2):
         WindowsGUIUtil.select_combobox(self.ComboBox, 0)
         WindowsGUIUtil.set_time(self.DateTime, int(hour), int(minute))
         WindowsGUIUtil.input_text(self.BackupEveryDay, str(every_day))
Example #2
0
 def set_suspend_backup(self, number, type):
     if not WindowsGUIUtil.is_selected(self.CheckBox2):
         WindowsGUIUtil.click_button(self.SuspendBackup)
     if WindowsGUIUtil.is_enabled(self.BackupType):
         if type == "hours":
             WindowsGUIUtil.select_combobox(self.BackupType, 0)
         elif type == "days":
             WindowsGUIUtil.select_combobox(self.BackupType, 1)
         elif type == "weeks":
             WindowsGUIUtil.select_combobox(self.BackupType, 2)
     WindowsGUIUtil.input_text(self.SuspendBackupFor, str(number))
Example #3
0
 def set_keylessinfo(self, username, password):
     email = self.EmailAddressEdit
     pwd = self.PasswordEdit
     try:
         result = WindowsGUIUtil.input_text(email, username)
         if result:
             result = WindowsGUIUtil.input_text(pwd, password)
             if result:
                 self.apply()
     except RuntimeError as e:
         print e
         return False
     else:
         return True
    def set_pkey(self, pkey="test1234"):
        usepkeybutton = self.UsePersonalKeyButton
        enterkeybutton = self.EnterKeyButton
        if WindowsGUIUtil.is_visible(usepkeybutton):
            WindowsGUIUtil.click_radio_button(usepkeybutton)
        elif WindowsGUIUtil.is_visible(enterkeybutton):
            WindowsGUIUtil.click_radio_button(enterkeybutton)

        WindowsGUIUtil.input_text(self.EnterKeyEdit, pkey)
        # self.usepkeybutton.CheckByClick()
        # self.enterkeybutton.CheckByClick()
        # self.enterkeyedit.type_keys(pkey)
        self.apply()

        keyconfirmdialog = KeyConfirmDialog(self.oem)
        keyconfirmdialog.apply()
 def set_destination(self, dest="C:/RESTORE"):
     # self.destination.set_text(dest.replace("/", "\\"))
     WindowsGUIUtil.input_text(self.DestinationFolderEdit,
                               dest.replace("/", "\\"))
Example #6
0
 def require_username_and_password(self, username, password, domain=''):
     WindowsGUIUtil.click_radio_button(self.NeedUseInfo)
     WindowsGUIUtil.input_text(self.EditUsername, username)
     WindowsGUIUtil.input_text(self.EditPassword, password)
     WindowsGUIUtil.input_text(self.EditDomain, domain)
Example #7
0
 def use_auto_configuration_script(self, url):
     WindowsGUIUtil.click_radio_button(self.UseConfigScript)
     WindowsGUIUtil.input_text(self.EditURL, url)
Example #8
0
 def use_proxy(self, proxy):
     WindowsGUIUtil.click_radio_button(self.UseTheProxy)
     WindowsGUIUtil.input_text(self.EditProxy, proxy)
Example #9
0
 def set_max_size_of_history_folder(self, size, sizetype):
     if not WindowsGUIUtil.is_selected(self.CheckBox3):
         WindowsGUIUtil.click_button(self.MaxSizeofFolder)
     size = str(size)
     WindowsGUIUtil.input_text(self.MaxSizeofFolderEdit, size)
     WindowsGUIUtil.select_combobox(self.SizeType2, sizetype)
Example #10
0
 def set_max_file_size(self, size, sizetype):
     if not WindowsGUIUtil.is_selected(self.CheckBox2):
         WindowsGUIUtil.click_button(self.MaxFileSize)
     size = str(size)
     WindowsGUIUtil.input_text(self.MaxFileSizeEdit, size)
     WindowsGUIUtil.select_combobox(self.SizeType1, sizetype)
Example #11
0
 def set_backup_times_parameter(self, parameter):
     if WindowsGUIUtil.is_selected(self.AutoRadioButton):
         WindowsGUIUtil.input_text(self.BackupTimesEdit, str(parameter))
Example #12
0
 def set_idle_time_parameter(self, parameter):
     if WindowsGUIUtil.is_selected(self.AutoRadioButton):
         WindowsGUIUtil.input_text(self.IdleTimeEdit, str(parameter))
Example #13
0
 def set_CPU_over_parameter(self, parameter):
     if WindowsGUIUtil.is_selected(self.AutoRadioButton):
         WindowsGUIUtil.input_text(self.CPUoverEdit, str(parameter))
Example #14
0
 def logging_type_is_custom(self, logging_type):
     WindowsGUIUtil.click_button(self.Custom)
     WindowsGUIUtil.input_text(self.CustomEdit, logging_type)
Example #15
0
 def set_warn_days(self, day):
     set_day = self.DayEdit
     WindowsGUIUtil.input_text(set_day, str(day))