public void residualIncomeReportsSendAllOfficeCSVExcelPDF() { // 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 LoginHelper loginHelper = new LoginHelper(GetWebDriver()); ClientsHelper clientHelper = new ClientsHelper(GetWebDriver()); LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver()); ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver()); ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver()); //Login with valid credential Username loginAsCorpHelper.TypeText("EnterUsername", "selcorp"); //Login with valid credential password loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2"); //Click On Login Button loginAsCorpHelper.ClickElement("ClickOnLoginButton"); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab"); //Goto URL GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Select Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01"); //Select File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", ""); //Click on search resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Verify text resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("November 2015"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Select All Office resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll"); //MailPDF resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MailPDF"); //Send Excel resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //Goto URL GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Select Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01"); //Select File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", ""); //Click on search resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Select All Office resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll"); //MailPDF resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("EmailExcel"); //Send PDF resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //Goto URL GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Select Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01"); //Select File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", ""); //Click on search resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Select All Office resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll"); //MailPDF resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("EmailCSV"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //Email CSV resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); }
public void residualIncmeImportFirstDatanorthRevenueShareSet() { // 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 LoginHelper loginHelper = new LoginHelper(GetWebDriver()); ClientsHelper clientHelper = new ClientsHelper(GetWebDriver()); LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver()); ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver()); ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver()); //Login with valid credential Username loginAsCorpHelper.TypeText("EnterUsername", "selcorp"); //Login with valid credential password loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2"); //Click On Login Button loginAsCorpHelper.ClickElement("ClickOnLoginButton"); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab"); //Click to Import resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage(); //Click On Import New button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew"); //Processor resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11"); resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016"); //File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileDate", "2015-05-21"); String FileName = GetPath() + "images/FirstDataNorth_ResidualSamples - Small.csv"; resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Import resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //################################## SET FILTER ################################## //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported"); //############# CALCULATION WIZARD //Click On Calculation wizard resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Click On Step1 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnStep1"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("SeleniumOffive25", "25.0000"); // Click On Apply CheckBox resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("Sel10", "10.0000"); //Click ON Save button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalucationSaveBtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Click on skip step 2 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SkipStep2"); /* // Click On SetUp OverRide Revenue resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnRevenueAdjustment"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); //Enter Rule set name resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("EnterRuleSet", "TestR"); //Click On Save button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSavebtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000); */ // Publish Payout // resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("CalculatePayout"); // resdiualIncmeFstDataNrthHelper.elementpre(); // resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); // Publish Payout resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout"); // resdiualIncmeFstDataNrthHelper.elementpre(); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); //################################## SET FILTER ################################## //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published"); //Click on Office Payout resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ViewOfficePayout"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); //Verify text resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("600.00"); resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("250.00"); resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("300.00"); }
public void residualIncomeEmailThisReport() { // 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 LoginHelper loginHelper = new LoginHelper(GetWebDriver()); ClientsHelper clientHelper = new ClientsHelper(GetWebDriver()); LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver()); ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver()); ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver()); //Login with valid credential Username loginAsCorpHelper.TypeText("EnterUsername", "selcorp"); //Login with valid credential password loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2"); //Click On Login Button loginAsCorpHelper.ClickElement("ClickOnLoginButton"); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab"); //Click to Import resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage(); //Click On Import New button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew"); //Processor resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11"); //File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("FileDate"); //File Date resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("FileDate"); //Select date resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SeldectDate28"); String FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv"; resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Import resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //################################## SET FILTER ################################## //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2015"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported"); //############# CALCULATION WIZARD //Click On Calculation wizard resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Click On Step1 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnStep1"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("SeleniumOffive25", "25"); // Click On Apply CheckBox resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("Sel10", "10"); //Click ON Save button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalucationSaveBtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Click on skip step 2 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SkipStep2"); // Publish Payout resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("CalculatePayout"); // resdiualIncmeFstDataNrthHelper.elementpre(); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //Click on View Reports resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClcikOnViewReport"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); //################### RESIDUAL iNCOME Email This Report //Click On Email Icone resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnEmailIcone"); //Click On Send Button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSend1"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Verify Text Present resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("Reports"); }