def test_006_chart_ssid_bandwidth_2h(self): u"""检查2 hour的bandwidth usage统计数据是否正确(testlinkID:1401)""" log.debug("006") #修改ssid为5G tmp1 = SSIDSBusiness(self.s) #修改为5G encry_dict = {'ssid_encryption': "3", 'ssid_wpa_encryption': "0", 'ssid_wpa_key_mode': "0", 'ssid_wpa_key': data_wireless['short_wpa']} data_dict = {'ssid_ssid_band': "5"} tmp1.edit_ssid(data_ap['7610_mac'], data_wireless['all_ssid'], encry_dict, data_dict) time.sleep(120) #AP 下载流量-10M tmp2 = APSBusiness(self.s) tmp2.run_AP_download(data_wireless['all_ssid'], data_wireless['short_wpa'], data_basic['wlan_pc'], data_basic['lan_pc']) #等待6分钟 time.sleep(360) tmp = Clients_Business(self.s) ssid_bw = tmp.check_chart_ssid_bandwidth("2h") self.assertTrue(ssid_bw)
def test_007_chart_ssid_bandwidth_1d(self): u"""检查1 day的bandwidth usage统计数据是否正确(testlinkID:1402)""" log.debug("007") tmp = Clients_Business(self.s) ssid_bw = tmp.check_chart_ssid_bandwidth("1d") self.assertTrue(ssid_bw)