Пример #1
0
 def test_restore_ssh(self):
     general_control.wifidog_menu(self)
     gatewayId1 = general_control.get_gatewayId(self)
     general_control.set_gatewayId(self,'11111111111')
     ssh.ssh_cmd(ip,user,pwd,'reset')
     self.driver.implicitly_wait(50)
     self.driver.get(url)
     login_control.set_user(self,user,pwd)
     login_control.submit(self)
     general_control.wifidog_menu(self)
     gatewayId2 = general_control.get_gatewayId(self)
     assert gatewayId1==gatewayId2,u'后台恢复出场设置后网关ID恢复默认值'
Пример #2
0
 def test_testore_func(self):
     general_control.wifidog_menu(self)
     gatewayId1 = general_control.get_gatewayId(self)
     general_control.set_gatewayId(self,'11111111111')
     general_control.apply(self)
     restore_control.menu(self)
     restore_control.set_restore(self)
     alert = restore_control.get_alert(self)
     alert.accept()
     #time.sleep(60)
     self.driver.implicitly_wait(50)
     self.driver.get(url)
     login_control.set_user(self,user,pwd)
     login_control.submit(self)
     general_control.wifidog_menu(self)
     gatewayId2 = general_control.get_gatewayId(self)
     assert gatewayId1==gatewayId2,u'恢复出场设置后网关ID恢复默认值'