예제 #1
0
 def test_042_failover_master_check_client_flow(self):
     u"""failover ap 切换到master ap模式后,确认ap 的流量有效(testlink_ID:2396)"""
     log.debug("042")
     tmp = APSBusiness(self.driver)
     #登录failover ap的web界面
     tmp.login_failover_ap(data_basic['slave_web2'],
         data_basic['superUser'], data_login['all'])
     #client下载流量统计的准确性
     tmp1 = OVBusiness(self.driver)
     result1, result2 = tmp1.check_client_download()
     assert ("MB" in result1) or ("GB" in result1)
     self.assertLess(0, result2), "after failover change to master check client traffic,test fail!"
     print "after failover change to master check client traffic,test pass!"
예제 #2
0
    def test_032_client_download(self):
        u"""client 下载流量统计的准确性(testlink_ID:1225)"""
        log.debug("032")
        #client下载流量统计的准确性
        tmp = OVBusiness(self.driver)
        result1,result2 = tmp.check_client_download()

        #测试完毕,禁用无线网卡,使pc能够上网
        tmp.dhcp_release_wlan(data_basic['wlan_pc'])
        tmp.disconnect_ap()
        tmp.wlan_disable(data_basic['wlan_pc'])
        #rsyslog服务器完成工作
        tmp.finish_rsyslog("OverView")

        assert ("MB" in result1) or ("GB" in result1),"test client upload fail!"
        print "test client upload pass!"