public void OneTimeTearDown() { ExtentReportHelpers.GenerateReport(); //Limpa tabelas da DB no final do test MassaStartDBSteps.ClearMassaDeTestsDB(); }
public void SetUp() { //Limpa base se necessario retornar MassaStartDBSteps.ClearMassaDeTestsDB(); //Criar projeto via Querie ao iniciar execução //GerenciarProjetosDBSteps.CriarProjetoViaQuerieBD("Sprint Automacao " + GeneralHelpers.ReturnStringWithRandomNumbers(4),Automacao Web B2 -"); MassaStartDBSteps.CriaMassaDeTestesDB(); ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Manage().Window.Maximize(); DriverFactory.INSTANCE.Navigate().GoToUrl(ConfigurationManager.AppSettings["base_url"].ToString()); #region [AutoInstance] atribute methods calls to auto instace pages and flows //Necessário para realizar a instanciação automática das páginas e fluxos this.ProxyGenerator = new ProxyGenerator(); InjectPageObjects(CollectPageObjects(), null); #endregion }