Exemplo n.º 1
0
 def test_login(self):
     ''' baidu search key : pyse '''
     login_mothod(self, "admin123", "12345678")
     self.assertTitle("慕课网在线")
     print("登录成功!")
     self.move_to_element("class=>personal")
     self.sleep(1)
     self.click("link_text=>退出")
Exemplo n.º 2
0
 def login(self):
     ''' baidu search key : pyse '''
     login_mothod(self, "admin123", "12345678")
     self.assertTitle("慕课网在线")
     print("登录成功!")
Exemplo n.º 3
0
 def test_userAndpwd_check1(self):
     '''账号、密码为空'''
     login_mothod(self, "", "")
     print("账号、密码为空: " + self.get_text("id=>jsLoginTips"))
Exemplo n.º 4
0
 def test_userAndpwd_check5(self):
     '''账号或密码输入过长'''
     login_mothod(self, "admin123jiifjijfi23jiji32ji2j3r23",
                  "12345678920348230948230480239480234")
     print("账号或密码输入过长: " + self.get_text("id=>jsLoginTips"))
Exemplo n.º 5
0
 def test_userAndpwd_check4(self):
     '''账号或密码错误'''
     login_mothod(self, "admin12387", "12345678786")
     print("账号或密码错误: " + self.get_text("id=>jsLoginTips"))
Exemplo n.º 6
0
 def test_userAndpwd_check3(self):
     '''密码不为空'''
     login_mothod(self, "", "12345678")
     print("密码不为空: " + self.get_text("id=>jsLoginTips"))