public void Reports_SortingColumns_WS_1225() { if (!DataParser.ReturnExecution("WS_1225")) { Assert.Ignore(); } else { ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports(); Assert.AreEqual(url + "report/bae_awards", reportpage.GetCurrentUrl(), "URL is not the correct"); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(1); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(2); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(3); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(4); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(5); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(6); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickHeader(7); } }
public void Reports_TestLeftLinks_WS_1229() { if (!DataParser.ReturnExecution("WS_1229")) { Assert.Ignore(); } else { ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports(); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("All Awards"), "Option is not well written"); reportpage.ClickLeftMenu("All Awards"); Assert.AreEqual(url + "report/bae_awards", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("All Awards (Sector)"), "Option is not well written"); reportpage.ClickLeftMenu("All Awards (Sector)"); Assert.AreEqual(url + "report/bae_awards_by_sector", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Issued Awards"), "Option is not well written"); reportpage.ClickLeftMenu("Issued Awards"); Assert.AreEqual(url + "report/bae_issued_awards", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Teams Awards"), "Option is not well written"); reportpage.ClickLeftMenu("Teams Awards"); Assert.AreEqual(url + "report/awards_by_manager", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Milestones"), "Option is not well written"); reportpage.ClickLeftMenu("Milestones"); Assert.AreEqual(url + "report/milestones", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Received Awards"), "Option is not well written"); reportpage.ClickLeftMenu("Received Awards"); Assert.AreEqual(url + "report/bae_received_awards", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Payroll (Sector)"), "Option is not well written"); reportpage.ClickLeftMenu("Payroll (Sector)"); Assert.AreEqual(url + "report/bae_payroll_sector", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Payroll"), "Option is not well written"); reportpage.ClickLeftMenu("Payroll"); Assert.AreEqual(url + "report/bae_payroll", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Budget"), "Option is not well written"); reportpage.ClickLeftMenu("Budget"); Assert.AreEqual(url + "report/edit_budget_tool", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Pending Approvals"), "Option is not well written"); reportpage.ClickLeftMenu("Pending Approvals"); Assert.AreEqual(url + "report/pending_approvals", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Team Pending Approvals"), "Option is not well written"); reportpage.ClickLeftMenu("Team Pending Approvals"); Assert.AreEqual(url + "report/pending_approvals_by_manager", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Proxy Access"), "Option is not well written"); reportpage.ClickLeftMenu("Proxy Access"); Assert.AreEqual(url + "report/proxy_access", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Activity"), "Option is not well written"); reportpage.ClickLeftMenu("Activity"); Assert.AreEqual(url + "report/activities", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Missing Emails (Internal)"), "Option is not well written"); reportpage.ClickLeftMenu("Missing Emails (Internal)"); Assert.AreEqual(url + "report/bae_missing_emails", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Awards By Budget"), "Option is not well written"); reportpage.ClickLeftMenu("Awards By Budget"); Assert.AreEqual(url + "report/awards_by_budget_owner", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Payroll By Budget"), "Option is not well written"); reportpage.ClickLeftMenu("Payroll By Budget"); Assert.AreEqual(url + "report/payroll_by_budget_owner", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Manager Issued Awards"), "Option is not well written"); reportpage.ClickLeftMenu("Manager Issued Awards"); Assert.AreEqual(url + "report/manager_awards", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Awards By Payroll (HRBP)"), "Option is not well written"); reportpage.ClickLeftMenu("Awards By Payroll (HRBP)"); Assert.AreEqual(url + "report?reportName=bae_payroll_by_budget_owner_hrbp", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Budget Transactions"), "Option is not well written"); reportpage.ClickLeftMenu("Budget Transactions"); Assert.AreEqual(url + "report/budget_adjustments", reportpage.GetCurrentUrl(), "Url is not the expected one"); Assert.IsTrue(reportpage.IsOptLeftMenuNameDisplayed("Manager Award Totals"), "Option is not well written"); reportpage.ClickLeftMenu("Manager Award Totals"); Assert.AreEqual(url + "report/manager_issued_awards", reportpage.GetCurrentUrl(), "Url is not the expected one"); } }
public void Reports_TestReportLoadTimes_WS_1233() { if (!DataParser.ReturnExecution("WS_1233")) { Assert.Ignore(); } else { int[] list = new int[21]; for (int i = 0; i < 21; i++) { list[i] = Convert.ToInt32("1"); } ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports(); Assert.AreEqual(url + "report/bae_awards", reportpage.GetCurrentUrl(), "URL is not the correct"); Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load"); reportpage.ClickLeftMenu("All Awards"); if (!reportpage.LoadTakesMoreThan10sec()) { list[1] = 0; } reportpage.ClickLeftMenu("All Awards (Sector)"); if (!reportpage.LoadTakesMoreThan10sec()) { list[2] = 0; } reportpage.ClickLeftMenu("Issued Awards"); if (!reportpage.LoadTakesMoreThan10sec()) { list[3] = 0; } reportpage.ClickLeftMenu("Teams Awards"); if (!reportpage.LoadTakesMoreThan10sec()) { list[4] = 0; } reportpage.ClickLeftMenu("Milestones"); if (!reportpage.LoadTakesMoreThan10sec()) { list[5] = 0; } reportpage.ClickLeftMenu("Received Awards"); if (!reportpage.LoadTakesMoreThan10sec()) { list[6] = 0; } reportpage.ClickLeftMenu("Payroll (Sector)"); if (!reportpage.LoadTakesMoreThan10sec()) { list[7] = 0; } reportpage.ClickLeftMenu("Payroll"); if (!reportpage.LoadTakesMoreThan10sec()) { list[8] = 0; } reportpage.ClickLeftMenu("Budget"); if (!reportpage.LoadTakesMoreThan10sec()) { list[9] = 0; } reportpage.ClickLeftMenu("Pending Approvals"); if (!reportpage.LoadTakesMoreThan10sec()) { list[10] = 0; } reportpage.ClickLeftMenu("Team Pending Approvals"); if (!reportpage.LoadTakesMoreThan10sec()) { list[11] = 0; } reportpage.ClickLeftMenu("Proxy Access"); if (!reportpage.LoadTakesMoreThan10sec()) { list[12] = 0; } reportpage.ClickLeftMenu("Activity"); if (!reportpage.LoadTakesMoreThan10sec()) { list[13] = 0; } reportpage.ClickLeftMenu("Missing Emails (Internal)"); if (!reportpage.LoadTakesMoreThan10sec()) { list[14] = 0; } reportpage.ClickLeftMenu("Awards By Budget"); if (!reportpage.LoadTakesMoreThan10sec()) { list[15] = 0; } reportpage.ClickLeftMenu("Payroll By Budget"); if (!reportpage.LoadTakesMoreThan10sec()) { list[16] = 0; } reportpage.ClickLeftMenu("Manager Issued Awards"); if (!reportpage.LoadTakesMoreThan10sec()) { list[17] = 0; } reportpage.ClickLeftMenu("Awards By Payroll (HRBP)"); if (!reportpage.LoadTakesMoreThan10sec()) { list[18] = 0; } reportpage.ClickLeftMenu("Budget Transactions"); if (!reportpage.LoadTakesMoreThan10sec()) { list[19] = 0; } reportpage.ClickLeftMenu("Manager Award Totals"); if (!reportpage.LoadTakesMoreThan10sec()) { list[20] = 0; } int j = 0; while ((list[j] == 1) && (j < 21)) { j++; } if (j == 21) { Assert.Pass("All the links are loaded in less than 10 sec"); } Assert.Fail("Not all the links are loading in less than 10 secs"); } }