public void TEST_ManageProjectsCreateNewProject()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objProjects.CreateNewProject("Project " + Guid.NewGuid(), "development", "public", "project Description").SaveNewProject();;

            ValidationResult.AssertElementContainsText(objProjects.msgSucesso, "Operation successful.");
        }
        public void TEST_ManageProjectsCreateNewProjectAlreadyExists()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objProjects.CreateNewProject("teste", "development", "public", "project Description").SaveNewProject();;

            ValidationResult.AssertElementContainsText(objProjects.msgErro, "A project with that name already exists. Please go back and enter a different name.");
        }
        public void TEST_ManageUsersDeleteUser()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objUsers.DeleteUser();

            ValidationResult.AssertElementContainsText(objUsers.msgSucesso, "Operation successful.");
        }
        public void TEST_ManageUsersResetPassword()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objUsers.ResetPassword();

            ValidationResult.AssertElementContainsText(objUsers.msgSucesso, "A confirmation request has been sent to the selected user's e-mail address. Using this, the user will be able to change their password.");
        }
        public void TEST_ManageUsersCreateNewAccountUserEmailAlreadyExists()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objUsers.CreateNewUser("teste " + Guid.NewGuid(), "real name test", "teste@teste", "reporter").SaveNewUser();

            ValidationResult.AssertElementContainsText(objUsers.msgErro, "That email is already being used. Please go back and select another one.");
        }
        public void TEST_ManageUsersCreateNewAccount()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objUsers.CreateNewUser("Name test " + Guid.NewGuid().ToString(), "real name test", "teste." + Guid.NewGuid() + "@teste", "reporter").SaveNewUser();

            ValidationResult.AssertElementContainsText(objUsers.msgSucesso, "Created user");
        }
        public void TEST_DeleteBugFromListSuccess()
        {
            objLogin.NavigateToLoginPage().LogIn();

            objdltBug.OpenViewTask().DeleteBugFromList();


            ValidationResult.AssertElementContainsText(objdltBug.msgSucesso, MessagesDeleteBug.MensagemSucesso);
        }
        public void TEST_ManageUsersCreateNewAccountUserRequired()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objHome.ClickMenu(menuManage);
            objUsers.CreateNewUser(string.Empty, "real name test", "teste." + Guid.NewGuid() + "@teste", "reporter").SaveNewUser();


            ValidationResult.AssertElementContainsText(objUsers.msgErro, "The username is invalid. Usernames may only contain Latin letters, numbers, spaces, hyphens, dots, plus signs and underscores");
        }
        public void TEST_CreateNewBugSummaryRequired()
        {
            objLogin.NavigateToLoginPage().LogIn();
            objNewBug.OpenNewBugPage().CreateNewBug(TestDataConfig.categoria, TestDataConfig.frequencia, TestDataConfig.gravidade, TestDataConfig.prioridade, false, "plataforma", "SO", "VErsao so", TestDataConfig.atribuir, String.Empty, TestDataConfig.descricao, TestDataConfig.passosReproduzir, TestDataConfig.informacoesAdicionais, false, false);

            JavaScriptExecutorHelper.ExecuteJavaScript("document.getElementById('summary').removeAttribute('required')");

            objNewBug.saveNewBug();

            ValidationResult.AssertElementContainsText(objNewBug.msgErro, MessagesNewBug.MensagemErroObrigatoriedade.Replace("@campo", "summary"));
        }
Пример #10
0
        public void TEST_UpdateBugStepsDescriptionRequired()
        {
            objLogin.NavigateToLoginPage().LogIn();

            objUpdBug.OpenViewTask().ClickUpdateBug();

            objUpdBug.FillFormUpdateBug(TestDataConfig.categoria, TestDataConfig.frequencia, TestDataConfig.gravidade, TestDataConfig.prioridade, true, "plataforma", "SO", "VErsao so", TestDataConfig.atribuir, TestDataConfig.resumo, String.Empty, TestDataConfig.passosReproduzir, TestDataConfig.informacoesAdicionais, false);

            objUpdBug.ClickSaveUpdate();

            ValidationResult.AssertElementContainsText(objNewBug.msgSucesso, MessagesUpdateBug.MensagemErroObrigatoriedade.Replace("@campo", "Description"));
        }