Example #1
0
 def test_009_clients_status(self):
     u"""客户端状态窗(实时更新)(testlink_ID:1150)"""
     log.debug("009")
     #修改默认网络组的ssid和密码
     tmp = OVBusiness(self.driver)
     #使用无线连接该AP
     tmp.connect_DHCP_WPA_AP(data_wireless['all_ssid'],\
             data_wireless["short_wpa"],data_basic['wlan_pc'])
     #等待2分钟
     time.sleep(120)
     #切换到overview菜单
     tmp.OV_menu()
     result = tmp.get_clientstotal()
     assert result == "1","check clients status,test fail!"
     print "check clients status,test pass!"
Example #2
0
 def test_011_2g4_client_num(self):
     u"""终端设备在2.4G上, 检查用户数量统计是否正确(testlink_ID:1153_1)"""
     log.debug("011")
     tmp = OVBusiness(self.driver)
     #使用无线连接该AP
     tmp.connect_DHCP_WPA_AP(data_wireless['all_ssid'],\
                 data_wireless["short_wpa"],data_basic['wlan_pc'])
     #等待2分钟
     time.sleep(120)
     #获取2.4G客户端数
     result = tmp.get_2g4_client()
     #释放无线网卡的ip
     tmp.dhcp_release_wlan(data_basic['wlan_pc'])
     #AP切换到5G
     Lg = LoginBusiness(self.driver)
     Lg.refresh_login_ap()
     tmp1 = SSIDBusiness(self.driver)
     tmp1.change_AP_Freq("5GHz")
     assert result == "1","check 2.4G client number,test fail!"
     print "check 2.4G client number,test pass!"
Example #3
0
 def test_012_5g_client_num(self):
     u"""终端设备在5G上, 检查用户数量统计是否正确(testlink_ID:1153_2)"""
     log.debug("012")
     tmp = OVBusiness(self.driver)
     #使用无线连接该AP
     tmp.connect_DHCP_WPA_AP(data_wireless['all_ssid'],\
                 data_wireless["short_wpa"],data_basic['wlan_pc'])
     time.sleep(120)
     # 获取5G客户端数
     result = tmp.get_5g_client()
     tmp.dhcp_release_wlan(data_basic['wlan_pc'])
     #释放无线网卡的ip
     tmp.disconnect_ap()
     #AP切换到双频
     #切换Dual-Band频段
     Lg = LoginBusiness(self.driver)
     Lg.refresh_login_ap()
     tmp1 = SSIDBusiness(self.driver)
     tmp1.change_AP_Freq("Dual-Band")
     #7000上新建一个网络组,vid设为2,开启dhcp server
     tmp2 = NGBusiness(self.driver)
     tmp2.mixed_7000_new_NG()
     assert result == "1","check 5G client number,test fail!"
     print "check 5G client number,test pass!"