Esempio n. 1
0
 def test_003_Platform_Administrator_client_connect_ssid(self):
     u"""平台管理员-无线网卡能连接"""
     log.debug("003")
     tmp = SSIDSBusiness(self.s)
     #无线网卡连接
     result = tmp.connect_WPA_AP(data_wireless['all_ssid'],
             data_wireless['short_wpa'], data_basic["wlan_pc"])
     self.assertIn(data_wireless['all_ssid'], result)
Esempio n. 2
0
 def test_009_Network_Administrator_client_connect_ssid(self):
     u"""网络管理员-无线网卡能连接"""
     log.debug("009")
     tmp = SSIDSBusiness(self.s)
     #无线网卡连接
     result = tmp.connect_WPA_AP(data_wireless['all_ssid']+"NW",
             data_wireless['short_wpa'], data_basic["wlan_pc"])
     tmp.dhcp_release_wlan(data_basic['wlan_pc'])
     tmp.disconnect_ap()
     self.assertIn(data_wireless['all_ssid']+"NW", result)