public void A04_Section_Enrollment_Summary_Report_35323() { // LoginPage.LoginAs("siteadmin").WithPassword("").Login(); CommonSection.Avatar.Account(); _test.Log(Status.Info, "Go to user Account"); AccountPage.ClickPreferencesTab(); _test.Log(Status.Info, "Click Preferences Tab"); AccountPage.ProfileTab.TimeZone(); _test.Log(Status.Info, "Record Time Zone"); CommonSection.Administer.System.Reporting.ReportConsole(); _test.Log(Status.Info, "It opens Report Console"); ReportsConsolePage.SearchText("Classroom Course Enrollment Summary"); _test.Log(Status.Info, "Search For Classroom Course Enrollment Summary"); ReportsConsolePage.ClickDisplayResult(); _test.Log(Status.Info, "Click Classroom Course Enrollment Summary Link"); ClassroomCourseEnrollmentPage.ClickSelect(); _test.Log(Status.Info, "Click Select Button"); #region Verifing Run Report Page Assert.IsTrue(RunReportPage.isOrganizationDisplayed()); _test.Log(Status.Pass, "Verify Organization is Displayed"); Assert.IsTrue(RunReportPage.isIncludeSubOrganizationDisplayed()); _test.Log(Status.Pass, "Verify Select organization is Displayed"); Assert.IsTrue(RunReportPage.isSectionActivityDisplayed()); _test.Log(Status.Pass, "Verify Section Activity is Displayed"); Assert.IsTrue(RunReportPage.isStartDateDisplayed()); _test.Log(Status.Pass, "Verify Start Date is Displayed"); Assert.IsTrue(RunReportPage.isEndDateDisplayed()); _test.Log(Status.Pass, "Verify End Date is Displayed"); Assert.IsTrue(RunReportPage.isCapacityDisplayed()); _test.Log(Status.Pass, "Verify Capacity is Displayed"); Assert.IsTrue(RunReportPage.isCapacityTextboxDisplayed()); _test.Log(Status.Pass, "Verify Capacity Textbox is Displayed"); Assert.IsTrue(RunReportPage.isEnrollmentDisplayed()); _test.Log(Status.Pass, "Verify Enrollment is Displayed"); Assert.IsTrue(RunReportPage.isEnrollmentTextboxDisplayed()); _test.Log(Status.Pass, "Verify Enrollment Textbox is Displayed"); Assert.IsTrue(RunReportPage.isRecordPerPageDisplayed()); _test.Log(Status.Pass, "Verify Record Per Page is Displayed"); Assert.IsTrue(RunReportPage.isLayoutDisplayed()); _test.Log(Status.Pass, "Verify Layout is Displayed"); Assert.IsTrue(RunReportPage.isRunReportButtonDisplayed()); _test.Log(Status.Pass, "Verify Run Report Button is Displayed"); RunReportPage.RunReportWith("Active", "1/1/2019", "1/16/2019", "Less Than/Equal To", "9", "Less Than/Equal To", "9", "25", "Default"); _test.Log(Status.Info, "Fill Data And Click Run Report"); #endregion Assert.IsTrue(MeridianGlobalReportingPage.isDisplayed()); _test.Log(Status.Pass, "Verify Meridian Global Reporting Page is Displayed "); #region Verifing MeridianGlobalReportingPage Links Assert.IsTrue(MeridianGlobalReportingPage.isPrintDisplayed()); _test.Log(Status.Pass, "Verify Print is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isSaveNewDisplayed()); _test.Log(Status.Pass, "Verify Save New is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isViewLayoutDisplayed()); _test.Log(Status.Pass, "Verify View Layout is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isRefreshDisplayed()); _test.Log(Status.Pass, "Verify Refresh is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isCloseWindowDisplayed()); _test.Log(Status.Pass, "Verify Close Window is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isExportToExcelDisplayed()); _test.Log(Status.Pass, "Verify Export To Excel is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isExportToPDFDisplayed()); _test.Log(Status.Pass, "Verify Export To PDF is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isExportToXMLDisplayed()); _test.Log(Status.Pass, "Verify Export To XML is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.isExportToCSVDisplayed()); _test.Log(Status.Pass, "Verify Export To CSV is Displayed"); #endregion #region Verifing MeridianGlobalReportingPage Summary Section // Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyReportDate()); _test.Log(Status.Pass, "Verify Summary Report Date"); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyOrganization()); _test.Log(Status.Pass, "Comparing Selected Organization Data with Displayed "); //Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifySubOrganization()); //_test.Log(Status.Pass, "Comparing Selected Sub Organization Data with Displayed "); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifySectionActivity()); _test.Log(Status.Pass, "Comparing Selected Section Activity with Displayed "); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyDateRange()); _test.Log(Status.Pass, "Comparing Date Range with Selected"); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyCapacity()); _test.Log(Status.Pass, "Comparing Filled Capacity with Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyEnrollment()); _test.Log(Status.Pass, "Comparing Filled Enrollment with Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyReportLayout()); _test.Log(Status.Pass, "Comparing Selected Report Layout with Displayed"); //Assert.IsTrue(MeridianGlobalReportingPage.Summary.VerifyTimeZone()); _test.Log(Status.Pass, "Verifing Time Zone"); #endregion #region Verifing MeridianGlobalReportingPage Table Section Assert.IsTrue(MeridianGlobalReportingPage.Table.isSectionTitleDisplayed()); _test.Log(Status.Pass, "Verify Section Title is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isCourseTitleDidplayed()); _test.Log(Status.Pass, "Verify Course Title is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isInstrustorDisplayed()); _test.Log(Status.Pass, "Verify Instrustor is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isLocationDisplaying()); _test.Log(Status.Pass, "Verify Location is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isStartDateDisplayed()); _test.Log(Status.Pass, "Verify Start Date is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isEndDateDisplayed()); _test.Log(Status.Pass, "Verify End Date is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isCapacityDisplayed()); _test.Log(Status.Pass, "Verify Capacity is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isEnrolledDisplayed()); _test.Log(Status.Pass, "Verify Enrolled is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isAttendDisplayed()); _test.Log(Status.Pass, "Verify Attend is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isAverageScoreDisplayed()); _test.Log(Status.Pass, "Verify Section Title is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isReportDropDownDisplayed()); _test.Log(Status.Pass, "Verify ReportDropDown is Displayed"); Assert.IsTrue(MeridianGlobalReportingPage.Table.isGoButtonDisplayed()); _test.Log(Status.Pass, "Verify Go Button is Displayed"); #endregion #region Print And Export Report //MeridianGlobalReportingPage.ExportToPDF();//Print the report //_test.Log(Status.Info, "CLick export to pdf"); //Assert.IsTrue(AllQuestionsAllSurveyPDFPage.Title.EndsWith("All_Questions_All_Survey.pdf")); //_test.Log(Status.Pass, "Verify pdf exported"); MeridianGlobalReportingPage.CloseWindow(); //_test.Log(Status.Info, "Closes pdf window"); ////MeridianGlobalReportingPage.Print(); //_test.Log(Status.Info, "Click Print Link"); //Assert.IsTrue(MeridianGlobalReportingPage.VerifyPrintWindowOpens()); //_test.Log(Status.Pass, "Verify Print window opens"); //Assert.IsTrue(MeridianGlobalReportingPage.PrintWindow.isContentDisplayed()); //_test.Log(Status.Pass, "Verify content is in proper readable format"); //MeridianGlobalReportingPage.ClosePrintWindow(); //_test.Log(Status.Info, "Print window Closes"); //MeridianGlobalReportingPage.ExportToExcel(); //_test.Log(Status.Info, "Click Export to Excel Link"); //Assert.IsTrue(MeridianGlobalReportingPage.VerifyExcelSheetOpens());//Handle Popup //_test.Log(Status.Pass, "Verify Excel window opens Displaying Summary Report"); //MeridianGlobalReportingPage.CloseExcelSheet(); //_test.Log(Status.Info, "Close Excel Window"); //MeridianGlobalReportingPage.ExportToPDF(); //_test.Log(Status.Info, "Click Export to PDF Link"); //Assert.IsTrue(MeridianGlobalReportingPage.VerifyPDFTabOpens());//New tab opens //_test.Log(Status.Pass, "Verify PDF opens in a new TAB Displaying Summary Report"); //MeridianGlobalReportingPage.ClosePDFTab(); //_test.Log(Status.Info, "Close PDF Tab"); //MeridianGlobalReportingPage.ExportToCSV(); //_test.Log(Status.Info, "Click Export to CSV Link"); //Assert.IsTrue(MeridianGlobalReportingPage.VerifyCSVSheetOpens());//Handle popup //_test.Log(Status.Pass, "Verify Excel window opens Displaying Summary Report in CSV Format"); //MeridianGlobalReportingPage.CloseCSVSheet(); //_test.Log(Status.Info, "Close Excel Window"); //MeridianGlobalReportingPage.ExportToXML(); //_test.Log(Status.Info, "Click Export to XML Link"); //Assert.IsTrue(MeridianGlobalReportingPage.VerifyXMLSheetOpens());//New tab opens //_test.Log(Status.Pass, "Verify XML opens in a new TAB Displaying Summary Report"); //MeridianGlobalReportingPage.CloseXMLSheet(); //_test.Log(Status.Info, "Close XML Tab"); #endregion }