def setup_class(self, login_info=data("open_audit_manage")[0]):
     self.driver = setup()
     self.audit = resource_audit.ResourceAudit(self.driver)
     login(self.driver,
           user_name=login_info["user_name"],
           user_pass=login_info["user_pass"])
     self.audit.open_resource_application(login_info["module_type"])
示例#2
0
 def test_change_pass(self, lod_pass="******", new_pass="******"):
     admin_pass = self.login.data_run(data("admin_pass"))
     login(self.driver)
     self.login.change_pass()
     self.login.input_lod_pass(lod_pass)
     self.login.input_new_pass(new_pass)
     self.login.input_confirm_pass(new_pass)
     self.login.click_confirm_change()
     print("【修改密码】", self.login.data_run(data("admin_pass")) != admin_pass)
示例#3
0
 def test_restore_pass(self, lod_pass="******", new_pass="******"):
     admin_pass = self.login.data_run(data("admin_pass"))
     login(self.driver, user_pass=lod_pass)
     self.login.change_pass()
     self.login.input_lod_pass(lod_pass)
     self.login.input_new_pass(new_pass)
     self.login.input_confirm_pass(new_pass)
     self.login.click_confirm_change()
     teardown(self.driver)
     print("【恢复密码】", self.login.data_run(data("admin_pass")) != admin_pass)
     os.system("allure generate ../../logs_file -o ../../logs_file/html")
 def setup_class(self):
     self.driver = setup()
     self.domain = domain_manage.DomainManage(self.driver)
     login(self.driver)
     self.domain.open_domain()
示例#5
0
 def setup_class(self, module_info=data("audit_config")):
     self.driver = setup()
     self.audit = resource_audit.ResourceAudit(self.driver)
     login(self.driver)
     self.audit.open_resource_application(module_info["module_type"])
 def setup_class(self):
     self.driver = setup()
     self.parameter = parameter_config.ParameterConfig(self.driver)
     login(self.driver)
     self.parameter.open_parameter_config()
 def setup_class(self):
     self.driver = setup()
     self.auth = authority_manage.AuthorityManage(self.driver)
     login(self.driver)
     self.auth.open_authority()
 def setup_class(self):
     self.driver = setup()
     self.manual = user_manual.UserManual(self.driver)
     login(self.driver)
     self.manual.open_user_manual()
 def setup_class(self):
     self.driver = setup()
     self.annot = announcements.Announcements(self.driver)
     login(self.driver)
     self.annot.open_announcements()
示例#10
0
 def setup_class(self):
     self.driver = setup()
     self.soft = software_manage.SoftwareManage(self.driver)
     login(self.driver)
     self.soft.open_soft_manage()
 def setup_class(self):
     self.driver = setup()
     self.myapp = my_application.MyApplication(self.driver)
     login(self.driver, data("user_name"), data("user_pass"))
     self.myapp.click_my_share()
 def setup_class(self):
     self.driver = setup()
     self.resource = resource_pool.ResourcePool(self.driver)
     login(self.driver)
     self.resource.open_resource_pool()
 def setup_class(self):
     self.driver = setup()
     self.auth = resource_auth.ResourceAuth(self.driver)
     login(self.driver)
     self.auth.open_resource_auth()
示例#14
0
 def setup_class(self):
     self.driver = setup()
     self.hardware = hardware_manage.HardwareManage(self.driver)
     login(self.driver)
     self.hardware.open_hardware_manage()
 def setup_class(self):
     self.driver = setup()
     self.info = basic_info.BasicInfo(self.driver)
     login(self.driver)
     self.info.open_basic_info()
示例#16
0
 def setup_class(self):
     self.driver = setup()
     self.user_manage = user_manage.UserManage(self.driver)
     login(self.driver)
     self.user_manage.open_user_manage()
示例#17
0
 def setup_class(self):
     self.driver = setup()
     self.data_manage = user_data_manage.UserDataManage(self.driver)
     login(self.driver, data("user_name"), data("user_pass"))
     self.data_manage.open_user_data_manage()
示例#18
0
 def setup_class(self):
     # 创建对象接受setup的返回值
     self.driver = setup()
     # 创建对象将self.driver传给DomainPage
     self.domain = domain_manage.DomainManage(self.driver)
     login(self.driver)