public void ValidarCamposObrigatorioResumo()
        {
            menuMantis   = new MenuMantis();
            criarTarefas = new CriarTarefasPage();

            #region Parameters
            //string projetoPadrao = "Automacao";
            //string resumo = "Test";
            //string descricao = "";
            string msgPT          = "Preencha este campo.";
            string msgEN          = "Please fill out this field.";
            string msgIE          = "Este é um campo obrigatório";
            string msgJavaScripit = "validationMessage";
            #endregion

            logarNoSistema.EfetuarLogin(USUARIO, SENHA);

            menuMantis.ClicarItemMenuCriarTarefas();

            criarTarefas.ClicarEmSelecionarProjeto();

            criarTarefas.SalvarNovoProjeto();

            CollectionAssert.Contains(new[] { msgEN, msgPT, msgIE }, criarTarefas.MensagemValidacaoResumo(msgJavaScripit));
        }
        public void CriarNovaTarefaComSucesso()
        {
            menuMantis   = new MenuMantis();
            criarTarefas = new CriarTarefasPage();

            #region Parameters
            //string nameProjeto = "General";
            string descricaoProjeto = "Texto de Tests";
            string msgEsperada      = "Operação realizada com sucesso.";
            #endregion


            logarNoSistema.EfetuarLogin(USUARIO, SENHA);

            menuMantis.ClicarItemMenuCriarTarefas();

            //criarTarefas.ClicarEmSelecionarProjeto();

            //criarTarefas.SelecionarCategoria(nameProjeto);

            criarTarefas.PreencherResumo(descricaoProjeto);
            criarTarefas.PreencherDescricao(descricaoProjeto);

            criarTarefas.SalvarNovoProjeto();

            Assert.That(criarTarefas.ValidarCriarTarefa().Contains(msgEsperada));
        }
        public void CriarNovasTarefasEmMassa(ArrayList testData)
        {
            menuMantis   = new MenuMantis();
            criarTarefas = new CriarTarefasPage();

            #region Parameters
            string resumo           = testData[0].ToString();
            string descricaoProjeto = testData[1].ToString();
            string nameProjeto      = "[Todos os Projetos] General";
            #endregion

            logarNoSistema.EfetuarLogin(USUARIO, SENHA);

            menuMantis.ClicarItemMenuCriarTarefas();

            criarTarefas.SelecionarCategoria(nameProjeto);

            criarTarefas.PreencherResumo(resumo);

            criarTarefas.PreencherDescricao(descricaoProjeto);

            criarTarefas.SalvarNovoProjeto();

            Assert.That(criarTarefas.ValidarCriarTarefa().Contains("sucesso"));
        }
        public void VerificarErroDeCampoCategoria()
        {
            menuMantis   = new MenuMantis();
            criarTarefas = new CriarTarefasPage();

            #region Parameters

            string texto = "Texto de Tests";
            string mensagemErroEsperada = "APPLICATION ERROR #11";
            #endregion

            logarNoSistema.EfetuarLogin(USUARIO, SENHA);
            menuMantis.ClicarItemMenuCriarTarefas();

            criarTarefas.ClicarEmSelecionarProjeto();
            criarTarefas.PreencherResumo(texto);
            criarTarefas.PreencherDescricao(texto);
            criarTarefas.SalvarNovoProjeto();

            Assert.AreEqual(mensagemErroEsperada, criarTarefas.RetornaMensagemDeErro());
        }
Example #5
0
 public CriarTarefasFlows()
 {
     criarTarefasPage = new CriarTarefasPage();
 }