Пример #1
0
 def test_advpwd(self):
     login_control.set_user(self,adv_usr,adv_pwd)
     login_control.submit(self)
     admin_control.menu(self)
     result = admin_business.updatePassword(self,letter_pwd,letter_pwd)
     assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去'
     print u'高级用户非默认密码登录--验证成功'
Пример #2
0
 def tearDown(self):
     #每次密码都要改回原来的,防止前面的错误导致后面的用例运行错误
     admin_control.menu(self)
     admin_control.set_pwd(self,general_pwd,general_pwd)
     admin_control.submit(self)
     time.sleep(5)
     self.driver.quit()
Пример #3
0
 def setUp(self):
    self.driver = webdriver.Firefox()
    self.driver.implicitly_wait(10)
    self.driver.get(url)
    login_control.set_user(self,user,pwd)
    login_control.submit(self)
    admin_control.menu(self)
Пример #4
0
 def test_20bytepwd(self):
     login_business.default_login(self)
     admin_control.menu(self)
     result = admin_business.updatePassword(self,max_pwd,max_pwd)
     assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去'
     print u'登录密码长度等于最大有效值时--验证成功'
Пример #5
0
 def test_special(self):
     login_business.default_login(self)
     admin_control.menu(self)
     result = admin_business.updatePassword(self,special_pwd,special_pwd)
     assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去'
     print u'登录密码含特殊字符时-验证成功'
Пример #6
0
 def test_letter(self):
     login_business.default_login(self)
     admin_control.menu(self)
     result = admin_business.updatePassword(self,letter_pwd,letter_pwd)
     assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去'
     print u'登录密码为纯字母时-验证成功'
Пример #7
0
 def test_digital(self):
     login_business.default_login(self)
     admin_control.menu(self)
     result = admin_business.updatePassword(self,digit_pwd,digit_pwd)
     assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去'
     print u'登录密码为21字节时-验证成功'
Пример #8
0
 def tearDown(self):
     #每次密码都要改回原来的,防止前面的错误导致后面的用例运行错误
     admin_control.menu(self)
     admin_control.set_pwd(self,'bm100@rut!%v2','bm100@rut!%v2')
     admin_control.submit(self)
     self.driver.quit()