Exemple #1
0
 def _initial(self):
     self.case_id = self.__class__.__name__
     lg = Login()
     try:
         self.driver = lg.login()
     except Exception as e:
         if lg.driver:
             lg.driver.quit()
         assert 0, "{} 登录失败! 原因: {}".format(self.case_id, e.__str__())
Exemple #2
0
 def test_loginsuccess(self):
     self.logging.info("测试登录成功")
     login = Login(self.driver, self.url)
     login.login("test13", "123456")