コード例 #1
0
        public UpdateBugStepsPage FillFormUpdateBug(string categoria, string frequencia, string gravidade, string prioridade, bool selecionarPerfil,
                                                    string plataforma, string so, string versaoSo, string atribuirA, string resumo, string descricao, string passos, string informacoesAdicionais, bool privado)
        {
            WaitForElementHelpers.WaitForElementDisplayed(locatorDdlCategoria);
            ddlCategoria.SelectText(categoria);
            ddlFrequecia.SelectText(frequencia);
            ddlGravidade.SelectText(gravidade);
            ddlPrioridade.SelectText(prioridade);
            if (selecionarPerfil)
            {
                WaitForElementHelpers.WaitForElementDisplayed(locatortxtPlataforma);
                txtPlataforma.ClearAndTypeInTextBox(plataforma);
                txtSO.ClearAndTypeInTextBox(so);
                txtVersaoSO.ClearAndTypeInTextBox(versaoSo);
            }

            ddlAtribuir.SelectText(atribuirA);

            txtResumo.ClearAndTypeInTextBox(resumo);
            txtDescricao.ClearAndTypeInTextBox(descricao);
            txtPassos.ClearAndTypeInTextBox(passos);

            txtAdicionais.ClearAndTypeInTextBox(informacoesAdicionais);

            if (privado)
            {
                ckVisibilidadePrivado.RadioButtonSelect();
            }

            //txtEnviarArquivos.SendKeys(@"C:\Users\ramon\source\repos\AutomacaoMantisBT-Ramon\AutomacaoMantisBT.Testes\bin\Debug\TestResult\2018-10-05\ReportTest - sexta-feira, 5 de outubro de 2018.html");



            return(new UpdateBugStepsPage());
        }
コード例 #2
0
 public ManageProjectsPage UpdateProject()
 {
     linkManageProjects.ClickLink();
     WaitForElementHelpers.WaitForElementDisplayed(btnNewProjectLocator);
     linkFirstProjectToList.ClickLink();
     btnUpdateProject.ClickButton();
     return(new ManageProjectsPage());
 }
コード例 #3
0
        public void TEST_CreateNewBugAllFieldsSuccess()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objNewBug.OpenNewBugPage().CreateNewBug(TestDataConfig.categoria, TestDataConfig.frequencia, TestDataConfig.gravidade, TestDataConfig.prioridade, true, "plataforma", "SO", "VErsao so", TestDataConfig.atribuir, TestDataConfig.resumo, TestDataConfig.descricao, TestDataConfig.passosReproduzir, TestDataConfig.informacoesAdicionais, true, true).saveNewBug();

            WaitForElementHelpers.WaitForElementDisplayed(objNewBug.msgSucessoLocator);
            ValidationResult.AssertTextInElement(objNewBug.msgSucesso, MessagesNewBug.MensagemSucesso);
        }
コード例 #4
0
 public ManageProjectsPage DeleteProject()
 {
     linkManageProjects.ClickLink();
     WaitForElementHelpers.WaitForElementDisplayed(btnNewProjectLocator);
     linkSecondProjectToList.ClickLink();
     btnDeleteProject.ClickButton();
     WaitForElementHelpers.WaitForElementDisplayed(msgWarningLocator);
     btnDeleteProject.ClickButton();
     return(new ManageProjectsPage());
 }
コード例 #5
0
        public ManageUsersPage UpdateUser(string name, string realName, string email, string accessLevel)
        {
            WaitForElementHelpers.WaitForElementDisplayed(txtUsernameLocatorEdit);
            txtUsernameEdit.ClearAndTypeInTextBox(name);
            txtRealUsernameEdit.ClearAndTypeInTextBox(realName);
            txtEmailEdit.ClearAndTypeInTextBox(email);
            ddlAccessLevelEdit.SelectText(accessLevel);

            return(new ManageUsersPage());
        }
コード例 #6
0
        public ManageUsersPage CreateNewUser(string name, string realName, string email, string accessLevel)
        {
            linkManageUsers.ClickLink();
            linkCreateNewAccount.ClickButton();

            WaitForElementHelpers.WaitForElementDisplayed(txtUsernameLocator);
            txtUsername.TypeInTextBox(name);
            txtRealUsername.TypeInTextBox(realName);
            txtEmail.TypeInTextBox(email);
            ddlAccessLevel.SelectText(accessLevel);

            return(new ManageUsersPage());
        }
コード例 #7
0
        public ManageProjectsPage CreateNewProject(string name, string status, string visibility, string description)
        {
            linkManageProjects.ClickLink();

            WaitForElementHelpers.WaitForElementDisplayed(btnNewProjectLocator);
            btnNewProject.ClickButton();
            WaitForElementHelpers.WaitForElementDisplayed(txtProjectNameLocator);
            txtProjectName.TypeInTextBox(name);
            ddlProjectStatus.SelectText(status);
            ddlState.SelectText(visibility);
            txtDescriptiomn.TypeInTextBox(description);


            return(new ManageProjectsPage());
        }
コード例 #8
0
        public CreateNewBugPage CreateNewBug(string categoria, string frequencia, string gravidade, string prioridade, bool selecionarPerfil,
                                             string plataforma, string so, string versaoSo, string atribuirA, string resumo, string descricao, string passos, string informacoesAdicionais, bool privado, bool continuarRelatando)
        {
            WaitForElementHelpers.WaitForElementDisplayed(locatorDdlCategoria);
            ddlCategoria.SelectText(categoria);
            ddlFrequecia.SelectText(frequencia);
            ddlGravidade.SelectText(gravidade);
            ddlPrioridade.SelectText(prioridade);
            if (selecionarPerfil)
            {
                if (SelecionarPerfilOculto())
                {
                    btnExpandirPerfil.ClickButton();
                }


                WaitForElementHelpers.WaitForElementDisplayed(locatortxtPlataforma);
                txtPlataforma.TypeInTextBox(plataforma);
                txtSO.TypeInTextBox(so);
                txtVersaoSO.TypeInTextBox(versaoSo);
            }

            ddlAtribuir.SelectText(atribuirA);

            txtResumo.TypeInTextBox(resumo);
            txtDescricao.TypeInTextBox(descricao);
            txtPassos.TypeInTextBox(passos);

            txtAdicionais.TypeInTextBox(informacoesAdicionais);

            if (privado)
            {
                rbVisibilidadePrivado.RadioButtonSelect();
            }
            if (continuarRelatando)
            {
                ckContinuarRelatando.CheckboxChecked();
            }
            //txtEnviarArquivos.SendKeys(@"C:\Users\ramon\source\repos\AutomacaoMantisBT-Ramon\AutomacaoMantisBT.Testes\bin\Debug\TestResult\2018-10-05\ReportTest - sexta-feira, 5 de outubro de 2018.html");



            return(new CreateNewBugPage());
        }
コード例 #9
0
        public String GetLinkTextBug()
        {
            WaitForElementHelpers.WaitForElementDisplayed(gridIssues);

            return(linkBugDetails.Text);
        }