public static void PrepareUnitTestDataStore() { try { WebDriverFactory.Container.Resolve <StartSeChromeCommand>(); } catch { CommonCmdletBase.ModuleAlreadyLoaded = false; } if (!CommonCmdletBase.ModuleAlreadyLoaded) { WebDriverFactory.AutofacModule = new FakeWebDriverModule(); WebDriverFactory.Init(); CommonCmdletBase.ModuleAlreadyLoaded = true; } CurrentData.InitUnconditional(); PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } IWebDriver webDriver = new FakeWebDriver(); CurrentData.CurrentWebDriver = webDriver; }
public static void PrepareUnitTestDataStore() { PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } TLAddinData.CurrentTestLinkConnection = null; }
public static void PrepareUnitTestDataStore() { PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } CurrentData.ResetData(); }
public static void PrepareUnitTestDataStore() { PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } TestData.ResetData(); // 20141117 TestData.AlreadyInitialized = false; TestData.InitTestData(); }
public static void PrepareUnitTestDataStore() { PSCmdletBase.UnitTestMode = true; // if (null != Tmx.CommonCmdletBase.UnitTestOutput && 0 < Tmx.CommonCmdletBase.UnitTestOutput.Count) { // Tmx.CommonCmdletBase.UnitTestOutput.Clear(); // } if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } //TLAddinData.CurrentTestLinkConnection = null; TestData.ResetData(); }
public static void PrepareModuleTests() { PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } TestData.ResetData(); ClientsCollection.Clients.Clear(); TaskPool.Tasks.Clear(); TaskPool.TasksForClients.Clear(); var clientSettings = ClientSettings.Instance; clientSettings.ResetData(); WorkflowCollection.Workflows.Clear(); TestRunQueue.TestRuns.Clear(); TestLabCollection.TestLabs.Clear(); var testLabCollection = new TestLabCollection(); Preferences.ClientRegistrationSleepIntervalMilliseconds = 0; Preferences.ReceivingTaskSleepIntervalMilliseconds = 0; }