public void ReportIssues(string categoria, string assunto, string descricao, string mensagem, string elementoMgs) { AbreNagevador(); logar = new LoginPage(driver); logar.logaMantis("patrick.sorrentino", "senha123"); Thread.Sleep(2000); reIssue = new ReportIssuePage(driver); reIssue.irReportIssue(); reIssue.ReportBug(categoria, assunto, descricao); Screenshot(driver, "ReportIssues"); reIssue.ValidaMsg(elementoMgs, mensagem); Fechar(); }
public void InserirDetalhesRelatorioComSucesso(int navegador, string login, string password, string categoria, string reprodutibilidade, string gravidade, string prioridade, string selecionarPerfil, string summary, string description, string screenShotName) { try { switch (navegador) { case Navegadores.GoogleChrome: wd = new ChromeDriver(); break; case Navegadores.Firefox: wd = new FirefoxDriver(); break; default: break; } log = new LoginPage(wd); paginaInicial = new HomePage(wd); reportarProblema = new ReportIssuePage(wd); mc = new MetodosComuns(wd); evidenciaTeste = new TestEvidence(wd); log.GoTo(); log.Logar(login, password); paginaInicial.irParaInserirDetalhesRelatorio(); reportarProblema.inserirDetalhesRelatorio(categoria, reprodutibilidade, gravidade, prioridade, selecionarPerfil); reportarProblema.camposObg(summary, description); reportarProblema.ClicarEnviarRelatorio(); mc.Valida("Operation successful."); evidenciaTeste.Capture(screenShotName); mc.Fechar(); } catch (Exception) { throw; } }
public void deixardePreenchercamposObrigatorios(int navegador, string login, string password, string screenShotName, string summary = null, string description = null) { try { switch (navegador) { case Navegadores.GoogleChrome: wd = new ChromeDriver(); break; case Navegadores.Firefox: wd = new FirefoxDriver(); break; default: break; } log = new LoginPage(wd); paginaInicial = new HomePage(wd); reportarProblema = new ReportIssuePage(wd); mc = new MetodosComuns(wd); evidenciaTeste = new TestEvidence(wd); log.GoTo(); log.Logar(login, password); paginaInicial.irParaInserirDetalhesRelatorio(); reportarProblema.camposObg(summary, description); reportarProblema.ClicarEnviarRelatorio(); mc.Valida("A necessary field was empty. Please recheck your inputs."); evidenciaTeste.Capture(screenShotName); mc.Fechar(); } catch (Exception) { throw; } }
public ReportIssueSteps(IWebDriver driverReference) { reportIssue = new ReportIssuePage(driverReference); }