Пример #1
0
        public void DA_LOGIN_TC004_Verify_that_user_is_able_to_log_in_different_repositories_successfully_after_logging_out_current_repository()
        {
            NavigateTADashboard();
            loginPage.Login(TestData.defaulRepository, TestData.validUsername, TestData.validPassword);
            PageObjects.MainPage mainPage = new PageObjects.MainPage();
            mainPage.Logout();
            loginPage.Login(TestData.testRepository, TestData.validUsername, TestData.validPassword);
            string actualText = mainPage.GetWelcomeText();

            CheckTextDisplays(TestData.validUsername, actualText);
        }
Пример #2
0
        public void TestCleanup()
        {
            switch (TestContext.TestName)
            {
            case "DA_LOGIN_TC002_Verify_that_user_fails_to_login_specific_repository_successfully_via_Dashboard_login_page_with_incorrect_credentials":
            case "DA_LOGIN_TC003_Verify_that_user_fails_with_correct_username_and_incorrect_password":
            case "DA_LOGIN_TC006_Verify_that_Password_input_is_case_sensitive":
            case "DA_LOGIN_TC010_Verify_that_the_page_works_correctly_for_the_case_when_no_input_entered_to_Password_and_Username_field":
                loginPage.ConfirmPopup();
                break;

            case "DA_MP_TC012_Verify_that_user_is_able_to_add_additional_pages_besides_Overview_page_successfully":
                mainPage.DeletePage(TestData.addPageName);
                mainPage.Logout();
                break;

            default:
                mainPage.Logout();
                break;
            }
        }
Пример #3
0
        public void DA_LOGIN_TC007_Verify_that_Username_is_not_case_sensitive()
        {
            NavigateTADashboard();
            loginPage.Login(TestData.defaulRepository, TestData.uppercaseUsername, TestData.lowercasePassword);
            PageObjects.MainPage mainPage = new PageObjects.MainPage();
            string actualText1            = mainPage.GetWelcomeText();

            CheckTextDisplays(TestData.uppercaseUsername, actualText1);
            mainPage.Logout();
            loginPage.Login(TestData.defaulRepository, TestData.lowercaseUsername, TestData.lowercasePassword);
            string actualText2 = mainPage.GetWelcomeText();

            CheckTextDisplays(TestData.uppercaseUsername, actualText2);
        }
Пример #4
0
        public void DA_LOGIN_TC006_Verify_that_Password_input_is_case_sensitive()
        {
            NavigateTADashboard();
            loginPage.Login(TestData.defaulRepository, TestData.testUsername, TestData.testUppercasePassword);
            PageObjects.MainPage mainPage = new PageObjects.MainPage();
            string actualText             = mainPage.GetWelcomeText();

            CheckTextDisplays(TestData.testUsername, actualText);
            mainPage.Logout();
            loginPage.Login(TestData.defaulRepository, TestData.testUsername, TestData.testLowercasePassword);
            string actualMessage = loginPage.GetTextPopup();

            CheckTextDisplays(TestData.errorLoginMessage, actualMessage);
        }