public void SetUp() { ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Manage().Window.Maximize(); DriverFactory.INSTANCE.Navigate().GoToUrl(Properties.Settings.Default.DEFAUL_APPLICATION_URL); #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 }
public void OneTimeSetUp() { ExtentReportHelpers.CreateReport(); DriverFactory.CreateInstance(); ExtentReportHelpers.AddTest(); DriverFactory.INSTANCE.Navigate().GoToUrl(GlobalParameters.CONFIG_DEFAULT_APPLICATION_URL); #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 }
public void SetUp() { ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); wait = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(GlobalParameters.CONFIG_DEFAULT_TIMEOUT_IN_SECONDS)); #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 }
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 }
public void NavegadorChrome() { #region string nomeProjeto = "Project " + GeneralHelpers.ReturnStringWithRandomNumbers(3); string descricao = "Descrição gerada através de execução automática"; #endregion ProjectsDBSteps.CreateProject(nomeProjeto, descricao); ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Url = "http://192.168.99.100:8989/login_page.php"; DriverFactory.INSTANCE.Manage().Window.Maximize(); #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 }
public void SetUp() { //Zera algumas tabelas do banco ao iniciar um teste DeleteChargesDBSteps.SetUpDB(); //cria um projeto ao iniciar um teste ProjectDBSteps.CriarProjetoBD("Test " + GeneralHelpers.ReturnStringWithRandomCharacters(3), "Descricao " + GeneralHelpers.ReturnStringWithRandomCharacters(3)); ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Manage().Window.Maximize(); DriverFactory.INSTANCE.Navigate().GoToUrl(Properties.Settings.Default.DEFAUL_APPLICATION_URL); #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 }
public void Setup() { ExtentReportHelpers.AddTest(); DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Navigate().GoToUrl(BuilderJson.ReturnParameterAppSettings("DEFAULT_APPLICATION_URL")); }
public void SetUp() { ExtentReportHelpers.AddTest(); }
//issueDefaultParameters.description = "Teste Inserção Parâmetro"; //precisar inserir informação diferente da defaul //string variable = Environment.GetEnvironmentVariable("\\nomedavariaveldeambiente"); //retorna uma variável de ambiente criada #endregion parametersandinstance #region constructor public CreateIssueTests(ITestOutputHelper output) : base(output) { XunitContext.EnableExceptionCapture(); ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName); tokenNumber.GenerateToken(out token); //váriaveis out no lugar de array }
public FindIssueTests(ITestOutputHelper output) : base(output) { XunitContext.EnableExceptionCapture(); ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName); tokenNumber.GenerateToken(out token); }
public static void BeforeScenario() { ExtentReportHelpers.AddTest(); }
public void Setup() { ExtentReportHelpers.AddTest(); //Ciar o Report com os dados do teste DriverFactory.CreateInstance(); DriverFactory.INSTANCE.Navigate().GoToUrl(ConfigurationManager.AppSettings["URL"].ToString()); }
public void SetUp() { ProjetoDBSteps.LimparProjeto(); ExtentReportHelpers.AddTest(); ProjetoDBSteps.CriarProjeto(); }