Exemplo n.º 1
0
 def test_046_check_admin_pwd_disappear_again(self):
     u"""修改admin密码后,确认密码是隐藏密钥(testlink_ID:877)"""
     log.debug('046')
     tmp = AccessBusiness(self.driver)
     result = tmp.check_admin_pwd_disappear_again(data_login['all'],\
         data_login['letter_pwd'])
     #测试完后修改为常用密码
     tmp.change_pwd(data_login['letter_pwd'], data_login['all'],
                    data_login['all'])
     tmp.apply()
     assert result == ["password","password","password","password","password"],\
         "test admin password is disappear again,test fail!"
     print "test admin password is disappear again,test pass!"
Exemplo n.º 2
0
 def test_045_check_change_admin_pwd(self):
     u"""修改admin密码后,登录路由后台,验证是否修改成功"""
     log.debug('045')
     tmp = AccessBusiness(self.driver)
     result1= tmp.check_change_admin_pwd(data_login['all'],\
         data_login['digital_pwd'],\
                 data_basic['DUT_ip'],data_basic['sshUser'])
     #测试完后修改为常用密码
     tmp.change_pwd(data_login['digital_pwd'], data_login['all'],
                    data_login['all'])
     tmp.apply()
     assert (data_login['digital_pwd'] in result1) ,\
         "after changing admin pwd,check pwd validity,test fail!"
     print "after changing admin pwd,check pwd validity,test pass!"
Exemplo n.º 3
0
 def test_050_check_new_pwd_login(self):
     u"""使用修改后的密码登录,确认登录成功(testlink_ID:880)"""
     log.debug('050')
     self.driver.refresh()
     self.driver.implicitly_wait(10)
     #使用新密码登录GWN7610的web界面
     tmp = LoginBusiness(self.driver)
     tmp.login(data_basic['superUser'], data_login['digital_pwd'])
     #判断是否登录成功
     result = tmp.login_test()
     #测试完后修改为常用密码
     tmp1 = AccessBusiness(self.driver)
     tmp1.change_pwd(data_login['digital_pwd'], data_login['all'],
                     data_login['all'])
     tmp1.apply()
     assert result, "use new pwd login AP,test fail!"
     print "use new pwd login AP,test pass!"