Пример #1
0
        private static void executeTestSuite(
            string testSuiteFile,
            string testPropertiesFile,
            string testPerformanceFile,
            string testListenersFile,
            bool suppressExecution)
        {
            initializeTestProperties(testPropertiesFile);

            var testSuite = initializeTestSuite(testSuiteFile);

            if (null == testSuite)
            {
                LogEvent.Info("Exiting Quintity TestFramework TestConsole");

                exitCode = ExitCode.TestSuiteError;

                return;
            }

            if (!initializeTestListeners(testListenersFile))
            {
                LogEvent.Info(message: "Exiting Quintity TestFramework TestConsole");

                exitCode = ExitCode.TestListenersError;

                return;
            }

            var testProfile = initializeTestProfile(testPerformanceFile);

            var executor = new Quintity.TestFramework.Runtime.TestExecutor();

            executor.ExecuteTestSuite(testSuite, null, testProfile, TestListeners.TestListenerCollection, suppressExecution);

            LogEvent.Info(message: "Waiting for test listeners to complete");

            manualReset.WaitOne();

            Console.WriteLine($"{Environment.NewLine}Press any key to continue...");
            Console.ReadLine();

            LogEvent.Info(message: "Exiting Quintity TestFramework TestConsole");
            Thread.Sleep(1000);
        }
        private static void executeTestSuite(
            string testSuiteFile,
            string testPropertiesFile,
            string testPerformanceFile,
            string testListenersFile,
            bool suppressExecution)
        {
            initializeTestProperties(testPropertiesFile);

            var testSuite = initializeTestSuite(testSuiteFile);

            if (null == testSuite)
            {
                LogEvent.Info("Exiting Quintity TestFramework Runtime");

                exitCode = ExitCode.TestSuiteError;

                return;
            }

            if (!initializeTestListeners(testListenersFile))
            {
                LogEvent.Info(message: "Exiting Quintity TestFramework Runtime");

                exitCode = ExitCode.TestListenersError;

                return;
            }

            var testProfile = initializeTestProfile(testPerformanceFile);

            var executor = new Quintity.TestFramework.Runtime.TestExecutor();

            executor.ExecuteTestSuite(testSuite, null, testProfile, TestListeners.TestListenerCollection, suppressExecution);

            LogEvent.Info(message: "Waiting for test listeners to complete");

            manualReset.WaitOne();

            LogEvent.Info(message: "Exiting Quintity TestFramework Runtime");
        }
Пример #3
0
 private void TestExecutor_OnExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args)
 {
     _listenerEventsClient?.OnTestExecutionBegin(args);
 }
Пример #4
0
 internal static void fireExecutionCompleteEvent(TestExecutor testExecutor, TestExecutionCompleteArgs args)
 {
     OnExecutionComplete?.Invoke(testExecutor, args);
 }
Пример #5
0
 internal static void fireExecutionBeginEvent(TestExecutor testExecutor, TestExecutionBeginArgs args)
 {
     OnExecutionBegin?.Invoke(testExecutor, args);
 }
Пример #6
0
        private static void TestExecutor_OnExecutionComplete(TestExecutor testExecutor, TestExecutionCompleteArgs args)
        {
            LogEvent.Info("Test execution complete");

            manualReset.Set();
        }
Пример #7
0
        private static void TestExecutor_OnExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args)
        {
            initialTestSuite = args.TestScriptObject as TestSuite;

            LogEvent.Info($"Beginnning execution of test suite \"{initialTestSuite.Title}\"");
        }
Пример #8
0
 private static void TestExecutor_OnTestListenersComplete(TestExecutor testExecutor)
 {
     LogEvent.Info("TestListeners executon complete");
 }
Пример #9
0
 public abstract void OnTestExecutionComplete(TestExecutor testExecutor, TestExecutionCompleteArgs args);
Пример #10
0
 public abstract void OnTestExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args);