示例#1
0
 def setUp(self):
     logger.info('setUp start')
     login.loginWeb(self)  # admin账号登录
     self.driver.implicitly_wait(10)
     remoteManage = ManagementPolicyPage(self.driver, self.url)
     # 进入系统配置-网管策略-远程管理
     remoteManage.click_sysConfig()
     time.sleep(0.5)
     remoteManage.click_ManagementPolicy()
     time.sleep(1)
     remoteManage.click_RemoteManagement()
     time.sleep(1)
示例#2
0
 def test_006_RemoteManagement(self):
     u'''远程管理'''
     management = ManagementPolicyPage(self.driver, self.url)
     management.click_ManagementPolicy()
     time.sleep(1)
     management.click_RemoteManagement()
     time.sleep(0.5)
     switch = str(
         management.getAttribute_byXpath(management.httpCs, 'checked'))
     port = str(management.getAttribute_byName(management.OutPort1,
                                               'value'))
     self.assertEqual(switch, 'true', msg='远程管理默认关闭 有误')
     self.assertEqual(port, '8081', msg='远程管理端口 默认不为8081')
     self.driver.quit()
     logger.info('test_006_RemoteManagement passed')