public void VerificaStatus(String status) { WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(3)); SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(txtStatus, status, ""); }
public void VerificaAtribuicaoSayoan() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); Maps.VerificarItem(txtVerificaAssignSayoan, "sayoan.oliveira", ""); }
public void VerificaAcessoLogin() { //implementar SeleniumMaps Maps = new SeleniumMaps(); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(txtUsername, "Username", ""); Maps.VerificarItem(txtPassword, "Password", ""); } catch (Exception e) { Assert.Fail(e.ToString()); } }
public void Verifica_IssueVazia() { SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(tfErro, "A number was expected for bug_id.", ""); //Assert.AreEqual("A number was expected for bug_id.", _driver.FindElement(By.XPath("//p")).Text); }
public void VerificarCampoObrigatorio() { WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); SeleniumMaps Maps = new SeleniumMaps(); //veriricar espera //método try catch para validar se foi possível acessar a tela inicial try { btSubmit.Click(); Maps.VerificarItem(txtError, "APPLICATION ERROR #11", ""); Maps.VerificarItem(ltReportIssue, "Report Issue", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void ValidacaoIssueInexiste(string ID) { SeleniumMaps Maps = new SeleniumMaps(); try { String texto = "Issue " + ID + " not found."; Maps.VerificarItem(tfErro, texto, ""); //Assert.AreEqual("A number was expected for bug_id.", _driver.FindElement(By.XPath("//p")).Text); } catch (Exception e) { } }
public void VerificaAcessoViewIssues() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(ltReporter, "Reporter:", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificarAccessoAbaManage() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(ltManageVerifica, "Manage Projects", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificarFeedbackErro2() { //implementar SeleniumMaps Maps = new SeleniumMaps(); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(txtFalha2, "The provided information does not match any registered account!", ""); } catch (Exception e) { Assert.Fail(e.ToString()); } }
public void VerificarAcessoAbaMyAccount() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //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.VerificarItem(editAccount, "Edit Account", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificarFeedbackErro1() { //implementar SeleniumMaps Maps = new SeleniumMaps(); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(txtFalha1, "Invalid e-mail address.", ""); } catch (Exception e) { Assert.Fail(e.ToString()); } }
public void VerificaAssign(String status) { WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(3)); SeleniumMaps Maps = new SeleniumMaps(); String ID = ""; try { //Maps.CBClick(cbStatus, "status", status); //revisar funcao do combobox Maps.VerificarItem(tfAssign, status, ""); } catch (Exception e) { } }
public void VerificarEmailEnviado() { //implementar SeleniumMaps Maps = new SeleniumMaps(); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(txtEmailEnviado, "Password Message Sent", ""); } catch (Exception e) { Assert.Fail(e.ToString()); } }
public void VerificarAcessaLogin() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { //NUnit.Framework.Assert.AreEqual("My View", ltMyView.Text); Maps.VerificarItem(ltMyView, "My View", ""); // NUnit.Framework.Assert.AreEqual("My View", _driver.FindElement(By.LinkText("My View")).Text); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificaAcessoMyView() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //espera.Until(ExpectedConditions.ElementToBeClickable(ltCategory)); //método try catch para validar se foi possível acessar a tela inicial try { //Assert.AreEqual("Assigned to Me (Unresolved)", _driver.FindElement(By.LinkText("Assigned to Me (Unresolved)")).Text); Maps.VerificarItem(ltUnsolved, "Unassigned", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificaCampoObrigatorioOsBuild() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.VerificarItem(txtFalhaPlatform, "A necessary field \"Version\" was empty. Please recheck your inputs.", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void InserirCategoria_Duplicada(String categoria) { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.PreencherCampo(tfCategory, "", categoria); Maps.ClicarBotao(btAddCategory); Maps.VerificarItem(txtErroDuplicado, "A category with that name already exists.", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void InserirCategoriaVazia(String categoria) { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.PreencherCampo(tfCategory, "", categoria); Maps.ClicarBotao(btAddCategory); Maps.VerificarItem(txtErroCategory, "A necessary field \"Category\" was empty. Please recheck your inputs.", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificaPermalink() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { //trocar de aba var browserTabs = DriverFactory.INSTANCE.WindowHandles; DriverFactory.INSTANCE.SwitchTo().Window(browserTabs[1]); Maps.VerificarItem(txtPermalink2, "Create Short Link", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void FiltrarSemRetorno() { SeleniumMaps Maps = new SeleniumMaps(); WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); //método try catch para validar se foi possível acessar a tela inicial try { Maps.PreencherCampo(tfSearch, "*", "*"); Maps.ClicarBotao(btFilter, ""); Maps.VerificarItem(bugList, "Viewing Issues (0 - 0 / 0)", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
public void VerificarAcessaReportIssue() { WebDriverWait espera = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5)); SeleniumMaps Maps = new SeleniumMaps(); HomePageObjects homePageObjects = new HomePageObjects(); //veriricar espera //método try catch para validar se foi possível acessar a tela inicial try { //NUnit.Framework.Assert.AreEqual("Report Issue", _driver.FindElement(By.LinkText("Report Issue")).Text); Maps.VerificarItem(homePageObjects.ltReportIssue, "Report Issue", ""); } catch (Exception e) { NUnit.Framework.Assert.Fail(e.ToString()); } }
/// <summary> /// Método para verificar o acesso á Página Inicial /// </summary> public void WrongLogin() { //implementar SeleniumMaps Maps = new SeleniumMaps(); String username = "******"; String password = ""; //método try catch para validar se foi possível acessar a tela inicial try { Maps.PreencherCampo(tfUsername, "username", username); Maps.PreencherCampo(tfPassword, "password", password); Maps.ClicarBotao(btSubmit, "//input[@value='Login']"); //Assert.AreEqual("account may be disabled", _driver.FindElement(By.CssSelector("//font")).Text); Maps.VerificarItem(txtWrongLogin, "Your account may be disabled or blocked or the username/password you entered is incorrect.", ""); } catch (Exception e) { Assert.Fail(e.ToString()); } }
public void VerificarAcessoFiltrar() { SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(btFilterPageFilter, "", ""); }
public void ValidacaoFiltroTarefa_Severity(String severity) { SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(txtFiltroSeverity, severity, ""); }
public void ValidarFiltroSeverity(String severity) { SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(txtFiltroSeverityTabela, severity, ""); }
public void ValidacaoFiltroTarefa_Priority(String prioridade) { SeleniumMaps Maps = new SeleniumMaps(); Maps.VerificarItem(txtFiltroPriority, prioridade, ""); }