/// <summary> /// Logs in as an assessor, clicks the Review button for a user-specified trainee, clicks on the milestone links in the Milestone table, /// clicks on the Request Additional Information button, enters text into the Comments field, clicks the Submit button, logs out /// </summary> /// <param name="browser"></param> /// <param name="traineeFullName">The trainee's first and last name</param> /// <param name="milestoneName">The milestone name as it appears in the text of the HTML element</param> /// <param name="additionalInfoText">The text you want to enter for the requested or submitted additional info</param> public static void AsAssessor_RequestAdditionalInfo(IWebDriver browser, string assessorLogin, string traineeFullName, string requestedMilestone) { LoginPage LP = Navigation.GoToLoginPage(browser); DiplomaAssessorPage DP = LP.LoginAsExistingUser(UserUtils.UserRole.ASRDiploma, assessorLogin, "test"); DP.RequestAdditionalInfo(traineeFullName, requestedMilestone, "This is the requested additional info text"); DP.Logout(); }
/// <summary> /// Logs in as an assessor, clicks the Review button for a user-specified Trainee, clicks on the milestone links in the Milestone table, /// marks the milestone as Not Achieved, then logs out /// </summary> /// <param name="browser">The driver instance</param> /// <param name="assessorLogin">The assessor's login</param> /// <param name="traineeFullName">The trainee's first and last name</param> public static void AsAssessor_RejectTrainee(IWebDriver browser, string assessorLogin, string traineeFullName) { LoginPage LP = Navigation.GoToLoginPage(browser); DiplomaAssessorPage DP = LP.LoginAsExistingUser(UserUtils.UserRole.ASRDiploma, assessorLogin, "test"); DP.MarkAllMilestones(traineeFullName, false); DP.Logout(); }
/// <summary> /// Logs in as an assessor, clicks on the Review button for a trainee to go to the trainee dashboard, clicks on a user-specified milestone, returns /// either true or false depeneding on if it finds the user-specified additional information /// </summary> /// <param name="browser"></param> /// <param name="assessorLogin"></param> /// <param name="traineeFullName">Trainee's first and last name</param> /// <param name="milestoneName">The milestone you want to verify</param> /// <param name="additionalInfo">The additional info text that you want to verify is present for the milestone</param> /// <returns></returns> public static bool AsAssessor_VerifyAdditionalInfo(IWebDriver browser, string assessorLogin, string traineeFullName, string milestone, string additionalInfo) { LoginPage LP = Navigation.GoToLoginPage(browser); DiplomaAssessorPage DP = LP.LoginAsExistingUser(UserUtils.UserRole.ASRDiploma, assessorLogin, "test"); bool verified = DP.VerifyAdditionalInfo(traineeFullName, milestone, additionalInfo); DP.Logout(); return(verified); }