def test_login_zxw2017(self): logging.info('======test_login_zxw2017======') l = LoginView(self.driver) data = l.get_csv_data(self.csv_file, 1) l.login_action(data[0], data[1]) self.assertTrue(l.check_loginStatus())
def test_login_error(self): logging.info('======test_login_error======') l = LoginView(self.driver) data = l.get_csv_data(self.csv_file, 3) l.login_action(data[0], data[1]) self.assertTrue(l.check_loginStatus(), msg='login fail!')
def test_correct_user_and_pass(self): logging.info('======test_correct_user_and_pass======') l=LoginView(self.driver) data=l.get_csv_data(self.csv_file, 1) l.login_action(data[0],data[1]) self.assertTrue(l.check_loginStatus())
def test_wrong_user_wrong_pass(self): logging.info('======test_wrong_user_wrong_pass======') l=LoginView(self.driver) data=l.get_csv_data(self.csv_file, 3) l.login_action(data[0],data[1]) self.assertFalse(l.check_loginStatus(),msg='login fail!')
def test_login_normal(self): logging.info('====test_login_normal====') lv=LoginView(self.driver) data=lv.get_csv_data(self.csv_file,1) lv.login_action(data[0],data[1]) bool=lv.check_loginStatus() self.assertTrue(bool)
def test_login_137(self): logging.info('======test_login_137=====') l = LoginView(self.driver) data = get_csv_data(1, csv_file=self.csv_file) l.login_action(data[0], data[1], self.l_devices['udid']) self.assertTrue(l.check_loginStatus())
def test_login_error(self): logging.info('=======test login error======') l = LoginView(self.driver) data = l.get_csv_data(self.csv_file, 3) l.login_action(data[0], data[1]) self.assertTrue(l.check_loginStatus()) # if __name__=='__main__': # unittest.main()
def test_login_test3(self): l = LoginView(self.driver) data = l.get_csv_data(self.csv_file, 3) l.login_action(data[0], data[1]) self.assertTrue(l.check_loginStatus())
def test_login(self, username, password): l = LoginView(self.driver) l.login_action(username=username, password=password) self.assertTrue(l.check_loginStatus())