Exemplo n.º 1
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature disabled
        /// </summary>
        /// <param name="driver"></param>
        static void BasicIdpSignOn_Password_Failure_Legacy(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPage(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            FormsPageTasks.EnterBadPassword(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }
Exemplo n.º 2
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available (including external)
        ///     3. User configured for external auth
        /// </summary>
        /// <param name="driver"></param>
        static void BasicIdpSignOn_WithOptions_External(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPage(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            OptionsPageTasks.SelectExternalOnOptionPage(driver, configuration);
            ExternalAuthTasks.EnterChallengeAnswers(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }
Exemplo n.º 3
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Only forms auth options available
        /// </summary>
        /// <param name="driver"></param>
        static void BasicIdpSignOn_NoOptions_Password(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPage(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            FormsPageTasks.EnterMisformattedUsername(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            PaginatedFormsTasks.PasswordPageBackNavigate(driver, configuration);
            PaginatedFormsTasks.UsernamePageForwardNavigate(driver, configuration);
            FormsPageTasks.EnterCorrectPassword(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }
Exemplo n.º 4
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available (including certificate)
        /// </summary>
        /// <param name="driver"></param>
        static void BasicIdpSignOn_WithOptions_CertThenForms(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPage(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            FormsPageTasks.EnterMisformattedUsername(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            OptionsPageTasks.SelectCertOnOptionPage(driver, configuration);
            OptionsPageTasks.SignInWithOtherOptions(driver, configuration);
            OptionsPageTasks.SelectFormsOnOptionPage(driver, configuration);
            FormsPageTasks.EnterCorrectPassword(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }