Ejemplo 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)
Ejemplo n.º 2
0
 def test_013_Guest_Editor_edit_ssid(self):
     u"""访客管理员-不能修改ssid"""
     log.debug("013")
     #修改ssid
     tmp = SSIDSBusiness(self.s)
     #使用测试用户登录
     tmp.webLogin(data_basic['Cloud_test_user'], data_basic['Cloud_test_pwd'])
     result = tmp.add_ssid(data_ap['7610_mac'], data_wireless['all_ssid']+"GE",\
                           data_wireless['short_wpa'])
     self.assertFalse(result)
Ejemplo n.º 3
0
 def test_016_client_total_change_ssid(self):
     u"""切换ssid后的client流量(testlinkID:1414)"""
     log.debug("016")
     #新建ssid2并加入7600ap中
     tmp2 = SSIDSBusiness(self.s)
     tmp2.add_ssid(data_ap['7600_mac'], data_wireless['all_ssid']+"-2",
                  data_wireless['short_wpa'])
     time.sleep(120)
     #无线网卡连接ssid2
     tmp = Clients_Business(self.s)
     tmp.connect_WPA_AP(data_wireless['all_ssid']+"-2",
             data_wireless['short_wpa'], data_basic["wlan_pc"])
     time.sleep(120)
     # tmp.dhcp_release_wlan(data_basic["wlan_pc"])
     #客户端-状态,获取第一个客户端的信息
     # #使用用户名密码,带着cookie登录cloud,并返回响应数据
     # tmp.webLogin(data_basic['cloud_user'], data_basic['cloud_pwd'])
     client_info = tmp.get_first_client_info()
     client_total = client_info['totalBytes']
     #总流量小于1M
     self.assertLessEqual(client_total, (1*1024*1024))