Esempio n. 1
0
 def test_015_check_change_ssid_client_count(self):
     u"""将client切换ssid,验证network-概览-client数量"""
     log.debug("015")
     #选择进入group1网络组
     tmp1 = NetworkListBusiness(self.s)
     tmp1.goin_network("group1")
     tmp2 = OverViewBusiness(self.s)
     #AP 上传流量统计的准确性
     tmp3 = APSBusiness(self.s)
     #新增一个network
     tmp = SSIDSBusiness(self.s)
     tmp.add_ssid(data_ap['7600_mac'],
                  data_wireless['grou1_all_ssid'] + "-2",
                  data_wireless['short_wpa'])
     time.sleep(60)
     tmp3.run_AP_download_back(data_wireless['grou1_all_ssid'] + "-2",
                               data_wireless['short_wpa'],
                               data_basic['wlan_pc'], data_basic['lan_pc'])
     time.sleep(360)
     #AP 上传流量统计的准确性
     result = tmp.connect_DHCP_WPA_AP(
         data_wireless['grou1_all_ssid'] + "-2", data_wireless['short_wpa'],
         data_basic['wlan_pc'])
     tmp.dhcp_release_wlan_backup(data_basic['wlan_pc'])
     result1 = tmp2.get_overview_client_count()
     self.assertIn(data_wireless['grou1_all_ssid'] + "-2", result)
     self.assertEqual(result1, 1)
Esempio n. 2
0
 def test_014_get_network_overview_client_count(self):
     u"""检查network-概览--client数量"""
     log.debug("014")
     tmp = OverViewBusiness(self.s)
     tmp1 = NetworkListBusiness(self.s)
     tmp1.goin_network("group1")
     result = tmp.get_overview_client_count()
     self.assertEqual(result, 1)
 def test_006_check_overview_client_count_equal_2g4_and_5g(self):
     u"""验证客户端2.4G+5G=总数"""
     log.debug("006")
     tmp = OverViewBusiness(self.s)
     result = tmp.get_overview_client_count()
     g24_client_count, g5_client_count = tmp.get_overview_client_online_offline_count(
     )
     self.assertEqual(result, (g24_client_count + g5_client_count))
Esempio n. 4
0
 def test_011_get_network_overview_total_client_count(self):
     u"""检查network-概览--client数量"""
     log.debug("011")
     tmp = OverViewBusiness(self.s)
     result = tmp.get_overview_client_count()
     self.assertEqual(result, 1)
 def test_005_check_overview_client_count(self):
     u"""验证监控面板-概览-客户端总数"""
     log.debug("005")
     tmp = OverViewBusiness(self.s)
     result = tmp.get_overview_client_count()
     self.assertEqual(result, 1)