public void AtualizarNomeMarcador() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); GerenciarPageObjects gerenciar = new GerenciarPageObjects(); Relatorio.iniciarTeste("Atualizar Nome Marcador"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); gerenciar.acessarMenuGerenciar(); gerenciar.acessarSubMenuGerenciarMarcadores(); gerenciar.verificaAcessoSubMenuGerenciarMarcadores(); string marcador = gerenciar.criarNovoMarcadorAleatorio(); gerenciar.verificaAcessoSubMenuGerenciarMarcadores(); Assert.IsTrue(gerenciar.verificarListagemMarcador(marcador)); gerenciar.selecionarMarcadorCriado(marcador); marcador = gerenciar.atualizarNomeMarcador(); gerenciar.verificaAcessoDetalhesMarcador(); Assert.IsTrue(gerenciar.TextoDetalhes_NomeMarcador.Text.Contains(marcador)); }//fim void
public void Init() { _driver = new ChromeDriver(); HomePage = new HomePageObjects(_driver); Products = new ProductPageObjects(_driver); HomePage.goToPage(); }
public void ApagarUsuario() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); GerenciarPageObjects gerenciar = new GerenciarPageObjects(); Relatorio.iniciarTeste("Apagar Novo Usuario"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); gerenciar.acessarMenuGerenciar(); gerenciar.acessarSubMenuGerenciarUsuarios(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); string usuario = gerenciar.criarNovoUsuarioAleatorio(); gerenciar.verificaAcessoAlterarUsuario(); gerenciar.acessarSubMenuGerenciarUsuarios(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); Assert.IsTrue(gerenciar.verificarListagemUsuario(usuario)); gerenciar.selecionarUsuarioCriado(usuario); gerenciar.apagarUsuario(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); Assert.IsFalse(gerenciar.verificarListagemUsuario(usuario)); }//fim void
public void AtualizarPrioridadeTarefa() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); VerTarefasPageObjects tarefas = new VerTarefasPageObjects(); CriarTarefaPageObjects criar = new CriarTarefaPageObjects(); Relatorio.iniciarTeste("Atualizar prioridade tarefa"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); criar.acessarCriarTarefa(); string resumo = criar.criarNovaTarefaAleatoriaRetornaResumo(); tarefas.verificarAcessoVerTarefas(); tarefas.resetarFiltro(); tarefas.selecionarTarefaCriada(resumo); tarefas.selecionarAcaoAtualizarPrioridade(); tarefas.atualizarPrioridade_Normal(); tarefas.verificarAcessoVerTarefas(); tarefas.resetarFiltro(); tarefas.acessarTarefaListagem(resumo); tarefas.verificarAcessoDetalhesTarefas(); Assert.AreEqual("normal", tarefas.TextoPrioridadeDetalhe.Text); }//fim void
public void MoverTarefa() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); VerTarefasPageObjects tarefas = new VerTarefasPageObjects(); CriarTarefaPageObjects criar = new CriarTarefaPageObjects(); Relatorio.iniciarTeste("Mover tarefa"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); criar.acessarCriarTarefa(); string resumo = criar.criarNovaTarefaAleatoriaRetornaResumo(); tarefas.verificarAcessoVerTarefas(); tarefas.resetarFiltro(); tarefas.selecionarTarefaCriada(resumo); tarefas.selecionarAcaoMover(); tarefas.moverTarefa(); Assert.IsFalse(tarefas.verificarListagemResumo(resumo)); }//fim void
public void VerificaCargaDBTarefas() { ConexaoBD conexao = new ConexaoBD(); List <string> optionList = conexao.cargaTarefas(); string id_project = optionList[0]; string tarefa1 = optionList[1]; string tarefa2 = optionList[2]; string tarefa3 = optionList[3]; LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); VerTarefasPageObjects tarefas = new VerTarefasPageObjects(); CriarTarefaPageObjects criar = new CriarTarefaPageObjects(); Relatorio.iniciarTeste("Carga DB Tarefas e Projeto"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); tarefas.acessarVerTarefas(); tarefas.verificarAcessoVerTarefas(); tarefas.clicarFiltroAtualizado(); tarefas.verificarAcessoVerTarefas(); tarefas.clicarFiltroAtualizado(); tarefas.verificarAcessoVerTarefas(); Assert.IsTrue(tarefas.verificarListagemResumo(tarefa1)); Assert.IsTrue(tarefas.verificarListagemResumo(tarefa2)); Assert.IsTrue(tarefas.verificarListagemResumo(tarefa3)); }
public void CopiarTarefa() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); VerTarefasPageObjects tarefas = new VerTarefasPageObjects(); CriarTarefaPageObjects criar = new CriarTarefaPageObjects(); Relatorio.iniciarTeste("Copiar tarefa"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); criar.acessarCriarTarefa(); string resumo = criar.criarNovaTarefaAleatoriaRetornaResumo(); tarefas.verificarAcessoVerTarefas(); tarefas.resetarFiltro(); tarefas.selecionarTarefaCriada(resumo); tarefas.selecionarAcaoCopiar(); tarefas.verificarAcesoTelaCopiar(); string novoProjeto = tarefas.selecionarProjetoRandomico(); tarefas.copiarTarefa(); tarefas.verificarAcessoVerTarefas(); tarefas.acessarProjeto(novoProjeto); Assert.IsTrue(tarefas.verificarListagemResumo(resumo)); }//fim void
public void verificaCampoEmailInvalido() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); GerenciarPageObjects gerenciar = new GerenciarPageObjects(); Relatorio.iniciarTeste("Verifica Campo Email inválido"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); gerenciar.acessarMenuGerenciar(); gerenciar.acessarSubMenuGerenciarUsuarios(); gerenciar.verificaAcessoSubMenuGerenciarUsuarios(); gerenciar.clicarBotaoNovoUsuario(); gerenciar.verificaAcessoTelaCriarNovoUsuario(); gerenciar.preencherNomeUsuario("Usuario"); gerenciar.preencherNomeVerdadeiroUsuarioAleatorio(); gerenciar.preencherEmailUsuario("invalido@"); gerenciar.clicarBotaoCriarUsuario(); Assert.IsTrue(gerenciar.verificaMensagemCampoEmailInvalido()); }//fim void
public void Issue_InsertIssuee_FecharTarefaDuplicada() { ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); UpdateIssuePageObjects updateIssuePageObjects = new UpdateIssuePageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.VerificaProjeto(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary();//Aqui você o sumário inserido reportIssuesPageObjects.AcessarEdicaoIssue(summary); updateIssuePageObjects.AlterarResolution("duplicate"); updateIssuePageObjects.AlterarStatus("closed"); updateIssuePageObjects.AtribuirNota("Tarefa Duplicada"); updateIssuePageObjects.Atualizar(); updateIssuePageObjects.VerificaStatus("closed"); Assert.Pass(); }
public void Issue_InsertIssuee_FecharTarefaSemReproducao() { ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); UpdateIssuePageObjects updateIssuePageObjects = new UpdateIssuePageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.VerificaProjeto(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary();//Aqui você o sumário inserido reportIssuesPageObjects.AcessarEdicaoIssue(summary); updateIssuePageObjects.AlterarReprodutibilidade("unable to reproduce"); updateIssuePageObjects.AtribuirNota("Impossível de reproduzir."); updateIssuePageObjects.AlterarStatus("closed"); updateIssuePageObjects.Atualizar(); updateIssuePageObjects.VerificaStatus("closed"); Assert.Pass(); }
public void MyAccount_InserirProfile_Excluir() { //OSBUILD VAZIO //Insere um profile //edita //verifica se foi inserido HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); MyAccountPageObjects myAccountPageObjects = new MyAccountPageObjects(); SeleniumMaps Maps = new SeleniumMaps(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.EscolherProjeto(ConfigurationManager.AppSettings["Projeto"].ToString()); homePageObjects.AcessarAbaMyAccount(); myAccountPageObjects.AcessarProfiles(); myAccountPageObjects.VerificaAcessoProfiles(); string conteudo = myAccountPageObjects.InserirProfile_Validar(); myAccountPageObjects.BotaoSubmeter(); conteudo = conteudo + " " + conteudo + " " + conteudo; myAccountPageObjects.VerificarInsercao(conteudo); myAccountPageObjects.Excluir(); myAccountPageObjects.VerificarExclusao(conteudo); Assert.Pass(); }
public void Issue_AtribuirSayoan() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ViewIssuesPageObjects viewIssuesPageObjects = new ViewIssuesPageObjects(); ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); //Obriga inserir uma tarefa String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary(); homePageObjects.AcessarAbaViewIssue(); viewIssuesPageObjects.VerificaAcessoViewIssues(); //Aplicar filtro viewIssuesPageObjects.SelecionarTudo(); viewIssuesPageObjects.AtribuirSayoan(); viewIssuesPageObjects.VerificaAtribuicaoSayoan(); Assert.Pass(); }
public void AtualizarNomeProjeto() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); GerenciarPageObjects gerenciar = new GerenciarPageObjects(); Relatorio.iniciarTeste("Atualizar Nome Projeto"); login.acessarLogin(); login.realizaLogin(); home.verificaAcessoTelaHome(); gerenciar.acessarMenuGerenciar(); gerenciar.acessarSubMenuGerenciarProjetos(); gerenciar.verificaAcessoSubMenuGerenciarProjetos(); string projeto = gerenciar.criarNovoProjetoAleatorio(); gerenciar.verificaAcessoSubMenuGerenciarProjetos(); gerenciar.selecionarProjetoCriado(projeto); gerenciar.verificaAcessoEditarProjeto(); gerenciar.atualizarNomeProjeto(); gerenciar.verificaAcessoSubMenuGerenciarProjetos(); Assert.IsFalse(gerenciar.verificarListagemProjeto(projeto)); }//fim void
public void Issue_InsertIssuee_AtribuirTarefa() { ReportIssuesPageObjects reportIssuesPageObjects = new ReportIssuesPageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); UpdateIssuePageObjects updateIssuePageObjects = new UpdateIssuePageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.VerificaProjeto(); homePageObjects.AcessarAbaReportIssue(); reportIssuesPageObjects.VerificarAcessaReportIssue(); String summary = reportIssuesPageObjects.InserirTarefa_RetornoSummary();//Aqui você o sumário inserido reportIssuesPageObjects.AcessarEdicaoIssue(summary); /* * feedback acknowledged confirmed assigned resolved closed * */ updateIssuePageObjects.AtribuirTarefa("sayoan.oliveira"); updateIssuePageObjects.Atualizar(); updateIssuePageObjects.VerificaAssign("sayoan.oliveira"); Assert.Pass(); }
public void Logout() { HomePageObjects homePageObjects = new HomePageObjects(driver); Login login = new Login(); login.DoLogin(driver); homePageObjects.ClickOnLogout(); Assert.AreEqual("", verificationErrors.ToString()); }
public void Login_VerificarLogin() { LoginPageObjects loginPageObjects = new LoginPageObjects(); HomePageObjects homePageObjects = new HomePageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); Assert.Pass(); }
public void Test_Case_2_Verify_Invalid_Email_Address_Error(string browserName) { Setup(browserName); var homePage = new HomePageObjects(driver); var loginPage = new loginPage(driver); homePage.clickTheSignInBtn(); loginPage.enterIncorrectEmailAddressPassword(); loginPage.clickSignInAndVerifyIfErrorIsDisplayed(); }
//[Test] public void Home_TestesHomePage() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.VerificaProjeto(); }
public void LoginFalha() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); Relatorio.iniciarTeste("Realiza login falha"); login.acessarLogin(); login.realizaLoginFalha(); Assert.AreEqual("Sua conta pode estar desativada ou bloqueada ou o nome de usuário e a senha que você digitou não estão corretos.", login.MensagemErroLogin.Text); }//fim void
public void LoginSucesso() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); Relatorio.iniciarTeste("Realiza login sucesso"); login.acessarLogin(); login.realizaLogin(); Assert.AreEqual("MantisBT", home.TituloHome.Text); }//fim void
public void SearchIssue() { Login login = new Login(); login.DoLogin(driver); HomePageObjects homePageObjects = new HomePageObjects(driver); homePageObjects.FillIssueField("4871"); homePageObjects.ClickOnJump(); Assert.AreEqual("", verificationErrors.ToString()); }
public void RecuperarSenha() { LoginPageObjects login = new LoginPageObjects(); HomePageObjects home = new HomePageObjects(); Relatorio.iniciarTeste("Recupera senha"); login.acessarLogin(); login.acessarPerdeuSenha(); Assert.AreEqual("Reajuste de Senha", login.TituloPagina.Text); }//fim void
public void Home_EscolherProjetoTodos() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.EscolherProjeto(ConfigurationManager.AppSettings["Projeto"].ToString()); NUnit.Framework.Assert.Pass(); }
public void Test_Case_5_Automate_End_To_End_Order(string browserName) { Setup(browserName); var homePage = new HomePageObjects(driver); var loginPage = new loginPage(driver); homePage.clickTheSignInBtn(); loginPage.performLogin(); homePage.hoverOverWomenClothesTab(); }
public void Home_VerificaLogout() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.Logout(); loginPageObjects.VerificaAcessoLogin(); NUnit.Framework.Assert.Pass(); }
public void Test_Case_4_Verify_Error_Messages_For_Incorrect_Values(string browserName) { Setup(browserName); var homePage = new HomePageObjects(driver); var loginPage = new loginPage(driver); var createAccount = new AccountCreationPage(driver); homePage.clickTheSignInBtn(); loginPage.clickEmailAddressFieldAndEnterEmailAddress(); loginPage.clickCreateAnAccountButton(); createAccount.enterIncorrectRegistrationDetailsToTriggerErrors(); createAccount.checkThatTheExpectedErrorsAreDisplayed(); }
public void Init() { _driver = new ChromeDriver(); HomePage = new HomePageObjects(_driver); LoginPage = new LoginPageObjects(_driver); username = "******"; password = "******"; member = "Interview Test"; HomePage.goToPage(); HomePage.OpenProfile(); HomePage.SignIn(); }
public void Test_Case_3_Verify_Error_Messages_For_Mandatory_Fields(string browserName) { Setup(browserName); var homePage = new HomePageObjects(driver); var loginPage = new loginPage(driver); var createAccount = new AccountCreationPage(driver); homePage.clickTheSignInBtn(); loginPage.clickEmailAddressFieldAndEnterEmailAddress(); loginPage.clickCreateAnAccountButton(); createAccount.clearEmailAddressField(); createAccount.attemptRegistrationWithoutMandatoryFields(); createAccount.checkThatTheExpectedErrorMessagesHaveDisplayed(); }
public void Issue_FiltrarSemRetorno() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ViewIssuesPageObjects viewIssuesPageObjects = new ViewIssuesPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.AcessarAbaViewIssue(); viewIssuesPageObjects.VerificaAcessoViewIssues(); viewIssuesPageObjects.FiltrarSemRetorno(); Assert.Pass(); }
public void Issue_GerarPermalink() { HomePageObjects homePageObjects = new HomePageObjects(); LoginPageObjects loginPageObjects = new LoginPageObjects(); ViewIssuesPageObjects viewIssuesPageObjects = new ViewIssuesPageObjects(); loginPageObjects.Login(); homePageObjects.VerificarAcessaLogin(); homePageObjects.AcessarAbaViewIssue(); viewIssuesPageObjects.VerificaAcessoViewIssues(); viewIssuesPageObjects.AcessarPermalink(); //Clicar botão Permalink viewIssuesPageObjects.VerificaPermalink(); //Trocar de aba e verificar Tela Assert.Pass(); }