예제 #1
0
        /// <summary>
        /// Logs in as the CU, clicks on the Assessors tab if we are not already there, clicks the Make Final Review button for a user-specified trainee,
        /// clicks on the Not Achieved radio button, enters text into Request Comments field, clicks the Submit button, then logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeFullName"></param>
        public static void AsCU_MakeFinalReview_MarkNotAchieved(IWebDriver browser, string traineeFullName)
        {
            LoginPage LP = Navigation.GoToLoginPage(browser);
            DiplomaCredentialStaffPage Page = LP.LoginAsExistingUser(UserUtils.UserRole.CUDiploma, UserUtils.CredentialStaffDiplomaLogin, "password");

            Page.MakeFinalReview(traineeFullName, false);
            Page.Logout();
        }
예제 #2
0
        /// <summary>
        /// Logs in as the Credential Staff user, clicks on the Assessors tab if we are not already there, clicks the Assign Third Assessor button for a
        /// user-specified trainee, chooses a user-specified third assessor, clicks the Submit button, then logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeFullName"></param>
        /// <param name="thirdAssessorFullName"></param>
        public static void AsCredentialStaff_AssignTraineeTo3rdAssessor(IWebDriver browser, string traineeFullName, string thirdAssessorFullName)
        {
            LoginPage LP = Navigation.GoToLoginPage(browser);
            DiplomaCredentialStaffPage Page = LP.LoginAsExistingUser(UserUtils.UserRole.CUDiploma, UserUtils.CredentialStaffDiplomaLogin, "password");

            Page.Assign3rdAssessor(traineeFullName, thirdAssessorFullName);
            Page.Logout();
        }
예제 #3
0
        /// <summary>
        /// Logs in as the Credential Staff user, clicks on the Portfolios Under Review tab, clicks on the Mark As Achieved button for a user-specified trainee,
        /// clicks the Submit button on the confirmation popup window, clicks on the Portfolios Under Review tab, clicks on the Record Payment button for the
        /// trainee, fills in the date and comments fields, clicks the Submit button on the confirmation popup window, clicks on the Portfolios Under Review tab,
        /// clicks on the Assign Reviewer button for a user-specified trainee, assigns 2 assessors, clicks the Submit button on the confirmation popup window,
        /// then logs out
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="traineeFullName">The trainee's first and last name. The exact text of the trainee from the Trainee column inside the Trainee table on the Referee tab</param>
        /// <param name="assessor1FullName">The first and last name of the assessor</param>
        /// <param name="assessor2FullName">The first and last name of the assessor</param>
        public static void AsCU_MarkAsAchievedRecordPaymentAndAssign2Assessors(IWebDriver browser, string traineeFullName, string assessor1FullName, string assessor2FullName)
        {
            LoginPage LP = Navigation.GoToLoginPage(browser);
            DiplomaCredentialStaffPage Page = LP.LoginAsExistingUser(UserUtils.UserRole.CUDiploma, UserUtils.CredentialStaffDiplomaLogin, "password");

            Page.MarkTraineeAsAchieved(traineeFullName);
            Page.RecordPayment(traineeFullName);
            Page.AssignReviewer(traineeFullName, assessor1FullName, assessor2FullName);
            Page.Logout();
        }