Example #1
0
 public void Initialize()
 {
     if (DriverFactory.INSTANCE == null)
     {
         DriverFactory.InitializeDriver(ConfigurationManager.AppSettings["BROWSER"]);
         scenario   = featureName.CreateNode <Scenario>(ScenarioContext.Current.ScenarioInfo.Title);
         qntCenario = qntCenario + 1;
     }
 }
Example #2
0
        public void Initialize()
        {
            if (DriverFactory.INSTANCE == null)
            {
                DriverFactory.InitializeDriver(ConfigurationManager.AppSettings["BROWSER"]);

                //Metodos para instanciar as Pages no Steps Definitions via injeção de dependência
                this.ProxyGenerator = new ProxyGenerator();
                InjectPageObjects(CollectPageObjects(), null);

                //A linha abaixo pode ser descomentada, se excluir o método BeforeFeature
                //featureName = extent.CreateTest<Feature>(FeatureContext.Current.FeatureInfo.Title);
                scenario   = featureName.CreateNode <Scenario>(ScenarioContext.Current.ScenarioInfo.Title);
                qntCenario = qntCenario + 1;
            }
        }