Ejemplo n.º 1
0
        public void Roam_WPA2_PSK_AES()     // Home AP's (both bands)
        {
            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            AP1Config24GHz.Auth    = AuthenticationMethod.WPA2Personal;
            AP1Config24GHz.Cipher  = EncryptionMethod.AES;
            AP1Config24GHz.Phy     = PhyType.g;
            AP1Config24GHz.Channel = 1;

            AP1Config5GHz.Auth    = AuthenticationMethod.WPA2Personal;
            AP1Config5GHz.Cipher  = EncryptionMethod.AES;
            AP1Config5GHz.Phy     = PhyType.a;
            AP1Config5GHz.Channel = 44;

            AP2Config24GHz.Auth    = AuthenticationMethod.WPA2Personal;
            AP2Config24GHz.Cipher  = EncryptionMethod.AES;
            AP2Config24GHz.Phy     = PhyType.g;
            AP2Config24GHz.Channel = 9;

            AP2Config5GHz.Auth    = AuthenticationMethod.WPA2Personal;
            AP2Config5GHz.Cipher  = EncryptionMethod.AES;
            AP2Config5GHz.Phy     = PhyType.n;
            AP2Config5GHz.Channel = 36;

            WhckRoaming.Roam(sConfig,
                             AP1Config24GHz,
                             AP1Config5GHz,
                             AP2Config24GHz,
                             AP2Config5GHz,
                             ROAM_TEST_OPTIONS.SuddenLossOfSignal | ROAM_TEST_OPTIONS.GradualLossOfSignal);
        }
Ejemplo n.º 2
0
        public void Roam_OPEN_NONE()    // Public Wi-Fi AP's
        {
            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            AP1Config24GHz.Auth    = AuthenticationMethod.Open;
            AP1Config24GHz.Cipher  = EncryptionMethod.None;
            AP1Config24GHz.Phy     = PhyType.g;
            AP1Config24GHz.Channel = 5;

            AP1Config5GHz.Auth    = AuthenticationMethod.Open;
            AP1Config5GHz.Cipher  = EncryptionMethod.None;
            AP1Config5GHz.Phy     = PhyType.a;
            AP1Config5GHz.Channel = 36;

            AP2Config24GHz.Auth    = AuthenticationMethod.Open;
            AP2Config24GHz.Cipher  = EncryptionMethod.None;
            AP2Config24GHz.Phy     = PhyType.g;
            AP2Config24GHz.Channel = 11;

            AP2Config5GHz.Auth    = AuthenticationMethod.Open;
            AP2Config5GHz.Cipher  = EncryptionMethod.None;
            AP2Config5GHz.Phy     = PhyType.n;
            AP2Config5GHz.Channel = 44;

            WhckRoaming.Roam(sConfig,
                             AP1Config24GHz,
                             AP1Config5GHz,
                             AP2Config24GHz,
                             AP2Config5GHz,
                             ROAM_TEST_OPTIONS.SuddenLossOfSignal | ROAM_TEST_OPTIONS.SuddenDropOfSignal);
        }
Ejemplo n.º 3
0
        public void Roam_Custom()     // Custom
        {
            bool bParameterSpecified = true;
            ROAM_TEST_OPTIONS customOptions;

            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            bParameterSpecified = AP1Config24GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP1Config5GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP2Config24GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP2Config5GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;

            if (!bParameterSpecified)
            {
                // No parameters specified. Dont run the test
                return;
            }

            customOptions = (ROAM_TEST_OPTIONS)sConfig.WlanTestOptions;
            if (customOptions == 0)
            {
                customOptions = ROAM_TEST_OPTIONS.SuddenLossOfSignal;
            }

            WhckRoaming.Roam(sConfig,
                             AP1Config24GHz,
                             AP1Config5GHz,
                             AP2Config24GHz,
                             AP2Config5GHz,
                             customOptions);
        }
Ejemplo n.º 4
0
        public void Roam_WPA2_ENTERPRISE_TTLS_TKIP_AES()    // Enterprise TTLS
        {
            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            AP1Config24GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP1Config24GHz.Cipher  = EncryptionMethod.TKIP;
            AP1Config24GHz.Phy     = PhyType.g;
            AP1Config24GHz.Channel = 11;

            // Only first Enterprise AP's settings are used
            AP1Config24GHz.EapPhase1Type = SUPPORTED_PHASE1_TYPE.EAP_TTLS;
            AP1Config24GHz.EapPhase2Type = SUPPORTED_PHASE2_TYPE.EAP_MSCHAPV2;

            AP1Config5GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP1Config5GHz.Cipher  = EncryptionMethod.AES;
            AP1Config5GHz.Phy     = PhyType.a;
            AP1Config5GHz.Channel = 40;

            AP2Config24GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP2Config24GHz.Cipher  = EncryptionMethod.TKIP;
            AP2Config24GHz.Phy     = PhyType.g;
            AP2Config24GHz.Channel = 1;

            AP2Config5GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP2Config5GHz.Cipher  = EncryptionMethod.AES;
            AP2Config5GHz.Phy     = PhyType.n;
            AP2Config5GHz.Channel = 36;

            WhckRoaming.Roam(sConfig,
                             AP1Config24GHz,
                             AP1Config5GHz,
                             AP2Config24GHz,
                             AP2Config5GHz,
                             ROAM_TEST_OPTIONS.SuddenLossOfSignal | ROAM_TEST_OPTIONS.GradualDropOfSignal);
        }
        public static void Roam(RunTimeConfiguration rc,
                                APConfigParameter AP1Config24GHz,
                                APConfigParameter AP1Config5GHz,
                                APConfigParameter AP2Config24GHz,
                                APConfigParameter AP2Config5GHz,
                                ROAM_TEST_OPTIONS RoamTestOptions)
        {
            WlanHckTestLogger traceProvider = new WlanHckTestLogger("RoamingDriver");

            using (UsingGroup g = new UsingGroup())
            {
                traceProvider.LogComment("Roaming Scenarios Begin");

                try
                {
                    WhckRoaming hckRoaming = new WhckRoaming(rc,
                                                             AP1Config24GHz,
                                                             AP1Config5GHz,
                                                             AP2Config24GHz,
                                                             AP2Config5GHz,
                                                             RoamTestOptions);

                    g.Add(hckRoaming);


                    if (RoamTestOptions.HasFlag(ROAM_TEST_OPTIONS.SuddenLossOfSignal))
                    {
                        string scenarioName = "Roaming " + ROAM_TEST_OPTIONS.SuddenLossOfSignal.ToString();
                        Helpers.LogVariationStart(scenarioName, scenarioName);

                        traceProvider.LogComment("Testing sudden loss of Signal");
                        hckRoaming.SuddenLossOfSignal();
                        Helpers.LogVariationStop(scenarioName);
                    }

                    if (RoamTestOptions.HasFlag(ROAM_TEST_OPTIONS.SuddenDropOfSignal))
                    {
                        string scenarioName = "Roaming " + ROAM_TEST_OPTIONS.SuddenDropOfSignal.ToString();
                        Helpers.LogVariationStart(scenarioName, scenarioName);

                        traceProvider.LogComment("Testing sudden drop of Signal");
                        hckRoaming.SuddenDropOfSignal();
                        Helpers.LogVariationStop(scenarioName);
                    }

                    if (RoamTestOptions.HasFlag(ROAM_TEST_OPTIONS.GradualDropOfSignal))
                    {
                        string scenarioName = "Roaming " + ROAM_TEST_OPTIONS.GradualDropOfSignal.ToString();
                        Helpers.LogVariationStart(scenarioName, scenarioName);

                        traceProvider.LogComment("Testing gradual drop of Signal");
                        hckRoaming.GradualDropOfSignal();
                        Helpers.LogVariationStop(scenarioName);
                    }

                    if (RoamTestOptions.HasFlag(ROAM_TEST_OPTIONS.GradualLossOfSignal))
                    {
                        string scenarioName = "Roaming " + ROAM_TEST_OPTIONS.GradualLossOfSignal.ToString();
                        Helpers.LogVariationStart(scenarioName, scenarioName);

                        traceProvider.LogComment("Testing gradual loss of Signal");
                        hckRoaming.GradualLossOfSignal();
                        Helpers.LogVariationStop(scenarioName);
                    }
                }
                catch (Exception e)
                {
                    traceProvider.LogError("Error - " + e.Message);
                    throw;
                }
            }
        }