Esempio n. 1
0
        public void TestCleanup()
        {
            JDISettings.Logger.Info($@"
Test run finished.
Total test run time: {_timer.TimePassed.ToString(@"hh\:mm\:ss\.fff")}");
            WinProcUtils.KillAllRunWebDrivers();
        }
Esempio n. 2
0
 public void SetUp()
 {
     WebSettings.InitNUnitDefault();
     JDISettings.Logger.Info("Init test run");
     WinProcUtils.KillAllRunWebDrivers();
     Site = new EpamSiteP().Init <EpamSiteP>();
     Site.HomePage.Open();
     JDISettings.Logger.Info("Run Tests");
 }
Esempio n. 3
0
 public static void Init(TestContext context)
 {
     WebSettings.InitMsTestDefault();
     JDISettings.Logger.Info("Init test run");
     WinProcUtils.KillAllRunWebDrivers();
     _timer = new Timer();
     WebSite.Init(typeof(EpamSite));
     EpamSite.HomePage.Open();
     JDISettings.Logger.Info("Run Tests");
 }
Esempio n. 4
0
 public void Init()
 {
     WebSettings.InitNUnitDefault();
     JDISettings.Logger.Info("Init test run");
     WinProcUtils.KillAllRunWebDrivers();
     _timer = new Timer();
     WebSite.Init(typeof(EpamSite));
     WebSite.Open();
     JDISettings.Logger.Info("Run Tests");
 }
Esempio n. 5
0
        protected void SetUp()
        {
            WebSettings.InitNUnitDefault();
            ILogger logger = WebSettings.Logger;

            logger.Info("Init test run...");
            WinProcUtils.KillAllRunWebDrivers();
            WebSite.Init(typeof(TestSite));
            TestSite.HomePage.Open();
            logger.Info("Run test...");
        }
Esempio n. 6
0
        public void Init()
        {
            InitNUnitDefault();
            Logger.Info("Init test run");
            WinProcUtils.KillAllRunWebDrivers();

            if (!DriverFactory.HasDrivers())
            {
                UseDriver(DriverTypes.Chrome);
            }

            WebSite.Init(typeof(W3CSite));
            Logger.Info("Run Tests");
        }
Esempio n. 7
0
        protected void SetUp()
        {
            WebSettings.InitNUnitDefault();
            var logger = JDISettings.Logger;

            logger.Info("Init test run...");
            WinProcUtils.KillAllRunWebDrivers();
            WebSite.Init(typeof(TestSite));
            TestSite.HomePage.Open();
            TestSite.LoginForm.Submit(User.DefaultUser);
            logger.Info("Run test...");
            logger.Info("Navigating to Metals and Colors page.");
            MetalsColorsPage.Open();
            MetalsColorsPage.CheckTitle();
            MetalsColorsPage.IsOpened();
        }
        public static void Setup()
        {
            Timer _timer = new Timer();

            WebSettings.InitNUnitDefault();
            WinProcUtils.KillAllRunWebDrivers();

            if (!JDISettings.DriverFactory.HasDrivers())
            {
                WebSettings.UseDriver(DriverTypes.Chrome);
            }
            _timer = new Timer();

            WebDriver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
            WebDriver.Manage().Timeouts().SetPageLoadTimeout(TimeSpan.FromSeconds(5));
            WebDriver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(5));

            WebSite.Init(typeof(EbaySite));
        }
Esempio n. 9
0
 protected void TearDown()
 {
     // Some log outputs
     WinProcUtils.KillAllRunWebDrivers();
 }
Esempio n. 10
0
 public void TestCleanup()
 {
     WinProcUtils.KillAllRunWebDrivers();
 }