Exemplo n.º 1
0
        internal static void RunContinuityTests(Options options)
        {
            var test = new KvGPerformanceTest
            {
                RelativeUrl  = FcdRetrieveRequest(),
                IntervalTime = Options.PerformanceTestInterval,
                TestDuration = Options.PerformanceTestDuration
            };
            TestResultBase result1 = test.Test(options);

            result1.StepNr  = 1;
            result1.SubTest = "Continuity";
            Out.Info(result1.ToString());
        }
Exemplo n.º 2
0
        internal static void RunPerformanceTests(Options options)
        {
            var test = new KvGPerformanceTest
            {
                RelativeUrl  = FcdRetrieveRequestWithTime(),
                IntervalTime = Options.PerformanceTestInterval,
                TestDuration = Options.PerformanceTestDuration,
            };
            TestResultBase result1 = test.Test(options);

            result1.StepNr  = 1;
            result1.SubTest = "Performance";

            Out.Info(result1.ToString());

            // test 2
            if (test.GenerationTimeValid.Value)
            {
                Out.Info(new GenericTestResult
                {
                    SubTest          = "Performance",
                    StepNr           = 2,
                    ShortDescription = "Update interval " + FcdRetrieveRequest(),
                    Status           = TestResult.OK
                }.ToString());
            }
            else
            {
                Out.Info(new GenericTestResult
                {
                    SubTest          = "Performance",
                    StepNr           = 2,
                    ShortDescription = "Update interval " + FcdRetrieveRequest(),
                    Status           = TestResult.FAIL,
                    CauseOfFailure   = "Generation time did not update properly."
                }.ToString());
            }
        }