예제 #1
0
        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;
        }
예제 #2
0
        public static void PrepareUnitTestDataStore()
        {
            PSCmdletBase.UnitTestMode = true;

            if (0 < UnitTestOutput.Count)
            {
                UnitTestOutput.Clear();
            }

            TLAddinData.CurrentTestLinkConnection = null;
        }
예제 #3
0
        public static void PrepareUnitTestDataStore()
        {
            PSCmdletBase.UnitTestMode = true;

            if (0 < UnitTestOutput.Count)
            {
                UnitTestOutput.Clear();
            }

            CurrentData.ResetData();
        }
예제 #4
0
 public static void PrepareUnitTestDataStore()
 {
     PSCmdletBase.UnitTestMode = true;
     if (0 < UnitTestOutput.Count)
     {
         UnitTestOutput.Clear();
     }
     TestData.ResetData();
     // 20141117
     TestData.AlreadyInitialized = false;
     TestData.InitTestData();
 }
예제 #5
0
        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();
        }
예제 #6
0
        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;
        }