Exemple #1
0
        public void ExecuteBeforeEveryTestMethod()
        {
            var sauceConfig = new SauceLabsCapabilities();

            sauceConfig.IsDebuggingEnabled = true;
            Driver         = new WebDriverFactory().CreateSauceDriver(_browser, _browserVersion, _osPlatform, sauceConfig);
            _sauceReporter = new SauceJavaScriptExecutor(Driver);
            _sauceReporter.SetTestName(TestContext.CurrentContext.Test.Name);
        }
        public void Setup()
        {
            _sauceCaps = new SauceLabsCapabilities();
            SauceLabsCapabilities.BuildName = "actWaitAct";
            _sauceCaps.IsDebuggingEnabled   = true;
            _driver = new WebDriverFactory(_sauceCaps).CreateSauceDriver(_browser, _browserVersion, _osPlatform);

            _sauceLogger = new SauceJavaScriptExecutor(_driver);
        }
Exemple #3
0
        private void SetupTest(string browser, string version, string osVersion)
        {
            var sauceConfig = new SauceLabsCapabilities {
                IsDebuggingEnabled = true
            };

            Driver        = new WebDriverFactory(sauceConfig).CreateSauceDriver(browser, version, osVersion);
            SauceReporter = new SauceJavaScriptExecutor(Driver);
            SauceReporter.SetTestName(TestContext.TestName);
        }
        public void ExecuteBeforeEveryTestMethod()
        {
            SauceConfig = new SauceLabsCapabilities
            {
                IsDebuggingEnabled = bool.Parse(ConfigurationManager.AppSettings["isExtendedDebuggingEnabled"]),
                IsHeadless         = false
            };

            Driver        = new WebDriverFactory(SauceConfig).CreateSauceDriver(_browser, _browserVersion, _osPlatform);
            SauceReporter = new SauceJavaScriptExecutor(Driver);
            SauceReporter.SetTestName(TestContext.CurrentContext.Test.Name);
            SauceReporter.SetBuildName("ParallelizationWithoutStatic");
        }
Exemple #5
0
        public void ExecuteBeforeEveryTestMethod()
        {
            SauceConfig = new SauceLabsCapabilities
            {
                IsDebuggingEnabled = false,
                IsHeadless         = bool.Parse(ConfigurationManager.AppSettings["sauceHeadless"])
            };
            SauceLabsCapabilities.BuildName = ConfigurationManager.AppSettings["buildName"];

            Driver        = new WebDriverFactory(SauceConfig).CreateSauceDriver(_browser, _browserVersion, _osPlatform);
            SauceReporter = new SauceJavaScriptExecutor(Driver);
            SauceReporter.SetTestName(TestContext.CurrentContext.Test.Name);
            SauceReporter.SetBuildName(SauceLabsCapabilities.BuildName);
        }
Exemple #6
0
        public void ExecuteBeforeEveryTestMethod()
        {
            var sauceConfig = new SauceLabsCapabilities {
                IsDebuggingEnabled = true
            };

            SauceLabsCapabilities.BuildName = _sauceBuildName;
            //TODO move into external config
            //TODO add a factory method to create this driver easily

            Driver        = new WebDriverFactory(sauceConfig).CreateSauceDriver(_browser, _browserVersion, _osPlatform);
            SauceReporter = new SauceJavaScriptExecutor(Driver);
            SauceReporter.SetTestName(TestContext.CurrentContext.Test.Name);
            SauceReporter.SetBuildName("parallel-noSC");
            _isUsingSauceLabs = true;
        }