def set_wireless(self): """ Index: 0 """ self.set_callback_fail([ 'enable_wired', 'del_wireless_profile_from_reg', 'close_wireless_callback' ]) SwitchThinProMode("admin") Network.wired_wireless_switch_off() Network.disabled_wired() self.network.close() self.network.open() self.network.wireless.click() self.network.add.click() self.network.ssid.send_keys(self.ap_name) ssid_hidden = self.network.ssid_hidden ssid_hidden.global_unselected_checkbox.click() # check ssid hidden can be enabled check_box = self.network.ssid_hidden.global_selected_checkbox self.network.security.click() self.network.authentication.click() self.network.wpa2_psk.click() self.network.preshared_key.send_keys(self.password) self.network.wireless_apply.click() self.network.wireless_ok.click() self.network.apply.click()
def set_wireless(self): """ Index: 0 """ self.set_callback_fail([ 'close_Cert_Window', 'enable_wired', 'del_wireless_profile_from_reg', 'close_wireless_callback' ]) SwitchThinProMode("admin") cert_path = search_file_from_usb(self.cert_name) self.cert_util.import_cert(file_path=cert_path) Network.wired_wireless_switch_off() Network.disabled_wired() self.network.close() self.network.open() self.network.wireless.click() self.network.add.click() self.network.ssid.send_keys(self.ap_name) self.network.security.click() self.network.authentication.click() self.network.wpa2_peap.click() cert_row = self.network.wpa2_peap_ca_cert cert_row.wpa2_peap_ca_cert_open.click() self.network.wpa2_peap_cert_thinpro_store.click() self.network.wpa2_cert_rootca_pem.click() self.network.wpa2_peap_cert_open.click() self.network.wpa2_username.send_keys(self.username) self.network.wpa2_password.send_keys(self.password) self.network.wireless_apply.click() self.network.wireless_ok.click() self.network.apply.click()
def set_wireless(self): """ Index: 0 """ self.set_callback_fail([ 'enable_wired', 'del_wireless_profile_from_reg', 'close_wireless_callback' ]) SwitchThinProMode("admin") Network.wired_wireless_switch_off() Network.disabled_wired() self.network.close() self.network.open() self.network.wireless.click() self.network.add.click() self.network.ssid.send_keys(self.ap_name) self.network.security.click() self.network.authentication.click() self.network.wpa2_eap.click() self.network.wpa2_username.send_keys(self.username) self.network.wpa2_password.send_keys(self.password) self.network.wpa2_eap_fast_provisioning.click() self.network.wpa2_eap_allow_auth.click() self.network.wireless_apply.click() self.network.wireless_ok.click() self.network.apply.click()
def set_wireless(self): self.set_callback_fail([ 'enable_wired', 'del_wireless_profile_from_reg', 'close_wireless_callback' ]) SwitchThinProMode("admin") Network.wired_wireless_switch_off() Network.disabled_wired() self.network.close() self.network.open() self.network.wireless.click() self.network.add.click() self.network.scan_ap.click() ap = self.__wait_until_ap_appear() ap.click() self.network.R1_Linux_Roaming.click() self.network.wireless_band.click() self.network.GHZ24.click() self.network.security.click() self.network.authentication.click() self.network.wpa2_psk.click() self.network.preshared_key.send_keys(self.password) self.network.wireless_apply.click() self.network.wireless_ok.click() self.network.apply.click()
def enable_wired_and_ping(self): self.set_callback_success([ 'close_network_panel_callback', ]) self.set_callback_fail( ['close_network_panel_callback', 'enable_wired_callback']) Network.enable_wired() self.network.wait_until_network_connected() self.__ping_method(expectation=True)
def __init__(self, script_name, case_name, exception=(CaseRunningError, )): super().__init__(script_name=script_name, case_name=case_name, exception=exception) self.network = Network.create_object() self.wireless_statistics = WirelessStatistics.create_object() self.cert_util = CertificateUtil.create_object()
def __init__(self, script_name, case_name, exception=(CaseRunningError, )): super().__init__(script_name=script_name, case_name=case_name, exception=exception) self.network = Network.create_object() self.wireless_statistics = WirelessStatistics.create_object() self.__initial_frequency = 2.4
def __init__(self, script_name, case_name, exception=(CaseRunningError, )): super().__init__(script_name=script_name, case_name=case_name, exception=exception) self.network = Network.create_object() self.ssid_panel = SSIDPanel.create_object() self.cert_util = CertificateUtil.create_object()
def set_wireless(self): """ Index: 0 """ self.set_callback_fail(['enable_wired', 'del_wireless_profile_from_reg', 'close_ssid_windows']) SwitchThinProMode("admin") Network.wired_wireless_switch_off() Network.disabled_wired() time.sleep(5) disconnected_wireless = self.network.wireless_tray_disconnected disconnected_wireless.click() self.network.scan_ap.click() disconnected_wireless.click() self.network.R1TC24GaxWPA2P.click() time.sleep(5) self.ssid_panel.password.send_keys(self.password) self.ssid_panel.ssid_ok.click()
def enable_wired(self): Network.wired_wireless_switch_on() Network.enable_wired()
def __init__(self, script_name, case_name, exception=(CaseRunningError, )): super().__init__(script_name=script_name, case_name=case_name, exception=exception) self.network = Network.create_object()
def enable_wired_callback(self): Network.enable_wired()
def disable_wired_and_ping(self): self.set_callback_fail( ['close_network_panel_callback', 'enable_wired_callback']) Network.disabled_wired() self.network.wait_until_network_disconnected() self.__ping_method(expectation=False)
def restore_automatic_callback(self): Network.set_connection_mode_automatic_with_command()