Ejemplo n.º 1
0
        private void Stop()
        {
            _logger.Debug("ContinuousTestRunner.Stop()");
            ConsoleTestCompleteMessage.WriteOutCompletionStatement(_testResultAggregator.CurrentReport, _startOfRun);
            _webBrowser.Stop();
            IsCurrentlyRunningTest = false;

            _eventSubscriptionManager.RemoveListener(_testResultAggregator);
            _testResultAggregator.Dispose();
            _testResultAggregator = null;
        }
Ejemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         foreach (var browser in _webBrowsers)
         {
             browser.Dispose();
         }
         _eventSubscriptionManager.RemoveListener(this);
         _eventSubscriptionManager.RemoveListener(_testResultAggregator);
         _browserThreadWaitHandle.Close();
         _testResultAggregator.Dispose();
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _eventSubscriptionManager.RemoveListener(this);
     }
 }
Ejemplo n.º 4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _eventSubscriptionManager.RemoveListener(_testResultAggregator);
         _testResultAggregator.Dispose();
     }
 }
Ejemplo n.º 5
0
        public override TestReport Run()
        {
            _eventSubscriptionManager.AddListener(_teamCityTestResultHandler);

            _teamCityTestResultHandler.PublishStart();

            var testReport = base.Run();

            _teamCityTestResultHandler.PublishStop();

            _eventSubscriptionManager.RemoveListener(_teamCityTestResultHandler);
            return(testReport);
        }