public void residualIncomeSummaryReportFilter() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects ResidualIncmeOfficeHelper residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); //Variable String AdjName = "Rule Test" + RandomNumber(1,99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule // GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/adjustments_tool"); residualIncmeOfficeHelper.ClickElement("ReportSummaryLink"); residualIncmeOfficeHelper.WaitForWorkAround(4000); //Set Filter residualIncmeOfficeHelper.Select("SetFilterProcessor", "First Data North"); residualIncmeOfficeHelper.WaitForWorkAround(4000); //Veify FND residualIncmeOfficeHelper.VerifyText("VerifyTextFND", "First Data North"); //Set Filter residualIncmeOfficeHelper.Select("SetFilterProcessor", "WorldPay"); residualIncmeOfficeHelper.WaitForWorkAround(4000); //Veify FND residualIncmeOfficeHelper.VerifyText("VerifyTextFND", "WorldPay"); residualIncmeOfficeHelper.WaitForWorkAround(3000); //Set Filter residualIncmeOfficeHelper.Select("SetFilterProcessor", ""); residualIncmeOfficeHelper.WaitForWorkAround(4000); }
public void residualIncomePayoutSummaryOfficeViewReports() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable String AdjName = "Rule Test" + RandomNumber(1,99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary"); clientBugsHelper.WaitForWorkAround(4000); //File Format clientBugsHelper.Select("FileFormat", "First Data North"); clientBugsHelper.WaitForWorkAround(3000); //Select Status // clientBugsHelper.Select("SelectStatusRIReport", "Published"); // clientBugsHelper.WaitForWorkAround(3000); //Click On RI Date clientBugsHelper.ClickElement("ClickOnRIDate"); clientBugsHelper.WaitForWorkAround(3000); }
public void residualIncomeAdjustmentToolWith2014() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects ResidualIncmeOfficeHelper residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); //Variable String AdjName = "Rule Test" + RandomNumber(1,99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/adjustments_tool"); //Click on Craete button residualIncmeOfficeHelper.ClickElement("ClickOnCreateBtn"); residualIncmeOfficeHelper.WaitForWorkAround(3000); //Click on Save button residualIncmeOfficeHelper.ClickElement("ClickOnSaveBtn"); residualIncmeOfficeHelper.WaitForWorkAround(2000); //Enter Adjustment Name residualIncmeOfficeHelper.TypeText("AdjustmentName", AdjName); //Enter Description residualIncmeOfficeHelper.TypeText("Description", "This is testing Description"); //Select AdjustmentFor' residualIncmeOfficeHelper.Select("AdjustmentFor", "Agent"); //Select Adjustment Type residualIncmeOfficeHelper.Select("AdjustmentType", "Transaction"); //Select Reporting Period residualIncmeOfficeHelper.Select("ReportingPeriod", "01"); //Select Reporting year residualIncmeOfficeHelper.Select("SelectYearReporting", "2014"); //Select Processor residualIncmeOfficeHelper.Select("Processor", "Any"); //Click Radio button apply to all merchnat residualIncmeOfficeHelper.ClickElement("ApplyBeforRevenueShareCollection"); //Create Rule residualIncmeOfficeHelper.Select("SelectRuleType", "1"); //Enter Percentage Amount residualIncmeOfficeHelper.TypeText("Amount", "50"); //Remove residualIncmeOfficeHelper.Select("AddRemove", "Remove"); //Click on Save button residualIncmeOfficeHelper.ClickElement("ClickOnSaveBtn"); residualIncmeOfficeHelper.WaitForWorkAround(2000); residualIncmeOfficeHelper.VerifyPageText(AdjName); residualIncmeOfficeHelper.WaitForWorkAround(2000); //Enter Rule to search residualIncmeOfficeHelper.TypeText("EnterRuleToSearch",AdjName); residualIncmeOfficeHelper.WaitForWorkAround(3000); //Click on Rule residualIncmeOfficeHelper.ClickElement("ClickonRule"); residualIncmeOfficeHelper.WaitForWorkAround(4000); }
public void sentEmailVerifyResidualIncomeReports() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var email = "Testing" + RandomNumber(1,999) + "@yopmail.com"; var subject = "This is Testing Subject" + RandomNumber(1,999); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary"); clientBugsHelper.WaitForWorkAround(4000); //Select Status clientBugsHelper.Select("SelectStatusRIReport", "Published"); clientBugsHelper.WaitForWorkAround(3000); //Click on View Report clientBugsHelper.ClickElement("ViewReports"); clientBugsHelper.WaitForWorkAround(4000); //Verify Text Selenium Corp Residual Reports clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports"); //Click On Email Icon clientBugsHelper.ClickElement("ClickOnEmailIcon"); //Enter To Email clientBugsHelper.TypeText("EnterToEmailRI", email); //Enter Subject clientBugsHelper.TypeText("EnterSubjectAttRI", subject); //Click on Send button clientBugsHelper.ClickElement("EmailSendButtonRI"); clientBugsHelper.WaitForWorkAround(4000); //Verify Report Mail is Sent Successfully. clientBugsHelper.VerifyPageText("Report Mail is Sent Successfully."); //Click On Activity Tab clientBugsHelper.ClickElement("ClickOnActivityTab"); //Redirect To Page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/mails/sent"); clientBugsHelper.WaitForWorkAround(4000); //Enter To Search RI clientBugsHelper.TypeText("EnterToSearchRI",email); //Enter Subject clientBugsHelper.TypeText("EnterSubjectRI", subject); clientBugsHelper.WaitForWorkAround(4000); //Click on Email clientBugsHelper.ClickElement("ClickPDF"); clientBugsHelper.WaitForWorkAround(3000); clientBugsHelper.VerifyPageText(email); clientBugsHelper.VerifyPageText(subject); clientBugsHelper.WaitForWorkAround(3000); }