Esempio n. 1
0
        public CoreTest()
        {
            Inicializacao init = new Inicializacao();

            DriverFactory.GetDriver().Url = "https://mark7.herokuapp.com";

            init.Realizarlogin();
        }
Esempio n. 2
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());
        }