예제 #1
0
        public static void BeforeScenario()
        {
            ExcelData.ReadData();
            extent.AttachReporter(reporter);
            reporter.LoadConfig("extent-config.xml");
            test     = extent.CreateTest(ScenarioContext.Current.ScenarioInfo.Title);
            feature  = test.CreateNode <Feature>(FeatureContext.Current.FeatureInfo.Title);
            scenario = feature.CreateNode <Scenario>(ScenarioContext.Current.ScenarioInfo.Title);

            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionEventHandler;

            LogMsg.Info("Starting Test Case: " + ScenarioContext.Current.ScenarioInfo.Title);

            Driver.Session = DriverFactory.GetNewDriver(Config.DriverType);
            //Driver.Session.Manage().Window.Maximize();
            //Driver.Session.Navigate().GoToUrl(Config.BaseUrl);
        }
예제 #2
0
 public static void BeforeDataDrivenTest()
 {
     Driver.Session = DriverFactory.GetNewDriver(Config.DriverType);
     //Driver.Session.Manage().Window.Maximize();
     //Driver.Session.Navigate().GoToUrl(Config.BaseUrl);
 }