public void P20_1_z07_My_Training_Progress_Report_24843() { //Assert.IsTrue(true); //as it is running as part of smoke test. CommonSection.Administer.System.Reporting.ReportConsole(); _test.Log(Status.Info, "opened reports console from kview"); ReportsConsolePage.SearchText("My"); _test.Log(Status.Info, "Searched My"); Assert.IsTrue(ReportsConsolePage.DisplayResult > 1);//checks results display more than 1 ReportsConsolePage.ClickMyTrainingProgress(); _test.Log(Status.Info, "Clicked My Training Progress"); DetailsPage.ClickSelect(); _test.Log(Status.Info, "Clicked Select"); RunReportPage.ClickRunReport(); _test.Log(Status.Info, "CLicked Run report"); // Assert.IsTrue(MeridianGlobalReportingPage.Displays>1); MeridianGlobalReportingPage.ClickDetails(); _test.Log(Status.Info, "Clicked go button having details selected and opens details page"); //Assert.IsTrue(DetailsPage.CheckDetailsTabText.EndsWith("Details"));//retrieves the text from details tab DetailsPage.ClickCloseWindowlink(); _test.Log(Status.Info, "Details page closes"); Assert.IsTrue(MeridianGlobalReportingPage.Title == "Meridian Global Reporting"); // RunReportPage.ClickRunReport(); Assert.IsTrue(MeridianGlobalReportingPage.Displays > 1); DetailsPage.ClickExporttoPDF(); _test.Log(Status.Info, "CLick export to pdf"); Assert.IsTrue(MyTrainingProgressPDFPage.Title.EndsWith("My_Training_Progress.pdf")); // MyTrainingProgressPDFPage.ClickBrowsertabX(); // Assert.IsTrue(DetailsPage.Displays>1); //MeridianGlobalReportingPage.CloseWindow(); Assert.IsTrue(Driver.focusParentWindow()); _test.Log(Status.Info, "Closes pdf window"); Assert.IsTrue(RunReportPage.Title == "Run Report"); // Assert.IsTrue(Driver.focusParentWindow()); CommonSection.Avatar.Reports(); _test.Log(Status.Info, "open reports from KI"); ReportsPage.MyTrainingProgress.ClickRunReport(); _test.Log(Status.Info, "opens run report page from KI"); ReportsPage.ReportCriteriaModal.ClickRunReport(); _test.Log(Status.Info, "click run report from KI"); MeridianGlobalReportingPage.ClickDetails(); _test.Log(Status.Info, "click the go button having details option displayed"); string restext = DetailsPage.CheckDetailsTabText; StringAssert.EndsWith("Details", restext); DetailsPage.ClickCloseWindowlink(); _test.Log(Status.Info, "closed the details page "); Assert.IsTrue(MeridianGlobalReportingPage.Title == "Meridian Global Reporting"); // RunReportPage.ClickRunReport(); Assert.IsTrue(MeridianGlobalReportingPage.Displays > 1); DetailsPage.ClickExporttoPDF(); _test.Log(Status.Info, "CLick export to pdf"); Assert.IsTrue(MyTrainingProgressPDFPage.Title.EndsWith("My_Training_Progress.pdf")); MeridianGlobalReportingPage.CloseWindow(); _test.Log(Status.Info, "CLose window meridian global reporting page"); StringAssert.AreEqualIgnoringCase(RunReportPage.Title, "Reports"); }