def test_ath_6439_create_new_group_with_both_switch_and_iap(self):
     '''
     Pre condition : Assume that two device : 1 IAP and switch is already connected to server .
     '''
     inner_left_panel = self.TopPanel.click_slider_icon()
     create_group_page = inner_left_panel.add_group()
     create_group_page.create_group_with_user_groupname_password('test','test123')
     manage_group = inner_left_panel.manage_group()
     manage_group.move_device_to_group('test','Switch_1')
     time.sleep(15)
     manage_group = inner_left_panel.manage_group()
     manage_group.move_device_to_group('test','IAP_1')
     time.sleep(400)
     DeviceLibrary.reconnect('IAP_1')
     inner_left_panel.assert_device_in_group('IAP_1','test')
     inner_left_panel.assert_device_in_group('Switch_1','test')
     
     manage_group = inner_left_panel.manage_group()
     manage_group.move_device_to_group('default','Switch_1')
     
     manage_group = inner_left_panel.manage_group()
     manage_group.move_device_to_group('default','IAP_1')
     time.sleep(400)
     DeviceLibrary.reconnect('IAP_1')
     
     manage_group = inner_left_panel.manage_group()
     manage_group.delete_group('test')
    def test_ath_6439_create_new_group_with_both_switch_and_iap(self):
        '''
        Pre condition : Assume that two device : 1 IAP and switch is already connected to server .
        '''
        inner_left_panel = self.TopPanel.click_slider_icon()
        create_group_page = inner_left_panel.add_group()
        create_group_page.create_group_with_user_groupname_password(
            'test', 'test123')
        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('test', 'Switch_1')
        time.sleep(15)
        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('test', 'IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')
        inner_left_panel.assert_device_in_group('IAP_1', 'test')
        inner_left_panel.assert_device_in_group('Switch_1', 'test')

        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('default', 'Switch_1')

        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('default', 'IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')

        manage_group = inner_left_panel.manage_group()
        manage_group.delete_group('test')
	def test_ath_11302_check_non_default_values_cpu_util(self):
		myDevice = Device.getDeviceObject("IAP_1")
		vlan_id = myDevice.get("vlan")
		conf = self.config.config_vars
		system_page = self.LeftPanel.go_to_system_page()
		system_page.set_new_vc_name("IAP_1",conf.vc_name)
		system_page.set_new_vc_ip("IAP_1",conf.ip_add)
		system_page.set_non_default_values_cpu_util("IAP_1")
		system_page._save_settings()
		time.sleep(10)
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc name",conf.vc_name)
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc virtual",conf.ip_add)
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc time","Pacific-Time -07")
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc ntp",conf.ntp_server)
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc band","5ghz")
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc vlan",vlan_id)
		system_page.assert_system_page_vc_field_values("IAP_1","sh ru | inc cpu","dynamic-cpu-mgmt enable")
		
		time.sleep(10)
		DeviceLibrary.factoryReset("IAP_1")
		time.sleep(10)
		DeviceLibrary.getPrompt("IAP_1")
		DeviceLibrary.reconnect("IAP_1")
		time.sleep(90)
		inner_left_panel = self.TopPanel.click_slider_icon()
		inner_left_panel.click_expand_default_group_icon()
		inner_left_panel.select_vc("IAP_1")
		inner_left_panel.select_country_code(self.config.config_vars.country_india)
		# system_page.setting_original_vc_name("IAP_1",conf.vc_name) // After factory_reset, automatically take default name on system page
		# system_page.setting_original_vc_ip("IAP_1",conf.ip_add) // After factory_reset, automatically take default ip on system page
		system_page.set_cpu_util_default_values()
Beispiel #4
0
    def test_ath_10984_attach_iap_with_deny_inter_user_bridging_and_deny_local_routing_options(
            self):
        conf = self.config.config_vars
        DeviceLibrary.disconnect_device_from_server('IAP_2')
        DeviceLibrary.factoryReset('IAP_2')
        time.sleep(350)
        DeviceLibrary.configure_deny_inter_user_bridging_and_deny_local_routing(
            'IAP_2')
        DeviceLibrary.connect_device_to_server('IAP_2')
        time.sleep(400)
        self.browser.refresh()
        inner_left_panel = self.TopPanel.click_slider_icon()
        inner_left_panel.select_unprovision_iap()
        manage_group_page = inner_left_panel.click_configuration_page_existing_group_button(
        )
        manage_group_page.move_unprovisioned_device('IAP_2',
                                                    group_name='group1')
        time.sleep(20)
        DeviceLibrary.reconnect('IAP_2')
        time.sleep(400)
        self.assert_running_config_include_deny('IAP_2',
                                                'deny-inter-user-bridging')
        time.sleep(20)
        self.assert_running_config_include_deny('IAP_2', 'deny-local-routing')
        time.sleep(20)
        DeviceLibrary.disconnect_device_from_server('IAP_2')
        DeviceLibrary.factoryReset('IAP_2')
        time.sleep(350)
        DeviceLibrary.configure_deny_inter_user_bridging_and_deny_local_routing(
            'IAP_2')
        DeviceLibrary.connect_device_to_server('IAP_2')
        time.sleep(400)
        self.browser.refresh()
        inner_left_panel = self.TopPanel.click_slider_icon()
        inner_left_panel.select_unprovision_iap()
        create_group_page = inner_left_panel.click_configuration_page_new_group_button(
        )
        create_group_page.move_unprovisional_device_to_new_group('group2')
        time.sleep(20)
        DeviceLibrary.reconnect('IAP_2')
        time.sleep(400)
        self.assert_running_config_include_deny('IAP_2',
                                                'deny-inter-user-bridging',
                                                exists=True)
        time.sleep(20)
        self.assert_running_config_include_deny('IAP_2',
                                                'deny-local-routing',
                                                exists=True)

        self.browser.refresh()
        inner_left_panel = self.TopPanel.click_slider_icon()
        manage_group_page = inner_left_panel.manage_group()
        manage_group_page.move_vc_to_group('group2', 'IAP_1')
        time.sleep(20)
 def test_ath_10984_attach_iap_with_deny_inter_user_bridging_and_deny_local_routing_options(self):
     conf = self.config.config_vars
     DeviceLibrary.disconnect_device_from_server('IAP_2')
     DeviceLibrary.factoryReset('IAP_2')
     time.sleep(350)
     DeviceLibrary.configure_deny_inter_user_bridging_and_deny_local_routing('IAP_2')
     DeviceLibrary.connect_device_to_server('IAP_2')
     time.sleep(400)
     self.browser.refresh()
     inner_left_panel = self.TopPanel.click_slider_icon()
     inner_left_panel.select_unprovision_iap()
     manage_group_page = inner_left_panel.click_configuration_page_existing_group_button()
     manage_group_page.move_unprovisioned_device('IAP_2',group_name='group1')
     time.sleep(20)
     DeviceLibrary.reconnect('IAP_2')
     time.sleep(400)
     self.assert_running_config_include_deny('IAP_2','deny-inter-user-bridging')
     time.sleep(20)
     self.assert_running_config_include_deny('IAP_2','deny-local-routing')
     time.sleep(20)
     DeviceLibrary.disconnect_device_from_server('IAP_2')
     DeviceLibrary.factoryReset('IAP_2')
     time.sleep(350)
     DeviceLibrary.configure_deny_inter_user_bridging_and_deny_local_routing('IAP_2')
     DeviceLibrary.connect_device_to_server('IAP_2')
     time.sleep(400)
     self.browser.refresh()
     inner_left_panel = self.TopPanel.click_slider_icon()
     inner_left_panel.select_unprovision_iap()
     create_group_page = inner_left_panel.click_configuration_page_new_group_button()
     create_group_page.move_unprovisional_device_to_new_group('group2')
     time.sleep(20)
     DeviceLibrary.reconnect('IAP_2')
     time.sleep(400)
     self.assert_running_config_include_deny('IAP_2','deny-inter-user-bridging',exists=True)
     time.sleep(20)
     self.assert_running_config_include_deny('IAP_2','deny-local-routing',exists=True)
     
     self.browser.refresh()
     inner_left_panel = self.TopPanel.click_slider_icon()
     manage_group_page = inner_left_panel.manage_group()
     manage_group_page.move_vc_to_group('group2','IAP_1')
     time.sleep(20)
     # DeviceLibrary.connect_device_to_server('IAP_2')
     # time.sleep(700)
     # self.assert_running_config_include_deny('IAP_2','deny-inter-user-bridging',exists=True)
     # self.assert_running_config_include_deny('IAP_2','deny-local-routing',exists=True)
    def test_ath_6521_verify_multiple_iap_switch_move_from_one_group_to_another(
            self):
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # device_management_page.unassign_switch_license("Switch_1")
        # monitoring_switch_page = self.LeftPanel.go_to_monitoring_switches_page()
        # monitoring_switch_page.delete_switch_device_based_on_ip("Switch_1")
        # DeviceLibrary.factoryReset("Switch_1")
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # device_management_page.add_switch_and_assign_license("Switch_1")
        # DeviceLibrary.connect_device_to_server("Switch_1")

        # device_management_page.unassign_switch_license("Switch_2")
        # monitoring_switch_page = self.LeftPanel.go_to_monitoring_switches_page()
        # monitoring_switch_page.delete_switch_device_based_on_ip("Switch_2")
        # DeviceLibrary.factoryReset("Switch_2")
        # import time
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # time.sleep(50)
        # device_management_page.add_switch_and_assign_license("Switch_2")
        # time.sleep(20)
        # DeviceLibrary.connect_device_to_server("Switch_2")

        # import time
        # time.sleep(120)
        # self.browser.refresh()

        inner_left_panel = self.TopPanel.click_slider_icon()
        # manage_group_page = inner_left_panel.manage_group()
        # manage_group_page.group_sidebar_close_icon.click()
        # manage_group_page.move_unprovisioned_device('Switch_1','New Group','group1')
        # manage_group_page.move_unprovisioned_device('Switch_2','New Group','group2')

        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('group2', 'IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')

        inner_left_panel.manage_group()
        manage_group.move_device_to_group('group1', 'Switch_2')
        inner_left_panel.manage_group()
        manage_group.move_device_to_group('group1', 'IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')
    def test_ath_6521_verify_multiple_iap_switch_move_from_one_group_to_another(self):
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # device_management_page.unassign_switch_license("Switch_1")
        # monitoring_switch_page = self.LeftPanel.go_to_monitoring_switches_page()
        # monitoring_switch_page.delete_switch_device_based_on_ip("Switch_1")
        # DeviceLibrary.factoryReset("Switch_1")
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # device_management_page.add_switch_and_assign_license("Switch_1")
        # DeviceLibrary.connect_device_to_server("Switch_1")

        # device_management_page.unassign_switch_license("Switch_2")
        # monitoring_switch_page = self.LeftPanel.go_to_monitoring_switches_page()
        # monitoring_switch_page.delete_switch_device_based_on_ip("Switch_2")
        # DeviceLibrary.factoryReset("Switch_2")
        # import time
        # firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page()
        # device_management_page = self.LeftPanel.go_to_device_management()
        # time.sleep(50)
        # device_management_page.add_switch_and_assign_license("Switch_2")
        # time.sleep(20)
        # DeviceLibrary.connect_device_to_server("Switch_2")
        
        # import time
        # time.sleep(120)
        # self.browser.refresh()
        
        inner_left_panel = self.TopPanel.click_slider_icon()
        # manage_group_page = inner_left_panel.manage_group()
        # manage_group_page.group_sidebar_close_icon.click()
        # manage_group_page.move_unprovisioned_device('Switch_1','New Group','group1')
        # manage_group_page.move_unprovisioned_device('Switch_2','New Group','group2')        

        manage_group = inner_left_panel.manage_group()
        manage_group.move_device_to_group('group2','IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')
        
        inner_left_panel.manage_group()
        manage_group.move_device_to_group('group1','Switch_2')
        inner_left_panel.manage_group()
        manage_group.move_device_to_group('group1','IAP_1')
        time.sleep(400)
        DeviceLibrary.reconnect('IAP_1')
    def test_ath_11046_check_non_default_values_vc_name(self):
        myDevice = Device.getDeviceObject("IAP_1")
        vlan_id = myDevice.get("vlan")
        conf = self.config.config_vars
        system_page = self.LeftPanel.go_to_system_page()
        system_page.set_new_vc_name("IAP_1", conf.vc_name)
        system_page.set_new_vc_ip("IAP_1", conf.ip_add)
        system_page.check_non_default_values_vc_name_2()
        system_page._save_settings()
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc name",
                                                       conf.vc_name)
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc virtual",
                                                       conf.ip_add)
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc time",
                                                       "Pacific-Time -07")
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc ntp",
                                                       conf.ntp_server)
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc band",
                                                       "2.4ghz")
        system_page.assert_system_page_vc_field_values("IAP_1",
                                                       "sh ru | inc vlan",
                                                       vlan_id)
        system_page.assert_system_page_vc_field_values(
            "IAP_1", "sh ru | inc cpu", "dynamic-cpu-mgmt disable")

        time.sleep(10)
        DeviceLibrary.factoryReset("IAP_1")
        time.sleep(10)
        DeviceLibrary.getPrompt("IAP_1")
        DeviceLibrary.reconnect("IAP_1")
        time.sleep(90)
        inner_left_panel = self.TopPanel.click_slider_icon()
        inner_left_panel.click_expand_default_group_icon()
        inner_left_panel.select_vc("IAP_1")
        inner_left_panel.select_country_code(
            self.config.config_vars.country_india)
        # system_page.setting_original_vc_name("IAP_1",conf.vc_name)
        # system_page.setting_original_vc_ip("IAP_1",conf.ip_add)
        system_page.setting_default_values_2()
        system_page._save_settings()
Beispiel #9
0
    def test_ath_1398_Group_Report(self):
        """
        ################################################################################################################
        1   Select a group from group monitoring and create report.
            Move a VC from the group to different group, and click on the report generated before.
            Remove a client associated to an AP of the group.
            Add/remove SSID
        2   Select a group and go to report page.
        ################################################################################################################
        """
        conf = self.config.config_vars
        log.info(
            "STEP 1.1 : Select a group from group monitoring and create report."
        )
        overview_page = self.LeftPanel.goto_monitoringPage()
        overview_page.go_to_all_groups_page()
        overview_page.go_to_default_group()
        self.LeftPanel.goto_configuration_page()
        self.LeftPanel.go_to_network_page()
        self.NetworkPage.delete_all_networks()
        ssid_wpa2 = self.config.config_vars.Network_name
        basic_info = self.NetworkPage.create_new_network()
        virtual_lan = basic_info.employee_network_info(ssid_wpa2)
        security = virtual_lan.use_vlan_defaults()
        access = security.assert_roaming_defaults(True, False)
        access.finish_network_setup()
        self.NetworkPage.assert_new_network(ssid_wpa2)
        DeviceLibrary.connect_client_to_ap("Client_1", "test1")
        reports_network_page = self.LeftPanel.go_to_reports_network()
        reports_network_page.delete_all_reports()
        report = reports_network_page.create_report(conf.time_span_last_day,
                                                    'now',
                                                    conf.repeat_one_time,
                                                    'disabled')
        reports_network_page.verify_report_generation(report, "Completed")
        reports_network_page.go_to_first_report()
        reports_network_page.assert_ap_name_present_in_ap_table("IAP_1")

        log.info(
            "STEP 1.2 : Move a VC from the group to different group, and click on the report generated before."
        )
        overview_page.create_new_group("GroupA", "test123")
        inner_left_panel = self.TopPanel.get_inner_left_panel()
        manage_group_page = inner_left_panel.manage_group()
        manage_group_page.move_all_ap_to_group("GroupA")
        time.sleep(200)
        DeviceLibrary.reconnect("IAP_1")
        reports_network_page = self.LeftPanel.go_to_reports_network()
        reports_network_page.go_to_first_report()
        reports_network_page.assert_ap_name_present_in_ap_table("IAP_1")

        log.info(
            "STEP 1.3 : Remove a client associated to an AP of the group.")
        DeviceLibrary.disconnect_client_from_ap("Client_1")
        reports_network_page = self.LeftPanel.go_to_reports_network()
        reports_network_page.go_to_first_report()
        reports_network_page.assert_ap_name_present_in_ap_table("IAP_1")

        log.info("STEP 1.4 : Add/remove SSID")
        overview_page.go_to_default_group()
        self.LeftPanel.go_to_network_page()
        ssid_wep = "test3"
        basic_info = self.NetworkPage.create_new_network()
        virtual_lan = basic_info.employee_network_info(ssid_wep)
        security = virtual_lan.use_vlan_defaults()
        security.set_security_level_and_key_management("Personal")
        access = security.use_security_default()
        access.finish_network_setup()
        self.NetworkPage.assert_new_network(ssid_wep)
        reports_network_page = self.LeftPanel.go_to_reports_network()
        reports_network_page.go_to_first_report()
        reports_network_page.assert_ap_name_present_in_ap_table("IAP_1")

        log.info("STEP 2 : Select a group and go to report page.")
        overview_page.go_to_default_group()
        reports_network_page = self.LeftPanel.go_to_reports_network()
        reports_network_page.assert_group_name("default")

        log.info("CLEANUP")
        #self.browser.refresh()

        self.LeftPanel.go_to_monitoring_page()
        inner_left_panel = self.TopPanel.click_slider_icon()
        manage_group_page = inner_left_panel.manage_group()
        manage_group_page.move_all_ap_to_group("default")
        time.sleep(200)
        DeviceLibrary.reconnect("IAP_1")
	def test_ath_11085_edit_config(self):
		'''
		as suggested by Michael
		IAP1 : 4.1.1.7
		IAP_2: 4.1.2.3
		'''
		conf = self.config.config_vars
		import os
		os.environ['device'] = 'IAP_2'
		self.take_s1_snapshot("SHOW_ARM_CONFIG")
		import os
		os.environ['device'] = "IAP_1"
		self.take_s1_snapshot("SHOW_ARM_CONFIG")
		innerleftpanel = self.TopPanel.click_slider_icon()
		create_group = innerleftpanel.add_group()
		create_group.create_empty_group1(self.config.config_vars.group_1)
		manage_group = innerleftpanel.manage_group()
		manage_group.move_vc_to_group(self.config.config_vars.group_1,'IAP_2')
		time.sleep(500)
		DeviceLibrary.reconnect('IAP_2')
		innerleftpanel = self.TopPanel.click_slider_icon()
		innerleftpanel.click_on_expand_group_icon(innerleftpanel.expand_group_icon)
		innerleftpanel.select_vc('IAP_1')
		rf_page = self.LeftPanel.go_to_rf_page()
		rf_page.set_rf_arm_client_control_band_sterring_mode(conf.band_streering_force_5ghz)
		logger.debug('RFPage : Selecting Default access in airtime fairness mode')
		rf_page.airtime_fairness_mode.set(conf.airtime_fairness_mode_default_access)
		rf_page.cm_calculating_interval.set(conf.sixty)
		rf_page.set_rf_arm_client_control_cm_neighbor_matching(conf.ninty_five)
		logger.debug('RfPage : Setting vale of cm interval threshold to default value')
		rf_page.cm_threshold.set(conf.cm_threshold_value2)
		rf_page.set_rf_arm_client_control_slb_mode(conf.slb_mode_value_2nd)
		logger.debug('RfPage : Setting max transmit power to default values')
		rf_page.max_transmit_power.set(conf.min_transmit_power_value)
		logger.debug('RfPage : Setting min transmit power to default values')
		rf_page.min_transmit_power.set(conf.new_min_transmit_power_value)
		rf_page.set_rf_arm_access_point_control_client_aware(conf.new_mhz_support_value)
		logger.debug('RfPage : Setting scanning values')
		rf_page.scanning.set(conf.new_mhz_support_value)
		rf_page.set_rf_arm_access_point_control_wide_channel_bands(conf.wide_channel_bands_24ghz)
		rf_page.set_rf_arm_access_point_control_mhz_support(conf.new_mhz_support_value)
		logger.debug('RfPage : Clicking on Save button')
		rf_page.save_settings.click()
		rf_page.set_rf_arm_fields(set=True)
		self.browser.refresh()
		rf_page.assert_override_flag_button(check='True')
		rf_page.click_on_override_flag()
		rf_page.aserts_overrides_diff()
		rf_page.click_on_close_overrides_overlay()
		innerleftpanel.click_on_close_icon()
		innerleftpanel = self.TopPanel.click_slider_icon()
		innerleftpanel.select_default_group()
		rf_page.set_rf_arm_fields(set=True)
		self.browser.refresh()
		rf_page.assert_override_flag_button(check='False')
		innerleftpanel = self.TopPanel.click_slider_icon()
		innerleftpanel.click_expand_group1_icon()
		innerleftpanel.select_vc('IAP_2')
		rf_page = self.LeftPanel.go_to_rf_page()
		rf_page.set_rf_arm_client_control_cm_calculating_interval(conf.cm_calculating_interval_66)
		rf_page.set_rf_arm_client_control_cm_neighbor_matching(conf.vlanid)
		rf_page.set_rf_arm_client_control_cm_threshold(conf.transmit_power_24g_value2)
		rf_page.set_rf_arm_access_point_control_min_transmit_power(conf.min_transmit_power_value)
		rf_page.set_rf_arm_access_point_control_max_transmit_power(conf.max_transmit_power_value1)
		rf_page.set_rf_arm_access_point_control_customized_valid_channel(check = 'true')
		rf_page.enable_custom_valid_channel_and_set()
		rf_page.save_changes()
		self.browser.refresh()
		rf_page.click_on_override_flag()
		rf_page.click_on_resolve_all_overrides()
		import os
		os.environ['device'] = "IAP_1"
		self.take_s2_snapshot("SHOW_ARM_CONFIG")
		import os
		os.environ['device'] = "IAP_2"
		self.take_s2_snapshot("SHOW_ARM_CONFIG")
		rf_page.set_rf_arm_fields(set=False)
		rf_page.save_changes()
		innerleftpanel = self.TopPanel.click_slider_icon()
		innerleftpanel.select_default_group()
		rf_page = self.LeftPanel.go_to_rf_page()
		rf_page.set_rf_arm_fields(set=False)
		rf_page.save_changes()
		innerleftpanel = self.TopPanel.click_slider_icon()
		manage_group = innerleftpanel.manage_group()
		manage_group.move_vc_to_group(self.config.config_vars.default_group,'IAP_2')
		time.sleep(300)
		DeviceLibrary.reconnect('IAP_2')
		manage_group = innerleftpanel.manage_group()
		manage_group.delete_group(manage_group.group1)
		import os
		os.environ['device'] = "IAP_1"
		self.take_s3_snapshot("SHOW_ARM_CONFIG")
		import os
		os.environ['device'] = "IAP_2"
		self.take_s3_snapshot("SHOW_ARM_CONFIG")
		import os
		os.environ['device'] = "IAP_1"
		self.assert_s1_s2_diff(0)
		import os
		os.environ['device'] = "IAP_2"
		self.assert_s1_s2_diff(0)
		import os
		os.environ['device'] = "IAP_1"
		self.assert_s1_s3_diff()
		import os
		os.environ['device'] = "IAP_2"
		self.assert_s1_s3_diff()
Beispiel #11
0
        def test_ath_11085_edit_config(self):
            '''
		as suggested by Michael
		IAP1 : 4.1.1.7
		IAP_2: 4.1.2.3
		'''
            conf = self.config.config_vars
            import os
            os.environ['device'] = 'IAP_2'
            self.take_s1_snapshot("SHOW_ARM_CONFIG")
            import os
            os.environ['device'] = "IAP_1"
            self.take_s1_snapshot("SHOW_ARM_CONFIG")
            innerleftpanel = self.TopPanel.click_slider_icon()
            create_group = innerleftpanel.add_group()
            create_group.create_empty_group1(self.config.config_vars.group_1)
            manage_group = innerleftpanel.manage_group()
            manage_group.move_vc_to_group(self.config.config_vars.group_1,
                                          'IAP_2')
            time.sleep(500)
            DeviceLibrary.reconnect('IAP_2')
            innerleftpanel = self.TopPanel.click_slider_icon()
            innerleftpanel.click_on_expand_group_icon(
                innerleftpanel.expand_group_icon)
            innerleftpanel.select_vc('IAP_1')
            rf_page = self.LeftPanel.go_to_rf_page()
            rf_page.set_rf_arm_client_control_band_sterring_mode(
                conf.band_streering_force_5ghz)
            logger.debug(
                'RFPage : Selecting Default access in airtime fairness mode')
            rf_page.airtime_fairness_mode.set(
                conf.airtime_fairness_mode_default_access)
            rf_page.cm_calculating_interval.set(conf.sixty)
            rf_page.set_rf_arm_client_control_cm_neighbor_matching(
                conf.ninty_five)
            logger.debug(
                'RfPage : Setting vale of cm interval threshold to default value'
            )
            rf_page.cm_threshold.set(conf.cm_threshold_value2)
            rf_page.set_rf_arm_client_control_slb_mode(conf.slb_mode_value_2nd)
            logger.debug(
                'RfPage : Setting max transmit power to default values')
            rf_page.max_transmit_power.set(conf.min_transmit_power_value)
            logger.debug(
                'RfPage : Setting min transmit power to default values')
            rf_page.min_transmit_power.set(conf.new_min_transmit_power_value)
            rf_page.set_rf_arm_access_point_control_client_aware(
                conf.new_mhz_support_value)
            logger.debug('RfPage : Setting scanning values')
            rf_page.scanning.set(conf.new_mhz_support_value)
            rf_page.set_rf_arm_access_point_control_wide_channel_bands(
                conf.wide_channel_bands_24ghz)
            rf_page.set_rf_arm_access_point_control_mhz_support(
                conf.new_mhz_support_value)
            logger.debug('RfPage : Clicking on Save button')
            rf_page.save_settings.click()
            rf_page.set_rf_arm_fields(set=True)
            self.browser.refresh()
            rf_page.assert_override_flag_button(check='True')
            rf_page.click_on_override_flag()
            rf_page.aserts_overrides_diff()
            rf_page.click_on_close_overrides_overlay()
            innerleftpanel.click_on_close_icon()
            innerleftpanel = self.TopPanel.click_slider_icon()
            innerleftpanel.select_default_group()
            rf_page.set_rf_arm_fields(set=True)
            self.browser.refresh()
            rf_page.assert_override_flag_button(check='False')
            innerleftpanel = self.TopPanel.click_slider_icon()
            innerleftpanel.click_expand_group1_icon()
            innerleftpanel.select_vc('IAP_2')
            rf_page = self.LeftPanel.go_to_rf_page()
            rf_page.set_rf_arm_client_control_cm_calculating_interval(
                conf.cm_calculating_interval_66)
            rf_page.set_rf_arm_client_control_cm_neighbor_matching(conf.vlanid)
            rf_page.set_rf_arm_client_control_cm_threshold(
                conf.transmit_power_24g_value2)
            rf_page.set_rf_arm_access_point_control_min_transmit_power(
                conf.min_transmit_power_value)
            rf_page.set_rf_arm_access_point_control_max_transmit_power(
                conf.max_transmit_power_value1)
            rf_page.set_rf_arm_access_point_control_customized_valid_channel(
                check='true')
            rf_page.enable_custom_valid_channel_and_set()
            rf_page.save_changes()
            self.browser.refresh()
            rf_page.click_on_override_flag()
            rf_page.click_on_resolve_all_overrides()
            import os
            os.environ['device'] = "IAP_1"
            self.take_s2_snapshot("SHOW_ARM_CONFIG")
            import os
            os.environ['device'] = "IAP_2"
            self.take_s2_snapshot("SHOW_ARM_CONFIG")
            rf_page.set_rf_arm_fields(set=False)
            rf_page.save_changes()
            innerleftpanel = self.TopPanel.click_slider_icon()
            innerleftpanel.select_default_group()
            rf_page = self.LeftPanel.go_to_rf_page()
            rf_page.set_rf_arm_fields(set=False)
            rf_page.save_changes()
            innerleftpanel = self.TopPanel.click_slider_icon()
            manage_group = innerleftpanel.manage_group()
            manage_group.move_vc_to_group(
                self.config.config_vars.default_group, 'IAP_2')
            time.sleep(300)
            DeviceLibrary.reconnect('IAP_2')
            manage_group = innerleftpanel.manage_group()
            manage_group.delete_group(manage_group.group1)
            import os
            os.environ['device'] = "IAP_1"
            self.take_s3_snapshot("SHOW_ARM_CONFIG")
            import os
            os.environ['device'] = "IAP_2"
            self.take_s3_snapshot("SHOW_ARM_CONFIG")
            import os
            os.environ['device'] = "IAP_1"
            self.assert_s1_s2_diff(0)
            import os
            os.environ['device'] = "IAP_2"
            self.assert_s1_s2_diff(0)
            import os
            os.environ['device'] = "IAP_1"
            self.assert_s1_s3_diff()
            import os
            os.environ['device'] = "IAP_2"
            self.assert_s1_s3_diff()
    def test_ath_9226_Group_Report(self):
        """
        ################################################################################################################
        1   Select a group from group monitoring and create report.
            Move a VC from the group to different group, and click on the report generated before.
            Remove a client associated to an AP of the group.
            Add/remove SSID
        2   Select a group and go to report page.
        ################################################################################################################
        """
        conf = self.config.config_vars
        log.info("STEP 1.1 : Select a group from group monitoring and create report.")
        overview_page = self.LeftPanel.goto_monitoringPage()
        #overview_page.go_to_default_group()
        reports_security_page = self.LeftPanel.go_to_reports_security()
        reports_security_page.delete_all_reports()

        report = reports_security_page.create_security_report("Last day", "Now", self.config.config_vars.one_time)
        reports_security_page.verify_report_generation(report, "Completed")
        reports_security_page.go_to_first_report()
        wids_count = reports_security_page.get_report_count("aps")

        log.info("STEP 1.2 : Move a VC from the group to different group, and click on the report generated before.")
        overview_page.create_new_group("GroupA", "test123")
        inner_left_panel = self.TopPanel.get_inner_left_panel()
        manage_group_page = inner_left_panel.manage_group()
        manage_group_page.move_all_ap_to_group("GroupA")
        time.sleep(200)
        DeviceLibrary.reconnect("IAP_1")

        reports_security_page = self.LeftPanel.go_to_reports_security()
        reports_security_page.go_to_first_report()

        wids_count1 = reports_security_page.get_report_count("aps")
        if wids_count != wids_count1:
            raise AssertionError("Report got changed.")

        log.info("STEP 1.3 : Remove a client associated to an AP of the group.")
        DeviceLibrary.disconnect_client_from_ap("Client_1")
        reports_security_page = self.LeftPanel.go_to_reports_security()
        reports_security_page.go_to_first_report()

        wids_count1 = reports_security_page.get_report_count("aps")
        if wids_count != wids_count1:
            raise AssertionError("Report got changed.")
        log.info("STEP 1.4 : Add/remove SSID")
        overview_page.go_to_default_group()
        self.LeftPanel.go_to_network_page()
        ssid_wep = "test3"
        basic_info = self.NetworkPage.create_new_network()
        virtual_lan = basic_info.employee_network_info(ssid_wep)
        security = virtual_lan.use_vlan_defaults()
        security.set_security_level_and_key_management("Personal")
        access = security.use_security_default()
        access.finish_network_setup()
        self.NetworkPage.assert_new_network(ssid_wep)
        reports_security_page = self.LeftPanel.go_to_reports_security()
        reports_security_page.go_to_first_report()

        wids_count1 = reports_security_page.get_report_count("aps")
        if wids_count != wids_count1:
            raise AssertionError("Report got changed.")

        log.info("STEP 2 : Select a group and go to report page.")
        overview_page.go_to_default_group()
        reports_security_page = self.LeftPanel.go_to_reports_security()
        reports_security_page.assert_group_name("default")

        log.info("CLEANUP")
        self.LeftPanel.go_to_monitoring_page()
        inner_left_panel = self.TopPanel.click_slider_icon()
        manage_group_page = inner_left_panel.manage_group()
        manage_group_page.move_all_ap_to_group("default")
        time.sleep(200)
        DeviceLibrary.reconnect("IAP_1")