def test_029_check_2h_overview_top_ap_name(self): u"""验证最近两小时监控面板-概览-top ap的mac对应的name正确""" log.debug("029") tmp = OverViewBusiness(self.s) mac = data_ap['7610_mac'].upper() mac1 = data_ap['7600_mac'].upper() mac2 = data_ap['7600lr_mac'].upper() name = tmp.get_overview_top_aps_name("2h", mac) name1 = tmp.get_overview_top_aps_name("2h", mac1) name2 = tmp.get_overview_top_aps_name("2h", mac2) self.assertEqual("autotest_7610", name) self.assertEqual("autotest_7600", name1) self.assertEqual("autotest_7600lr", name2)
def test_030_check_network_2h_overview_top_ap_name(self): u"""验证default network最近两小时监控面板-概览-top ap的mac对应的name正确""" log.debug("030") tmp = OverViewBusiness(self.s) mac = data_ap['7610_mac'].upper() name = tmp.get_overview_top_aps_name("2h", mac, menu=9) self.assertEqual("autotest_7610", name)