def test_case7(self):
     """验证正确的账号密码登录"""
     operation.login_isli_fast('caolh', '123456')
     sysman_is_exist = elements.LoginSuccessWindow.user_message.Exists(
         maxSearchSeconds=3)
     self.assertTrue(sysman_is_exist, msg='未找到用户信息窗口,没有登录成功')
     operation.logout()
 def test_case6(self):
     """用户名、密码均为空"""
     operation.login_isli_fast('', '')
     prompt = elements.LoginWindow.account_error_location.Name
     self.assertEqual(prompt, '请输入用户名!', msg='用户名密码错误')
 def test_case4(self):
     """用户名不存在,密码为空"""
     operation.login_isli_fast('caolh', '')
     prompt = elements.LoginWindow.account_error_location.Name
     self.assertEqual(prompt, '请输入密码!', msg='用户名密码错误')
 def test_case3(self):
     """用户名不存在,密码正确"""
     operation.login_isli_fast('asdaszxcasdvzx', '123456')
     prompt = elements.LoginWindow.account_error_location.Name
     self.assertEqual(prompt, '用户名或密码错误!', msg='用户名密码错误')
 def test_case1(self):
     """验证正确用户名,错误密码"""
     operation.login_isli_fast('caolh', '11111')
     prompt = elements.LoginWindow.account_error_location.Name
     self.assertEqual(prompt, '用户名或密码错误!', msg='登录失败,用户名或密码错误了')
예제 #6
0
 def setUp(self):
     operation.PublicMethod.start_process_fast()
     operation.login_isli_fast('caolh', '123456')
     operation.switch_to_sysmanage()