Ejemplo n.º 1
0
        //Excuting the tests
        private void Execute()
        {
            var tokenSource = new CancellationTokenSource();
            var token       = tokenSource.Token;

            UpdateConfig.SetEnivromnet(comboBox4.SelectedItem.ToString());
            try
            {
                Task t1 = Task.Factory.StartNew(() =>
                {
                    TestSuiteManager TestManager = new TestSuiteManager();
                    TestManager.StartRun(_settings);
                    //EnableButton(true);
                    //TCResult TCResult = new TCResult(TestManager.TestStartInfo);
                    //TCResult.PublicResult();
                });
                Task t2 = Task.Factory.StartNew(() =>
                {
                    MyLogger.LogAdded += SetText;
                });
            }
            catch
            {
            }
        }
Ejemplo n.º 2
0
 private void ExecuteSuite()
 {
     try
     {
         UpdateConfig.LoadConfig();
         UpdateConfig.SetEnivromnet(_environment);
         SWATTestManager TestManager = new SWATTestManager();
         TestManager.TestCaseStatusChanged += OnTestCaseCompletion;
         TestManager.StartRun(_settings);
     }
     catch
     {
     }
 }
Ejemplo n.º 3
0
        public void BasicRun()
        {
            UpdateConfig.LoadConfig();
            UpdateConfig.SetEnivromnet("STAGING");
            SelectedSettings _settings = new SelectedSettings
            {
                Application     = "CLAW",
                Environment     = "STAGING",
                Browser         = "CHROME",
                BulkSuite       = null,
                isBulkExecution = false,
                Suite           = @"\SMOKETESTS\03_ADMIN",
                PublishResult   = false
            };
            TestSuiteManager TestManager = new TestSuiteManager();

            Assert.IsTrue(TestManager.StartRun(_settings));
        }