Ejemplo n.º 1
0
        public MFTestResults VerifyServerConnectionCombinations()
        {
            //Create the SslTable
            SslTestTable  sslTestTable      = new SslTestTable(tmc.desktopIPAddress);
            MFTestResults overAllTestResult = MFTestResults.Pass;

            for (int i = 0; i < sslTestTable.sslServer.Length; i++)
            {
                MFTestResults testResult = MFTestResults.Pass;

                //This call is what launches the remote test case on the desktop.
                Log.Comment("Running Test Scenario number: " + i);

                if (tmc.RunTest("VerifyClientConnectionCombinations", i) == MFTestResults.Fail)
                {
                    return(MFTestResults.Fail);
                }

                SslServer sslServer = sslTestTable.sslServer[i];

                if (sslServer.RunServer() == MFTestResults.Fail)
                {
                    testResult = MFTestResults.Fail;
                }

                //This call gets the result from the remote test case. Also fails if the test previously failed somewhere prior to this.
                if (tmc.GetTestResult() == MFTestResults.Fail)
                {
                    testResult = MFTestResults.Fail;
                }


                if (testResult == MFTestResults.Pass)
                {
                    Log.Comment("VerifyConnectionCombinations iteration number: " + i + " Passed.");
                }
                else
                {
                    Log.Comment("VerifyConnectionCombinations iteration number: " + i + " Failed.");
                    overAllTestResult = MFTestResults.Fail;
                }
            }

            //if we get here we've passed all the tests successfully.
            return(overAllTestResult);
        }
Ejemplo n.º 2
0
        public MFTestResults VerifyServerConnectionCombinations()
        {
            //Create the SslTable
            SslTestTable sslTestTable = new SslTestTable(tmc.desktopIPAddress);
            MFTestResults overAllTestResult = MFTestResults.Pass;

            for (int i = 0; i < sslTestTable.sslServer.Length; i++)
            {
                MFTestResults testResult = MFTestResults.Pass;

                //This call is what launches the remote test case on the desktop.
                Log.Comment("Running Test Scenario number: " + i);

                if (tmc.RunTest("VerifyClientConnectionCombinations", i) == MFTestResults.Fail)
                    return MFTestResults.Fail;

                SslServer sslServer = sslTestTable.sslServer[i];

                if (sslServer.RunServer() == MFTestResults.Fail)
                    testResult = MFTestResults.Fail;

                //This call gets the result from the remote test case. Also fails if the test previously failed somewhere prior to this.
                if (tmc.GetTestResult() == MFTestResults.Fail)
                    testResult = MFTestResults.Fail;


                if (testResult == MFTestResults.Pass)
                    Log.Comment("VerifyConnectionCombinations iteration number: " + i + " Passed.");
                else
                {
                    Log.Comment("VerifyConnectionCombinations iteration number: " + i + " Failed.");
                    overAllTestResult = MFTestResults.Fail;
                }
            }

            //if we get here we've passed all the tests successfully.
            return overAllTestResult;
        }