Example #1
0
def updatePassword(self,pwd1,pwd2):
         driver = self.driver
         admin_control.set_pwd(self,pwd1,pwd2)
         admin_control.submit(self)
         login_control.logout(self)
         login_control.set_user(self,'root',pwd1)
         login_control.submit(self)
         title = driver.title
         return u'总览' in title
Example #2
0
 def test_managePurview_0039(self):
     u'''修改密码为空--100msh0039 '''
     admin_control.set_pwd(self,'','')
     admin_control.submit(self)
     login_control.logout(self)
     login_control.set_user(self,'root','bm100@rut!%v2')
     login_control.submit(self)
     title = self.driver.title
     assert u'总览' in title,u'页面上修改密码为空后,使用原来的密码登陆不进去'
     print u'修改密码为空--验证成功'