def test_192_hostname(self): u"""修改为空的地址有效性""" hostname = None default_hostname = "wifi.100msh.com" wifidog_business.edit_hostname(self,hostname) url = network_control.rand_redirect_get_url(self) wifidog_business.redirest_network(self) assert default_hostname in url,u"修改为空地址有效性认证失败,主机名不是默认的"%hostname
def test_190_hostname(self): u"""修改为其它正确的地址有效性""" hostname = "test102.100msh.com" wifidog_business.edit_hostname(self,hostname) url = network_control.rand_redirect_get_url(self) data = wifidog_business.redirest_network(self) assert hostname in url,u"修改为其它正确的地址:%s,有效性认证失败"%hostname
def test_182_datewayid(self): u"""默认网关id上报功能验证""" default_gwid = "44060430603381" gwid = general_control.get_gatewayId(self) general_control.apply(self) time.sleep(40) data = wifidog_business.redirest_network(self) assert (default_gwid in data)and(default_gwid in gwid),u"默认网关ID上报功能验证失败"
def test_184_datewayid(self): u"""网关ID不存在或被删除""" gwid = "as12121ds32" wifidog_business.edit_gatewayid(self,gwid) data = wifidog_business.redirest_network(self) assert gwid in data,u"修改后不存在的网关ID上报功能验证失败"
def test_183_datewayid(self): u"""修改后网关ID上报功能验证""" gwid = "100msh2323" wifidog_business.edit_gatewayid(self,gwid) data = wifidog_business.redirest_network(self) assert gwid in data,u"修改后网关ID:%s上报功能验证失败"%gwid