Beispiel #1
0
        /// <summary>The open browser.</summary>
        /// <param name="html">The html.</param>
        public void OpenBrowser(string html)
        {
            this.Logger.Trace("Browser Setup");
            var testSettings = TestSettings.Instance;

            this.TestingFramework = FrameworkLoader.GetInitializedFrameworkInstance();
            this.TestingFramework.Initialize(TestSettings.Instance.Browser, string.Empty);
            this.Browser = this.TestingFramework.Browser;
            ((HtmlDocument)this.Browser.NativeBrowser).LoadHtml(html);
        }
Beispiel #2
0
        public void OpenBrowser()
        {
            this.Logger.Trace("Browser Setup");
            var testSettings = TestSettings.Instance;

            this.TestingFramework = FrameworkLoader.GetInitializedFrameworkInstance();
            this.BaseUrl          = testSettings.BaseUrl;
            //this.TestingFramework.Initialize(TestSettings.Instance.Browser, this.BaseUrl);
            this.Browser  = this.TestingFramework.Browser;
            browserOpened = true;
        }
        /// <summary>Initializes a new instance of the <see cref="BaseTests"/> class.</summary>
        /// <param name="newBrowserPerIteration">The run Browser Per Iteration.</param>
        protected BaseTests(bool newBrowserPerIteration)
        {
            var testSettings = TestSettings.Instance;

            this.TestingFramework       = FrameworkLoader.LoadFrameworkInstance(testSettings.Provider.Assembly, testSettings.Provider.Type);
            this.BaseUrl                = testSettings.BaseUrl;
            this.newBrowserPerIteration = newBrowserPerIteration;
            var remoteagentnlog = new RemoteNlogHelper();

            remoteagentnlog.EnableRemoteUDPLogger();
            this.logger = new Logger();
            TestRunnerEventHandler.TestRunnerExceptionOccured += this.TestRunnerExceptionOccured;
        }