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"); }
private void TestExecutor_OnExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args) { _listenerEventsClient?.OnTestExecutionBegin(args); }
internal static void fireExecutionCompleteEvent(TestExecutor testExecutor, TestExecutionCompleteArgs args) { OnExecutionComplete?.Invoke(testExecutor, args); }
internal static void fireExecutionBeginEvent(TestExecutor testExecutor, TestExecutionBeginArgs args) { OnExecutionBegin?.Invoke(testExecutor, args); }
private static void TestExecutor_OnExecutionComplete(TestExecutor testExecutor, TestExecutionCompleteArgs args) { LogEvent.Info("Test execution complete"); manualReset.Set(); }
private static void TestExecutor_OnExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args) { initialTestSuite = args.TestScriptObject as TestSuite; LogEvent.Info($"Beginnning execution of test suite \"{initialTestSuite.Title}\""); }
private static void TestExecutor_OnTestListenersComplete(TestExecutor testExecutor) { LogEvent.Info("TestListeners executon complete"); }
public abstract void OnTestExecutionComplete(TestExecutor testExecutor, TestExecutionCompleteArgs args);
public abstract void OnTestExecutionBegin(TestExecutor testExecutor, TestExecutionBeginArgs args);