Esempio n. 1
0
        public void BeforeScenario()
        {
            string feature = featureContext.FeatureInfo.Title;
            string cenario = scenarioContext.ScenarioInfo.Title;
            var    tags    = scenarioContext.ScenarioInfo.Tags;

            DriverFactory.initDriver("Chrome").Url = "https://mark7.herokuapp.com";
            Inicializacao init = new Inicializacao(DriverFactory.GetDriver());

            init.Realizarlogin();
            ExtentTestManager.CreateScenario(feature, cenario, $@"-- Tags:{string.Join(",", tags)}");
            container.RegisterInstanceAs <RemoteWebDriver>(DriverFactory.GetDriver());
        }
Esempio n. 2
0
 public static void DisposeDriver()
 {
     DriverFactory.RemoveCurrentThread();
 }