示例#1
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 HintIdpSignOn_WithOptions_External(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPageWithLoginHint(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(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();
        }
示例#2
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available
        ///     3. Relying party exists, and user has access to it
        /// </summary>
        /// <param name="driver"></param>
        static void BasicRpSignOn_WithOptions_Password(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            RelyingPartyTasks.GoToRpSignIn(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            OptionsPageTasks.SelectFormsOnOptionPage(driver, configuration);
            FormsPageTasks.EnterBadPassword(driver, configuration);
            OptionsPageTasks.SelectFormsOnOptionPage(driver, configuration);
            FormsPageTasks.EnterCorrectPassword(driver, configuration);

            // Perform test validation
            var success = RelyingPartyTasks.ValidateRpIsSignedIn(driver, configuration);

            Debug.Assert(success);

            // Clean up
            driver.Quit();
        }
示例#3
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available (including external)
        /// </summary>
        /// <param name="driver"></param>
        static void HintIdpSignOn_WithOptions_Password_ChangeUser(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPageWithLoginHint(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            PaginatedFormsTasks.OptionsPageBackNavigate(driver, configuration);
            FormsPageTasks.ClearUsername(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(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();
        }
示例#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();
        }