Ejemplo n.º 1
0
        public virtual TestReport Run()
        {
            DateTime startOfRun = DateTime.Now;

            _logger.Information("{1}{1}Starting Test Run: {0}{1}{1}"
                                .FormatWith(DateTime.Now, Environment.NewLine));

            _webServer.Start();
            foreach (var browser in _webBrowsers)
            {
                browser.Start();
            }
            _dialogMonitorRunner.Start();

            _browserThreadWaitHandle.WaitOne();

            _dialogMonitorRunner.Stop();
            foreach (var browser in _webBrowsers)
            {
                browser.Stop();
            }
            _webServer.Stop();

            var testReport = _testResultAggregator.CurrentReport;

            ConsoleTestCompleteMessage.WriteOutCompletionStatement(testReport, startOfRun);
            return(testReport);
        }
Ejemplo n.º 2
0
        public virtual TestReport Run()
        {
            _logger.Information("{1}{1}Starting Test Run: {0}{1}{1}"
                                .FormatWith(DateTime.Now, Environment.NewLine));

            _webServer.Start();
            foreach (var browser in _webBrowsers)
            {
                browser.Start();
            }
            _dialogMonitorRunner.Start();

            _browserThreadWaitHandle.WaitOne();

            _dialogMonitorRunner.Stop();
            foreach (var browser in _webBrowsers)
            {
                browser.Stop();
            }
            _webServer.Stop();

            var testReport = _testResultAggregator.CurrentReport;

            return(testReport);
        }