// ------------------------------------------------------------------------------------ // Test Execution // Start an individual test (called by TestRunner) public void StartTest(TestEntry inputTest, RunnerType runnerType) { Console.Instance.Write(DebugLevel.Logic, MessageLevel.Log, "Starting test " + inputTest.testName); // Write to console activeTest = SuiteManager.GetTest(inputTest); // Get the active test TestLogicBase activeTestLogic = GetLogicInstance(SuiteManager.GetSuiteName(inputTest.suiteIndex), activeTest, inputTest); // Get active test logic instance StartCoroutine(activeTestLogic.SetupTest(inputTest, runnerType)); // Setup test }
// ------------------------------------------------------------------------------------ // Test Execution // Start an individual test (called by TestRunner) public void StartTest(TestEntry inputTest, RunnerType runnerType) { Console.Instance.Write(DebugLevel.Logic, MessageLevel.Log, "Starting test " + inputTest.testName); // Write to console TestLogicBase activeTestLogic = null; if (!isAnalytic) // If not analytic mode { activeTest = SuiteManager.GetTest(inputTest); // Get the active test from suite manager activeTestLogic = GetLogicInstance(SuiteManager.GetSuiteName(inputTest.suiteIndex), inputTest); // Get active test logic instance } else { activeTest = Common.GenerateTestFromTestEntry(inputTest); // Get the active test from structure activeTestLogic = GetLogicInstance(TestStructure.Instance.GetSuiteNameFromIndex(inputTest.suiteIndex), inputTest); // Get active test logic instance } StartCoroutine(activeTestLogic.SetupTest(inputTest, runnerType)); // Setup test }