public String InserirTarefa_RetornoSummary() { WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(3)); SeleniumMaps Maps = new SeleniumMaps(); GerarRandom gerarRandom = new GerarRandom(); String summary = gerarRandom.RandomString(); Maps.CBClick(cbCategory, "category_id", "[All Projects] app_14"); Maps.CBClick(cbReproducibility, "reproducibility", "N/A"); Maps.CBClick(cbPriority, "priority", "none"); Maps.PreencherCampo(tfPlatform, "platform", "teste1"); Maps.PreencherCampo(tfOs, "os", "teste2"); Maps.PreencherCampo(tfOs_Build, "os_build", "teste3"); Maps.CBClick(cbHandler, "handler_id", "administrator"); Maps.PreencherCampo(tfSummary, "summary", summary); Maps.PreencherCampo(tfdDescription, "description", "teste4"); Maps.PreencherCampo(tfSteps, "steps_to_reproduce", "teste4"); Maps.PreencherCampo(tfAdditional, "additional_info", "teste4"); Maps.ClicarBotao(btSubmit); return(summary); }
public String EditarProfile() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); GerarRandom gerarRandom = new GerarRandom(); String conteudo = gerarRandom.RandomString(); //método try catch para validar se foi possível acessar a tela inicial try { // Assert.AreEqual("Edit Account", _driver.FindElement(By.XPath("//form/table/tbody/tr/td")).Text); Maps.ClicarBotao(rBEdit); Maps.ClicarBotao(btSubmit); Maps.PreencherCampo(tfPlataform, "", conteudo); Maps.PreencherCampo(tfOs, "", conteudo); Maps.PreencherCampo(tfOsBuild, "", conteudo); Maps.ClicarBotao(btUpdateProfileEdicao); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } return(conteudo); }
public void Manage_CriarCategoriaDuplicada() { LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); ManagePageObjects managePageObjects = new ManagePageObjects(); GerarRandom gerarRandom = new GerarRandom(); String categoria = gerarRandom.RandomString(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.AcessarAbaManage(); managePageObjects.VerificarAccessoAbaManage(); managePageObjects.AcessarManageProjects(); managePageObjects.InserirCategoriaDuplicada(categoria); Assert.Pass(); }
public String MakeDefault() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); GerarRandom gerarRandom = new GerarRandom(); String conteudo = gerarRandom.RandomString(); //método try catch para validar se foi possível acessar a tela inicial try { // Assert.AreEqual("Edit Account", _driver.FindElement(By.XPath("//form/table/tbody/tr/td")).Text); //Maps.ClicarBotao(rBMakeDefault); DriverFactory.INSTANCE.FindElement(By.XPath("(//input[@name='action'])[3]")).Click(); Maps.ClicarBotao(btSubmit); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } return(conteudo); }