Пример #1
0
        /// <summary>
        /// Logs in as a trainee, clicks the Submit Portfolio button, then clicks the Submit button on the resulting popup, then logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeLogin"></param>
        public static void AsTrainee_SubmitPortfolio(IWebDriver browser, string traineeLogin)
        {
            LoginPage          LP = Navigation.GoToLoginPage(browser);
            DiplomaTraineePage TP = LP.LoginAsExistingUser(UserUtils.UserRole.TraineeDiploma, traineeLogin, "test");

            TP.SubmitPortfolio();
            TP.Logout();
        }
Пример #2
0
        /// <summary>
        /// Logs in as a trainee, selects "Needs Additional Information" in the Status drop down, clicks on the user-specified milestone, enters the user-specified
        /// text into the "Your Reply" text box, clicks Save, goes back to the Dashboard, clicks Save then logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeLogin"></param>
        /// <param name="milestoneName">The milestone to click in the milestone table. The milestone you want to send additional info for</param>
        /// <param name="additionalInfoText"></param>
        public static void AsTrainee_SendAdditionalInfo(IWebDriver browser, string traineeLogin, string milestoneName, string additionalInfoText)
        {
            LoginPage          LP = Navigation.GoToLoginPage(browser);
            DiplomaTraineePage TP = LP.LoginAsExistingUser(UserUtils.UserRole.TraineeDiploma, traineeLogin, "test");

            TP.SubmitAdditionalInfo(milestoneName, additionalInfoText);
            TP.Logout();
        }
Пример #3
0
        /// <summary>
        /// Logs in as a trainee, clicks on each milestone, uploads a document, sends the milestone to the CS, then logs out. Note that for this to work, you
        /// must seed this data into your environment, meaning you have to create a program on Lifetime Support
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeLogin"></param>
        /// <param name="clinicalSupervisorFullName"></param>
        /// <returns></returns>
        public static List <string> AsTrainee_SubmitAllMilestones(IWebDriver browser, string traineeLogin, string clinicalSupervisorFullName)
        {
            LoginPage          LP             = Navigation.GoToLoginPage(browser);
            DiplomaTraineePage TP             = LP.LoginAsNewUser(UserUtils.UserRole.TraineeDiploma, traineeLogin, "test");
            List <string>      milestoneNames = TP.CompleteAndSubmitAllMilestones(clinicalSupervisorFullName);

            TP.Logout();
            return(milestoneNames);
        }