def __init__(self, driver): self.driver = driver self.logs = log.log_message() self.file1 = open(path + "\\data\\page_data.yaml", "r", encoding="utf-8") self.data = yaml.load(self.file1) self.file1.close() self.zhao_url = self.data['zhaohui'].get('url') self.zhao_username = self.data['zhaohui'].get('username') self.zhao_btn = self.data['zhaohui'].get('zhaohui_btn') self.zhao_err = self.data['zhaohui'].get('zhaohui_err') self.zhao_suc = self.data['zhaohui'].get('zhaohui_suc') self.driver.get(self.zhao_url)
def __init__(self, driver): # self.driber = driver self.logs = log.log_message() self.file = open(path + "\\data\\page_data.yaml", "r", encoding="utf-8") self.data = yaml.load(self.file) self.file.close() self.lo_url = self.data['login'].get('url') self.denglu = self.data['login'].get('denglu') self.username = self.data['login'].get('name') self.password = self.data['login'].get('password') self.sub = self.data['login'].get('denglu_btm') self.lo_err = self.data['login'].get('login_err') self.lo_suc = self.data['login'].get('login_suc') self.driber.get(self.lo_url)
def __init__(self, driver): title = '修改模块' self.logs = log.log_message() self.driver = driver self.file1 = open(path + "\\data\\page_data.yaml", "r", encoding="utf-8") self.data = yaml.load(self.file1) self.file1.close() self.xiugai_url = self.data['xiugai'].get('url') self.xiugai_yuan = self.data['xiugai'].get('yuanmi') self.xiugai_mima = self.data['xiugai'].get('xiugaimi') self.xiugai_mimaque = self.data['xiugai'].get('xiugaimi1') self.xiugai_btn = self.data['xiugai'].get('xiugai_but') self.xiugai_suc = self.data['xiugai'].get('xiu_suc') self.xiugai_error = self.data['xiugai'].get('xiu_err') self.driver.get(self.xiugai_url)
def __init__(self, driver): self.driver = driver self.logs = log.log_message() self.file1 = open(path + "\\data\\page_data.yaml", "r", encoding="utf-8") self.data = yaml.load(self.file1) self.file1.close() self.rest_url = self.data['reset_pwd'].get('url') self.rest_eamil = self.data['reset_pwd'].get('email') self.reset_yan = self.data['reset_pwd'].get('yanzheng') self.reset_mima = self.data['reset_pwd'].get('mima') self.reset_mimaque = self.data['reset_pwd'].get('chongzhimima') self.reset_btn = self.data['reset_pwd'].get('reset_btn') self.reset_error = self.data['reset_pwd'].get('reset_error') self.reset_suc = self.data['reset_pwd'].get('reset_suc') self.driver.get(self.rest_url)
def __init__(self, driver): self.deriver = driver title = '注册模块' self.logs = log.log_message() self.file1 = open(path + "\\data\\page_data.yaml", "r", encoding="utf-8") self.data = yaml.load(self.file1) self.file1.close() self.zhu_url = self.data['zhuce'].get('url') self.zhu = self.data['zhuce'].get('zhuc') self.zhu_user = self.data['zhuce'].get('username') self.zhu_pwd = self.data['zhuce'].get('password') self.zhu_qpwd = self.data['zhuce'].get('querenpass') self.zhu_shouji = self.data['zhuce'].get('shouji') self.zhu_email = self.data['zhuce'].get('youxiang') self.zhu_butn = self.data['zhuce'].get('tijiao_btn') self.zhu_suc = self.data['zhuce'].get('zhuce_suc') self.zhu_err = self.data['zhuce'].get('zhuce_err') self.deriver.get(self.zhu_url)
def setUp(self): self.logs = log.log_message() self.derve=webdriver.Chrome() self.zhuce_fun=Zhuce_tes(self.derve)
def setUp(self): self.logs = log.log_message() self.derve = webdriver.Chrome() self.zhaohui_fun = Zaohui_tes(self.derve)
def setUp(self): self.logs = log.log_message() self.derve=webdriver.Chrome() self.xiugai_fun=Xiugai_tes(self.derve)
def setUp(self): self.logs = log.log_message() self.derve = webdriver.Chrome() self.login_fun = Login_tes(self.derve)