def test_047_check_change_user_pwd(self): u"""修改user密码后,登录路由后台,验证是否修改成功""" log.debug('047') tmp = AccessBusiness(self.driver) result1= tmp.check_change_user_pwd(data_login['all'],\ data_login['digital_pwd'],\ data_basic['DUT_ip'],data_basic['sshUser']) assert (data_login['digital_pwd'] in result1) ,\ "after changing user pwd,check pwd validity,test fail!" print "after changing user pwd,check pwd validity,test pass!"
def test_035_failover_master_can_modify_system_configuration(self): u"""failover ap 切换到master ap模式后,能够修改系统设置的配置(testlink_ID:2385)""" log.debug("035") tmp = APSBusiness(self.driver) #登录failover ap的web界面 tmp.login_failover_ap(data_basic['slave_web2'], data_basic['superUser'], data_login['all']) #修改user密码后,登录路由后台,验证是否修改成功 tmp1 = AccessBusiness(self.driver) result = tmp1.check_change_user_pwd(data_login['all'], data_login['digital_pwd'], data_basic['slave_ip2'], data_basic['sshUser']) #该ap恢复出厂配置 tmp1 = UpgradeBusiness(self.driver) tmp1.web_factory_reset_backup(data_basic['slave_ip2']) #开启master ap的controller tmp.open_master_controller(data_basic['DUT_ip'], data_basic['sshUser'], data_login['all']) #7000新建一个网络组,vid设为2,开启dhcp server tmp2 = NGBusiness(self.driver) tmp2.mixed_7000_new_NG() self.assertIn(data_login['digital_pwd'], result), "after failover change to master can modify systemsetting configuration, test fail!" print "after failover change to master can modify systemsetting configuration, test pass!"