def test_ath_9057_Immediate_upgrade_beta_image(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() # self.take_s1_snapshot("show_version") firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option( option=conf.version_type_value_2, version=conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() firmware_page.asserting_device_upgrade_status() firmware_page.buy_time() time.sleep(5) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") firmware_page.assert_firmware_version('IAP_1', conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") ''' downgrade back to base version ''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option( option=conf.version_type_value_2, version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1")
def test_ath_9057_Immediate_upgrade_beta_image(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() # self.take_s1_snapshot("show_version") firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() firmware_page.asserting_device_upgrade_status() firmware_page.buy_time() time.sleep(5) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") ''' downgrade back to base version ''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1")
def test_ath_4408_scheduled_upgrade_automatic(self): ''' automatic upgrade ''' conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() latest_version = firmware_page.get_latest_recommended_version() firmware_page.select_vc_for_upgrade('IAP_1') # firmware_page.select_second_vc() firmware_page.upgrade_button.click() firmware_page.select_later_date_radio() firmware_page.set_upgrade_after_ten_mins() firmware_page.click_post_firmware_upgrade() time.sleep(1000) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') # DeviceLibrary.connect_device_to_server('IAP_2') # self.buy_time() firmware_page.assert_firmware_version('IAP_1',latest_version) # firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version) # firmware_page.asserting_device_upgraded_successful1() firmware_page.select_vc_for_upgrade('IAP_1') # firmware_page.select_second_vc() firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() time.sleep(1000) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') # DeviceLibrary.connect_device_to_server('IAP_2') self.buy_time() firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version)
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()
def test_ath_9058_immediate_upgrade_beta_image(self): ''' Immediate -- manual upgrade ''' conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_upgrade_version) firmware_page.select_later_date_radio() firmware_page.set_upgrade_after_ten_mins() firmware_page.click_post_firmware_upgrade() time.sleep(1000) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') time.sleep(60) firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() time.sleep(60) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') self.buy_time() firmware_page.assert_firmware_version('IAP_1',conf.firmware_base_version)
def test_ath_6491_disconnect_switch_from_athena_and_verify_the_switch_is_not_shown_in_firmware_upgrade_page(self): firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.click_switches() DeviceLibrary.disconnect_device_from_server('Switch_1') firmware_page.assert_switch() raw_input('123') device_management_page = self.LeftPanel.go_to_device_management() device_management_page.add_switch_and_assign_license("Switch_1") raw_input('123') DeviceLibrary.getPrompt("Switch_1") DeviceLibrary.connect_device_to_server('Switch_1')
def test_ath_11941_firmware_upgrade_in_vc_manual(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() time.sleep(1000) # self.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') # self.buy_time() firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version)
def test_ath_4403_immediate_upgrade_automatic(self): conf = self.config.config_vars inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_default_group() time.sleep(5) firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.upgrade_firmware() self.buy_time() time.sleep(5) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5) firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option( option=conf.version_type_value_2, version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2")
def test_ath_4410_check_the_default_values_in_firmware_page(self): ''' manual... upgrade any swarm ''' conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() # self.take_s1_snapshot("show_version") firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() time.sleep(5) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5) firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") ''' downgrade back to base version ''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2")
def test_ath_4403_immediate_upgrade_automatic(self): conf = self.config.config_vars inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_default_group() time.sleep(5) firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.upgrade_firmware() self.buy_time() time.sleep(5) DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5) firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2")
def test_ath_11846_firmware_upgrade_in_vc_automatic(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() latest_version = firmware_page.get_latest_recommended_version() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.upgrade_button.click() # firmware_page.select_later_date_radio() # firmware_page.set_upgrade_after_ten_mins() firmware_page.click_post_firmware_upgrade() time.sleep(1000) # self.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') # self.buy_time() firmware_page.assert_firmware_version('IAP_1',latest_version)
def test_ath_11303_dynamic_cpu_and_telnet_server(self): ''' Snapshot command is remaining for multiple devices ''' conf = self.config.config_vars system_page = self.LeftPanel.go_to_system_page() os.environ['device'] = "IAP_1" self.take_s1_snapshot() os.environ['device'] = "IAP_2" self.take_s1_snapshot() system_page.check_non_default_values_vc_name() system_page._save_settings() system_page.set_dropdown_nondefault_value(conf.sys_disable, conf.sys_disable, conf.sys_enable, conf.sys_disable, conf.sys_disable, conf.sys_enable, conf.sys_enable, conf.sys_enable, conf.sys_enable, timezone1=None, band=None, utilization=None) system_page._save_settings() system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") self.browser.refresh() os.environ['device'] = "IAP_1" self.take_s2_snapshot() os.environ['device'] = "IAP_2" self.take_s2_snapshot() system_page = self.LeftPanel.go_to_system_page() system_page.setting_default_values() system_page.set_dropdown_default_value() system_page._save_settings() system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") os.environ['device'] = "IAP_1" self.take_s3_snapshot() os.environ['device'] = "IAP_2" self.take_s3_snapshot() os.environ['device'] = "IAP_1" self.assert_s1_s2_diff(0) os.environ['device'] = "IAP_2" self.assert_s1_s2_diff(0) os.environ['device'] = "IAP_1" self.assert_s1_s3_diff() os.environ['device'] = "IAP_2" self.assert_s1_s3_diff()
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()
def test_ath_4415_check_upgrade_status_from_different_levels(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option( option=conf.version_type_value_2, version=conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_default_group() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_device() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() inner_left_panel = self.TopPanel.click_slider_icon() # inner_left_panel.click_expand_default_group_icon() inner_left_panel.select_device2() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5) firmware_page.assert_firmware_version('IAP_1', conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2', conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") ''' downgrade back to base version ''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option( option=conf.version_type_value_2, version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5)
def test_ath_11303_dynamic_cpu_and_telnet_server(self): ''' Snapshot command is remaining for multiple devices ''' conf = self.config.config_vars system_page = self.LeftPanel.go_to_system_page() os.environ['device'] = "IAP_1" self.take_s1_snapshot() os.environ['device'] = "IAP_2" self.take_s1_snapshot() system_page.check_non_default_values_vc_name() system_page._save_settings() system_page.set_dropdown_nondefault_value(conf.sys_disable,conf.sys_disable,conf.sys_enable,conf.sys_disable,conf.sys_disable,conf.sys_enable,conf.sys_enable,conf.sys_enable,conf.sys_enable,timezone1=None,band=None,utilization=None) system_page._save_settings() system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") self.browser.refresh() os.environ['device'] = "IAP_1" self.take_s2_snapshot() os.environ['device'] = "IAP_2" self.take_s2_snapshot() system_page = self.LeftPanel.go_to_system_page() system_page.setting_default_values() system_page.set_dropdown_default_value() system_page._save_settings() system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") system_page.buy_time_2() DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") os.environ['device'] = "IAP_1" self.take_s3_snapshot() os.environ['device'] = "IAP_2" self.take_s3_snapshot() os.environ['device'] = "IAP_1" self.assert_s1_s2_diff(0) os.environ['device'] = "IAP_2" self.assert_s1_s2_diff(0) os.environ['device'] = "IAP_1" self.assert_s1_s3_diff() os.environ['device'] = "IAP_2" self.assert_s1_s3_diff()
def test_ath_4415_check_upgrade_status_from_different_levels(self): conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_default_group() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() inner_left_panel = self.TopPanel.click_slider_icon() inner_left_panel.select_device() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() inner_left_panel = self.TopPanel.click_slider_icon() # inner_left_panel.click_expand_default_group_icon() inner_left_panel.select_device2() firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.asserting_device_upgrade_progress() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5) firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") ''' downgrade back to base version ''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(option=conf.version_type_value_2,version=conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server("IAP_1") DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server("IAP_2") time.sleep(5)
def test_ath_4409_scheduled_upgrade_downgrade_manual(self): '''manual upgrade and downgrade of a swarm''' conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_upgrade_version) firmware_page.select_later_date_radio() firmware_page.set_upgrade_after_ten_mins() firmware_page.click_post_firmware_upgrade() time.sleep(10) # firmware_page.asser_successfully_upgrading_msg() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server('IAP_2') firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version) ''' now downgrading''' firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_base_version) firmware_page.select_later_date_radio() firmware_page.set_upgrade_after_ten_mins() firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() firmware_page.asser_successfully_upgrading_msg() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server('IAP_2') time.sleep(10) firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version)
def test_ath_4411_upgrade_multiple_vcs_together(self): '''automatic ''' conf = self.config.config_vars firmware_page = self.LeftPanel.go_to_maintenance_Firmware_page() # self.take_s1_snapshot("show_version") firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') # firmware_page.select_third_vc() firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_upgrade_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server('IAP_2') # DeviceLibrary.connect_device_to_server('IAP_3') time.sleep(10) firmware_page.assert_firmware_version('IAP_1',conf.firmware_upgrade_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_upgrade_version) # firmware_page.assert_firmware_version('IAP_3',conf.firmware_upgrade_version) # self.take_s2_snapshot("show_version") firmware_page.select_vc_for_upgrade('IAP_1') firmware_page.select_vc_for_upgrade('IAP_2') # firmware_page.select_third_vc() firmware_page.clicking_on_upgrade_firmware() firmware_page.setting_firmware_upgrade_manual_option(conf.version_type_value_2,conf.firmware_base_version) firmware_page.click_post_firmware_upgrade() firmware_page.buy_time() DeviceLibrary.getPrompt("IAP_1") DeviceLibrary.connect_device_to_server('IAP_1') DeviceLibrary.getPrompt("IAP_2") DeviceLibrary.connect_device_to_server('IAP_2') # DeviceLibrary.connect_device_to_server('IAP_3') # self.buy_time() firmware_page.assert_firmware_version('IAP_1',conf.firmware_base_version) firmware_page.assert_firmware_version('IAP_2',conf.firmware_base_version)
def test_ath_11136_wids_config_unprovisioned_iap(self): conf=self.config.config_vars import os os.environ['device'] = "IAP_1" self.take_s1_snapshot('show_ids_detection_config') self.TopPanel.go_to_allgroups() device_mgmt = self.LeftPanel.go_to_device_management() device_mgmt.get_and_search_mac_address() device_mgmt.select_virtual_controller(device_mgmt.device_selector_1) device_mgmt.select_assign_group() device_mgmt.all_group.click() device_mgmt.click_assign() logger.debug('DeviceManagement: Clicking on ok button') device_mgmt.ok_button.click() device_mgmt.assert_group_name(conf.unprovisioned) DeviceLibrary.factoryReset('IAP_1') DeviceLibrary.configureWirelessNetwork('IAP_1') time.sleep(90) # raw_input('wait') DeviceLibrary.getPrompt('IAP_1') DeviceLibrary.connect_device_to_server('IAP_1') time.sleep(300) inner_left_panel = self.TopPanel.click_slider_icon() time.sleep(20) if not inner_left_panel.verify_unprovision_iap: time.sleep(30) self.browser.refresh() time.sleep(10) self.TopPanel.click_slider_icon() inner_left_panel.select_unprovision_iap() inner_left_panel.assert_unprovisioned_alert_popup() inner_left_panel.select_wireless_configuration_module() time.sleep(20) # if inner_left_panel.assert_group1_and_group2(): # if inner_left_panel.assert_sample_group_with_vc_present(): # manage_group_page = inner_left_panel.manage_group() # manage_group_page.move_virtual_controller_from_Mygroup(group1=True) # inner_left_panel.manage_group() # manage_group_page.delete_specific_group(group1=True) # create_group_page = inner_left_panel.add_group() # create_group_page.set_group_name(conf.group_1) # create_group_page.select_virtual_controller(create_group_page.select_vc) # create_group_page.move_next() # create_group_page._set_group_default_device_password1() # inner_left_panel.select_group(inner_left_panel.group_1) # inner_left_panel.expand_group1.click() # inner_left_panel.select_vc_inside_group.click() wids_page = self.LeftPanel.go_to_wids_page() time.sleep(20) wids_page.set_detection_infra_threat_detection_level_custom('Medium') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() wids_page.set_detection_clients_threat_detection_level_custom('High') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() # wids_page.save_settings() # if inner_left_panel.close_hide_popup: # inner_left_panel.assert_unprovisioned_alert_popup() monitoring_page = self.LeftPanel.go_to_monitoring_page() time.sleep(10) # raw_input('wait1') monitoring_wids_page = self.LeftPanel.go_to_monitoring_wids() time.sleep(10) # raw_input('wait2') self.browser.assert_element(monitoring_page.infrastructure_detection_level_medium, "Infrastructure detection level is not set to medium ") time.sleep(10) self.browser.assert_element(monitoring_page.client_detection_level_high, "Client detection level is not set to high ") import os os.environ['device'] = "IAP_1" self.take_s2_snapshot('show_ids_detection_config') inner_left_panel.select_wireless_configuration_module() time.sleep(10) wids_page = self.LeftPanel.go_to_wids_page() time.sleep(20) wids_page.set_detection_infra_threat_detection_level_custom_changes('Off') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() wids_page.set_detection_clients_threat_detection_level_custom_changes('Off') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() # inner_left_panel = self.TopPanel.click_slider_icon() # if inner_left_panel.assert_group1_and_group2(): # if inner_left_panel.assert_sample_group_with_vc_present(): # manage_group_page = inner_left_panel.manage_group() # manage_group_page.move_virtual_controller_from_Mygroup(group1=True) # inner_left_panel.select_group(inner_left_panel.default_group_click) # inner_left_panel = self.TopPanel.click_slider_icon() # inner_left_panel.manage_group() # manage_group_page.delete_specific_group(group1=True) import os os.environ['device'] = "IAP_1" self.take_s3_snapshot('show_ids_detection_config') self.assert_s1_s2_diff(0) import os os.environ['device'] = "IAP_1" self.assert_s1_s3_diff() # self.clear()
def test_ath_11240_configure_unprovisoined_access_point(self): # wirte erase all and factory_reset the IAP. Configure the IAP with wireless network profile and Join the IAP to Athena-central(Configure the IAP with wireless network profile.... has to be done manually) conf = self.config.config_vars import os os.environ['device'] = "IAP_1" self.take_s1_snapshot('AP_ENV') self.TopPanel.go_to_allgroups() device_mgmt = self.LeftPanel.go_to_device_management() device_mgmt.get_and_search_mac_address() device_mgmt.select_virtual_controller(device_mgmt.device_selector_1) device_mgmt.select_assign_group() device_mgmt.all_group.click() device_mgmt.click_assign() logger.debug('DeviceManagement: Clicking on ok button') device_mgmt.ok_button.click() device_mgmt.assert_group_name(conf.unprovisioned) DeviceLibrary.factoryReset('IAP_1') DeviceLibrary.configureWirelessNetwork('IAP_1') time.sleep(30) # raw_input('wait') DeviceLibrary.getPrompt('IAP_1') DeviceLibrary.connect_device_to_server('IAP_1') time.sleep(300) inner_left_panel = self.TopPanel.click_slider_icon() # time.sleep(20) if not inner_left_panel.verify_unprovision_iap: time.sleep(30) self.browser.refresh() time.sleep(10) self.TopPanel.click_slider_icon() inner_left_panel.select_unprovision_iap() inner_left_panel.assert_unprovisioned_alert_popup() inner_left_panel.select_wireless_configuration_module() time.sleep(50) access_point = self.LeftPanel.go_to_access_points() time.sleep(50) access_point.edit_access_point() access_point.get_ip_from_dhcp.click() access_point.click_save_settings() if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) default_name = access_point.get_ap_default_name() access_point.assert_name_error() access_point.set_access_point_name( self.config.config_vars.new_access_point_name) if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.assert_new_access_name() access_point.select_static_radio_button() access_point.get_and_set_current_server_ip_netmask_dns_ip_gateway() access_point.click_save_settings() # raw_input('waiting222....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.click_edit_iap() access_point.click_radio_accordion() access_point.aa_radio_24g.click() time.sleep(10) access_point.aa_radio_5g.click() access_point.transmit_power.set( self.config.config_vars.channel_24g_value) access_point.transmit_power_5g.set( self.config.config_vars.channel_24g_value) access_point.click_save_settings() # raw_input('waiting....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) import os os.environ['device'] = "IAP_1" self.take_s2_snapshot('AP_ENV') self.LeftPanel.go_to_network_page() access_point = self.LeftPanel.go_to_access_points() access_point.edit_access_point() access_point.get_set_current_mac_address() access_point.get_ip_from_dhcp.click() access_point.click_save_settings() # raw_input('waiting....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.set_radio_defaults() if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(30) import os os.environ['device'] = "IAP_1" self.take_s3_snapshot('AP_ENV') self.assert_s1_s2_diff(0) import os os.environ['device'] = "IAP_1" self.assert_s1_s3_diff()
def test_ath_11240_configure_unprovisoined_access_point(self): # wirte erase all and factory_reset the IAP. Configure the IAP with wireless network profile and Join the IAP to Athena-central(Configure the IAP with wireless network profile.... has to be done manually) conf=self.config.config_vars import os os.environ['device'] = "IAP_1" self.take_s1_snapshot('AP_ENV') self.TopPanel.go_to_allgroups() device_mgmt = self.LeftPanel.go_to_device_management() device_mgmt.get_and_search_mac_address() device_mgmt.select_virtual_controller(device_mgmt.device_selector_1) device_mgmt.select_assign_group() device_mgmt.all_group.click() device_mgmt.click_assign() logger.debug('DeviceManagement: Clicking on ok button') device_mgmt.ok_button.click() device_mgmt.assert_group_name(conf.unprovisioned) DeviceLibrary.factoryReset('IAP_1') DeviceLibrary.configureWirelessNetwork('IAP_1') time.sleep(30) # raw_input('wait') DeviceLibrary.getPrompt('IAP_1') DeviceLibrary.connect_device_to_server('IAP_1') time.sleep(300) inner_left_panel = self.TopPanel.click_slider_icon() # time.sleep(20) if not inner_left_panel.verify_unprovision_iap: time.sleep(30) self.browser.refresh() time.sleep(10) self.TopPanel.click_slider_icon() inner_left_panel.select_unprovision_iap() inner_left_panel.assert_unprovisioned_alert_popup() inner_left_panel.select_wireless_configuration_module() time.sleep(50) access_point = self.LeftPanel.go_to_access_points() time.sleep(50) access_point.edit_access_point() access_point.get_ip_from_dhcp.click() access_point.click_save_settings() if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) default_name = access_point.get_ap_default_name() access_point.assert_name_error() access_point.set_access_point_name(self.config.config_vars.new_access_point_name) if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.assert_new_access_name() access_point.select_static_radio_button() access_point.get_and_set_current_server_ip_netmask_dns_ip_gateway() access_point.click_save_settings() # raw_input('waiting222....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.click_edit_iap() access_point.click_radio_accordion() access_point.aa_radio_24g.click() time.sleep(10) access_point.aa_radio_5g.click() access_point.transmit_power.set(self.config.config_vars.channel_24g_value) access_point.transmit_power_5g.set(self.config.config_vars.channel_24g_value) access_point.click_save_settings() # raw_input('waiting....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) import os os.environ['device'] = "IAP_1" self.take_s2_snapshot('AP_ENV') self.LeftPanel.go_to_network_page() access_point = self.LeftPanel.go_to_access_points() access_point.edit_access_point() access_point.get_set_current_mac_address() access_point.get_ip_from_dhcp.click() access_point.click_save_settings() # raw_input('waiting....') if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(10) access_point.set_radio_defaults() if inner_left_panel.close_hide_popup: inner_left_panel.assert_unprovisioned_alert_popup() time.sleep(30) import os os.environ['device'] = "IAP_1" self.take_s3_snapshot('AP_ENV') self.assert_s1_s2_diff(0) import os os.environ['device'] = "IAP_1" self.assert_s1_s3_diff()