Beispiel #1
0
 def test_restore(self):
     restore_control.menu(self)
     restore_control.set_restore(self)
     alert = restore_control.get_alert(self)
     assert alert,u'恢复出场设置时,没有向客户进行确认'
     info = restore_control.get_alert_info(alert)
     assert info==u'确定要放弃所有更改?',u'确认信息不符合要求'
Beispiel #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恢复默认值'