def test_ToogleWifiMode_2g_OPEN_BRIDGE(self, request, get_vif_state,
                                           get_ToggleWifiMode_data,
                                           setup_perfectoMobile_iOS):

        profile_data = setup_params_general["ssid_modes"]["open"][0]
        ssidName = profile_data["ssid_name"]
        ssidPassword = "******"
        print("SSID_NAME: " + ssidName)
        print("SSID_PASS: "******"retest,vif state ssid not available:",
                          body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_ToggleWifiMode_data

        # Set Wifi/AP Mode
        set_APconnMobileDevice_iOS(request, ssidName, ssidPassword,
                                   setup_perfectoMobile_iOS, connData)

        # Toggle WifiMode
        Toggle_WifiMode_iOS(request, setup_perfectoMobile_iOS, connData)

        # Verify AP After AirplaneMode
        value = verify_APconnMobileDevice_iOS(request, ssidName,
                                              setup_perfectoMobile_iOS,
                                              connData)
        assert value

        # ForgetWifi
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, ssidName,
                             connData)
    def test_ToogleAirplaneMode_5g_WPA2_Personal_BRIDGE(
            self, request, get_vif_state, get_ToggleAirplaneMode_data,
            setup_perfectoMobile_iOS):
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
        ssidName = profile_data["ssid_name"]
        ssidPassword = profile_data["security_key"]
        print("SSID_NAME: " + ssidName)
        print("SSID_PASS: "******"retest,vif state ssid not available:",
                          body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_ToggleAirplaneMode_data

        # Set Wifi/AP Mode
        set_APconnMobileDevice_iOS(request, ssidName, ssidPassword,
                                   setup_perfectoMobile_iOS, connData)
        # print("ReportFlag: " + resultFlag)
        # setReportResultFlag(resultFlag)

        # Toggle AirplaneMode
        Toggle_AirplaneMode_iOS(request, setup_perfectoMobile_iOS, connData)

        # Verify AP After AirplaneMode
        assert verify_APconnMobileDevice_iOS(request, ssidName,
                                             setup_perfectoMobile_iOS,
                                             connData)

        # ForgetWifi
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, ssidName,
                             connData)
    def test_ClientConnectivity_5g_WPA2_Personal_Bridge(self, request, get_vif_state, get_APToMobileDevice_data,
                                                 setup_perfectoMobile_iOS):

        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
        ssidName = profile_data["ssid_name"]
        ssidPassword = profile_data["security_key"]
        print("SSID_NAME: " + ssidName)
        print("SSID_PASS: "******"retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_APToMobileDevice_data

        # Set Wifi/AP Mode
        set_APconnMobileDevice_iOS(request, ssidName, ssidPassword, setup_perfectoMobile_iOS, connData)

        # Verify Upload download Speed from device Selection
        verifyUploadDownloadSpeediOS(request, setup_perfectoMobile_iOS, connData)

        # ForgetWifi
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, ssidName, connData)
Exemple #4
0
    def test_AccessPointConnection_5g_WPA2_Personal_Bridge(
            self, request, get_vif_state, get_AccessPointConn_data,
            setup_perfectoMobile_iOS):
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
        ssidName = profile_data["ssid_name"]
        ssidPassword = profile_data["security_key"]
        print("SSID_NAME: " + ssidName)
        # print ("SSID_PASS: "******"retest,vif state ssid not available:",
                          body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_AccessPointConn_data

        # Set Wifi/AP Mode
        set_APconnMobileDevice_iOS(request, ssidName, ssidPassword,
                                   setup_perfectoMobile_iOS, connData)

        # Need An ip To ping
        wifi_ip = get_WifiIPAddress_iOS(request, setup_perfectoMobile_iOS,
                                        connData, ssidName)

        # Open Ping Application
        openApp(connData["bundleId-iOS-Ping"], setup_perfectoMobile_iOS)

        ping_deftapps_iOS(setup_perfectoMobile_iOS, wifi_ip)

        # ForgetWifi
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, ssidName,
                             connData)
Exemple #5
0
    def test_PassPointConnection_5g_WPA2_Personal(self, request, get_vif_state,
                                                  setup_perfectoMobile_iOS,
                                                  get_PassPointConniOS_data):

        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
        ssidName = profile_data["ssid_name"]
        ssidPassword = profile_data["security_key"]
        print("SSID_NAME: " + ssidName)
        print("SSID_PASS: "******"retest,vif state ssid not available:",
                          body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_PassPointConniOS_data

        # Set Wifi Access Mode to #Default-SSID-5gl-perfecto-b/#Default-SSID-2gl-perfecto-b
        set_APconnMobileDevice_iOS(request, ssidName, ssidPassword,
                                   setup_perfectoMobile_iOS, connData)

        # Toggle Airplane Mode and Ensure Wifi Connection.
        assert Toggle_AirplaneMode_iOS(request, setup_perfectoMobile_iOS,
                                       connData)

        # ForgetWifi
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, ssidName,
                             connData)

        # Close Settings App
        closeApp(connData["bundleId-iOS-Settings"], setup_perfectoMobile_iOS)
Exemple #6
0
    def test_OpenRoaming_2g_WPA2_EAP_BRIDGE(self, passpoint_profile_info, push_ap_profile, request, get_APToMobileDevice_data, setup_perfectoMobile_iOS):
       
        result = push_ap_profile['ssid_wpa2_eap_passpoint_2g']['vif_config']
        if result:
            allure.attach(name="Config push to AP for ssid_wpa2_eap_passpoint_2g successful ", body="")
        else:
            allure.attach(name="Config push to AP for ssid_wpa2_eap_passpoint_2g failed", body="")
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
        assert result
        result = push_ap_profile['ssid_wpa2_eap_passpoint_2g']['vif_state']
        if result:
            allure.attach(name="Config apply to AP for ssid_wpa2_eap_passpoint_2g successful ", body="")
        else:
            allure.attach(name="Config apply to AP for ssid_wpa2_eap_passpoint_2g failed", body="")
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
        assert result

        print("SSID to download profile :: ", setup_params_eap["ssid_modes"]["open"][0]["ssid_name"])
        print("SSID to validate connectivity :: ", setup_params_eap["ssid_modes"]["wpa2_eap"][0]["ssid_name"])
        print("Profile download URL :: ", passpoint_profile_info["profile_download_url_ios"])
        print("Profile name to remove :: ", passpoint_profile_info["profile_name_on_device"])

        report = setup_perfectoMobile_iOS[1]
        driver = setup_perfectoMobile_iOS[0]
        connData = get_APToMobileDevice_data

        downloadProfileSSID = setup_params_eap["ssid_modes"]["open"][0]["ssid_name"]
        downloadProfileSSIDPass = ""
        #profileDownloadURL = passpoint_profile_info["profile_download_url_ios"]
        profileDownloadURL = "https://onboard.almondlabs.net/ttls/AmeriBand-Profile.mobileconfig"
        profileName = passpoint_profile_info["profile_name_on_device"]
        profileNameSSID = setup_params_eap["ssid_modes"]["wpa2_eap"][1]["ssid_name"]

        #Delete Profile Under Settings
        deleteOpenRoamingInstalledProfile(request, profileName, setup_perfectoMobile_iOS, connData)    
  
        #Set Wifi/AP Mode
        set_APconnMobileDevice_iOS(request, downloadProfileSSID, downloadProfileSSIDPass, setup_perfectoMobile_iOS, connData)

        #Install Profile 
        downloadInstallOpenRoamingProfile(request, profileDownloadURL, setup_perfectoMobile_iOS, connData)
     
        #ForgetWifi Original
        ForgetWifiConnection(request, setup_perfectoMobile_iOS, downloadProfileSSID, connData)

        try: 
            assert verify_APconnMobileDevice_iOS(request, profileNameSSID, setup_perfectoMobile_iOS, connData)
            #Verify Upload download Speed from device Selection
            verifyUploadDownloadSpeediOS(request, setup_perfectoMobile_iOS, connData)
        except Exception as e:
            deleteOpenRoamingInstalledProfile(request, profileName, setup_perfectoMobile_iOS, connData) 
            assert False
            
        #Delete Profile Under Settings
        deleteOpenRoamingInstalledProfile(request, profileName, setup_perfectoMobile_iOS, connData)