//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 { } }
private void ExecuteSuite() { try { UpdateConfig.LoadConfig(); UpdateConfig.SetEnivromnet(_environment); SWATTestManager TestManager = new SWATTestManager(); TestManager.TestCaseStatusChanged += OnTestCaseCompletion; TestManager.StartRun(_settings); } catch { } }
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)); }