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");
        }
コード例 #3
0
        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");
        }
コード例 #4
0
        public void residualIncmeRevenueShareSetupCancel()
        {
            //   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");

            //Click on cancel
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnShareCancel");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);
        }
コード例 #5
0
        public void residualIncomeViewReportsCorp()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(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
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var 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 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("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // 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");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click on Report View
            clientBugsHelper.ClickElement("CorpViewReports");
            clientBugsHelper.WaitForWorkAround(4000);

            //Verify text Selenium Corp Residual Reports
            clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports");
            clientBugsHelper.WaitForWorkAround(4000);
        }
コード例 #6
0
        public void residualIncmeImportRevenueAdustment()
        {
            //   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());

            //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
             resdiualIncmeSkipHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeSkipHelper.redirectToPage();

            //Click On Import New button
            resdiualIncmeSkipHelper.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeSkipHelper.Select("ProcessorType", "First Data North");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeSkipHelper.Select("ReportingPeriod", "11");

            //File Date
            resdiualIncmeSkipHelper.TypeText("FileDate", "2015-05-21");

            String FileName = GetPath() + "images/FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeSkipHelper.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeSkipHelper.WaitForWorkAround(4000);

            //Import
            resdiualIncmeSkipHelper.ClickElement("ClickOnImportBtn");
            resdiualIncmeSkipHelper.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeSkipHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeSkipHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeSkipHelper.Select("SelectStatus", "Imported");

            //Click On Calculation wizard
            resdiualIncmeSkipHelper.ClickElement("ClickOnCalculation");
            resdiualIncmeSkipHelper.WaitForWorkAround(4000);

              //###########   SKIP
            resdiualIncmeSkipHelper.ClickElement("ClickOnSkip");
            resdiualIncmeSkipHelper.WaitForWorkAround(2000);

            //Click On RevnvenueAdjmnt
            resdiualIncmeSkipHelper.ClickElement("ClickOnREnvenueAdjmnt");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            // Click To del Rule B
            resdiualIncmeSkipHelper.ClickElement("ClickTodelRuleB");
            resdiualIncmeSkipHelper.AcceptAlert();

            //Enter Rule Name
            resdiualIncmeSkipHelper.TypeText("EnterRuleName", "Rule 1");

            //Click on Selenium
            resdiualIncmeSkipHelper.ClickElement("SelectOfficeSel");

            //Select Rule Type
            resdiualIncmeSkipHelper.Select("SelectRuleType", "Amount");

            //Enter AMount
            resdiualIncmeSkipHelper.TypeText("EnterAmount", "250");

            //SelectAddRemove
            resdiualIncmeSkipHelper.Select("SelectAddRemove", "Add");

            //Click ON Save button
            resdiualIncmeSkipHelper.ClickElement("ClickToSaveRule");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            // Calculate Payout
            resdiualIncmeSkipHelper.ClickElement("CalculatePayout");
            resdiualIncmeSkipHelper.WaitForWorkAround(8000);

            // Publish Payout
            resdiualIncmeSkipHelper.ClickElement("PublishPayout");
               //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeSkipHelper.WaitForWorkAround(8000);

            //##############        FILTER
            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeSkipHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeSkipHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeSkipHelper.Select("SelectStatus", "Published");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            //Click on Office Payout
            resdiualIncmeSkipHelper.ClickElement("ViewOfficePayout");
            resdiualIncmeSkipHelper.WaitForWorkAround(15000);

            //#######################   VERIFY TEXT PRESENT

               // Verify 500
            resdiualIncmeSkipHelper.VerifyPageText("500.00");

            // Verify850
            resdiualIncmeSkipHelper.VerifyPageText("850.00");

            // Verify400
            resdiualIncmeSkipHelper.VerifyPageText("400.00");

            // Verify500
            resdiualIncmeSkipHelper.VerifyPageText("750.00");

            // Verify500
            resdiualIncmeSkipHelper.VerifyPageText("300.00");
            resdiualIncmeSkipHelper.WaitForWorkAround(5000);
        }
コード例 #7
0
        public void residualIncomePublishPayoutFromOffice()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(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
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var 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 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("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // 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");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Logout
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Click on Residual Income Tab
            clientBugsHelper.ClickElement("ClickOnPDFTemplates");
            clientBugsHelper.WaitForWorkAround(3000);

            //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //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 New
            clientBugsHelper.Select("SelectStatusRIReport", "New");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Calculation Wizard
            clientBugsHelper.ClickElement("ClickOnCalculationWizard");

            //Agent LookUp
            clientBugsHelper.ClickElement("AgentLookUp");
            clientBugsHelper.WaitForWorkAround(3000);

            //Calculate Adjustment
            clientBugsHelper.ClickElement("CalculateAdjustment");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Adjustments calculation successfully completed");

            //AgentPayout Calculation
            clientBugsHelper.ClickElement("AgentPayoutCalculation");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click Publish
            clientBugsHelper.ClickElement("ClickPublish");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Payouts Published.");

            //View Published PayoutRI
            clientBugsHelper.ClickElement("ViewPublishedPayoutRI");
            clientBugsHelper.WaitForWorkAround(3000);
        }