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"])
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)
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()
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()
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()
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()
def setup_class(self): self.driver = setup() self.user_manage = user_manage.UserManage(self.driver) login(self.driver) self.user_manage.open_user_manage()
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()
def setup_class(self): # 创建对象接受setup的返回值 self.driver = setup() # 创建对象将self.driver传给DomainPage self.domain = domain_manage.DomainManage(self.driver) login(self.driver)