Esempio n. 1
0
 def test_page_login_1(self):
     login = PageLogin(self.driver)
     login_user1 = login_data().get_login_data()
     num1 = login_user1[0]["编号"]
     username1 = login_user1[0]["用户名"]
     password1 = login_user1[0]["密码"]
     # print(type(password1))
     login.LoginOn(num1, username1, int(password1))
     time.sleep(2)
     self.assertEqual(login.Title(), "管理中心", msg="测试通过")
     login_result = login_data().write_result(1, "pass")
Esempio n. 2
0
    def test_page_login_1(self):

        i = 1
        while i > 6:

            for j in range(0, 6):
                login = PageLogin(self.driver)
                login_user1 = login_data().get_login_data()
                num1 = login_user1[j]["编号"]
                username1 = login_user1[j]["用户名"]
                password1 = login_user1[j]["密码"]
                # print(type(password1))
                login.LoginOn(num1, username1, int(password1))
                time.sleep(2)
                self.assertEqual(login.Title(), "管理中心", msg="测试通过")

            i += 1
            print("testend......")