public void GivenSMSUserIsAlreadyEnrolledIntoTheInstructorCourseIfNotThenEnrollTheSMSUserInInstructorCourse() { try { string isInstructorEnrolledInCourse = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsInstructor); if (isInstructorEnrolledInCourse == null || isInstructorEnrolledInCourse.Equals("False") || isInstructorEnrolledInCourse.Equals("")) { GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor"); GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor(); GenericTestStep.StepToIAmOnThePage("Global Home"); GenericTestStep.StepToCreateInstructorCourse(); GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication(); } string isStudentEnrolledInCourse = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsStudent); if (isStudentEnrolledInCourse == null || isStudentEnrolledInCourse.Equals("False") || isStudentEnrolledInCourse.Equals("")) { GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent"); GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent(); GenericTestStep.StepToCloseStudentHelpTextWindow(); GenericTestStep.StepToIAmOnThePage("Global Home"); GenericTestStep.StepToEnrolStudentToCourse("MasterCourse"); GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication(); } } catch (Exception e) { GenericHelper.Logs(e.ToString(), "FAILED"); Assert.Fail(e.ToString()); } }
public void GivenSmsStudentisalreadyenrolledintotheSectionifnotthenenrolltheSmSusertoSection() { try { string isStudentEnrolled = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsStudent); if (isStudentEnrolled == null || isStudentEnrolled.Equals("False") || isStudentEnrolled.Equals("")) { GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor"); GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor(); GenericTestStep.StepToIAmOnThePage("Global Home"); GenericTestStep.StepToCreateProgramCourse(); GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication(); GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent"); GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent(); GenericTestStep.StepToCloseStudentHelpTextWindow(); GenericTestStep.StepToIAmOnThePage("Global Home"); GenericTestStep.StepToEnrolStudentToCourse("ProductTypeProg"); GenericTestStep.StepToSelectTheSectionName(); GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication(); } } catch (Exception e) { GenericHelper.Logs(e.ToString(), "FAILED"); Assert.Fail(e.ToString()); } }
public void GivenWsUserIsAlreadyEnrolledInTheTestingCourseCopyIfNotThenEnrollTheUserInTestingCourseCopy() { string isWsUserAlreadyEnrolled = DatabaseTools.GetEnrolledUser(Enumerations.UserType.HedWsInstructor); if (isWsUserAlreadyEnrolled == null || isWsUserAlreadyEnrolled.Equals("False") || isWsUserAlreadyEnrolled.Equals("")) { GenericTestStep.StepToEnrolUserInTestingCopyCourse(); GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Instructors enrolled successfully."); } }