public void ProgramAdminReportLaunchedSuccessfully(String reportType) { //Verification of tudent Enrollment report launched successfully Logger.LogMethodEntry("ProgramAdminReports", "ProgramAdminReportLaunchedSuccessfully", base.IsTakeScreenShotDuringEntryExit); // Creating Object of class RptStudentUsagePage RptStudentUsagePage rptStudentUsagePage = new RptStudentUsagePage(); //Get Course From Memory Course course = Course.Get(Course.CourseTypeEnum.HSSMyPsychLabProgram); //Assert to verify section name Logger.LogAssertion("VerifySectionName", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.AreEqual(course.SectionName, rptStudentUsagePage. GetSectionName((RptStudentUsagePage.ProgramAdminReportType)Enum. Parse(typeof(RptStudentUsagePage.ProgramAdminReportType), reportType)))); User user = User.Get(User.UserTypeEnum.HSSCsSmsStudent); String lastName = user.LastName; //Assert to verify student Logger.LogAssertion("VerifyStatus", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.IsTrue(rptStudentUsagePage.GetStatusText ((RptStudentUsagePage.ProgramAdminReportType)Enum. Parse(typeof(RptStudentUsagePage.ProgramAdminReportType), reportType)) .Contains(lastName))); Logger.LogMethodExit("ProgramAdminReports", "ProgramAdminReportLaunchedSuccessfully", base.IsTakeScreenShotDuringEntryExit); }
public void ProgramAdminReportLaunchedSuccessfully(String reportType) { //Verification of tudent Enrollment report launched successfully Logger.LogMethodEntry("ProgramAdminReports", "ProgramAdminReportLaunchedSuccessfully", base.IsTakeScreenShotDuringEntryExit); // Creating Object of class RptStudentUsagePage RptStudentUsagePage rptStudentUsagePage = new RptStudentUsagePage(); //Get Course From Memory Course course = Course.Get(Course.CourseTypeEnum.ProgramCourse); //Assert to verify section name Logger.LogAssertion("VerifySectionName", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.AreEqual(course.SectionName + ProgramAdminReportsResource.ProgramAdminReports_Page_Space_Value_One, rptStudentUsagePage. GetSectionName((RptStudentUsagePage.ProgramAdminReportType)Enum. Parse(typeof(RptStudentUsagePage.ProgramAdminReportType), reportType)))); //Assert to verify status Logger.LogAssertion("VerifyStatus", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.AreEqual(ProgramAdminReportsResource. ProgramAdminReports_Page_Status_Value, rptStudentUsagePage.GetStatusText ((RptStudentUsagePage.ProgramAdminReportType)Enum. Parse(typeof(RptStudentUsagePage.ProgramAdminReportType), reportType)))); Logger.LogMethodExit("ProgramAdminReports", "ProgramAdminReportLaunchedSuccessfully", base.IsTakeScreenShotDuringEntryExit); }