コード例 #1
0
        public void createProcessor()
        {
            //   string[] username = null;
            //     string[] password = null;

            var 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 createProcessorHelper = new CreateProcessorHelper(GetWebDriver());

            //Variable
            var name = "Test" + GetRandomNumber();
            var Test = "New" + GetRandomNumber();

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsername", "selcorp");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPassword", "seWelcome2");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Residual Income tab
            createProcessorHelper.ClickElement("ClickMasterTab");

            //Click to Import
            createProcessorHelper.redirectToPage();

            //Click On Create
            createProcessorHelper.ClickElement("ClickOnCreate");

            //Click On Save Btn
            createProcessorHelper.ClickElement("ClickOnSaveBtn");
            createProcessorHelper.WaitForWorkAround(3000);

            //Enter Processor name
            createProcessorHelper.TypeText("ProcessorName", name);

            //Enter ProcessorCode
            createProcessorHelper.TypeText("ProcessorCode", Test);

            //Click On Save Btn
            createProcessorHelper.ClickElement("ClickOnSaveBtn");
            createProcessorHelper.WaitForWorkAround(3000);

            //Verify text present
            createProcessorHelper.VerifyPageText("The processor is successfully created!!");
            createProcessorHelper.WaitForWorkAround(3000);
        }
コード例 #2
0
        public void languagePushToOffice()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createProcessorHelper = new CreateProcessorHelper(GetWebDriver());
            var createLanguageHelper = new CreateLanguageHelper(GetWebDriver());

            //Variable
            var mail = "Test" + RandomNumber(1, 99) + "@yopmail.com";
            var numb = "12345678" + RandomNumber(10, 99);

               //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");
            loginAsCorpHelper.WaitForWorkAround(3000);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Clcik on Master Data
            createLanguageHelper.ClickElement("ClickOnMasterTabCorp");

            //Redirect To Language
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/languages");
             //   createLanguageHelper.ClickElement("LanguagesCorp");

            //Click On Create Btn
            createLanguageHelper.ClickElement("CreateNewLang");

            //Enter Language Name
            var lang = "PUSH TO OFFICE" + RandomNumber(99,999);
            createLanguageHelper.TypeText("CorpLanguage", lang);

            //Clcik on Master Data
            createLanguageHelper.ClickElement("SaveLang");
            createLanguageHelper.WaitForWorkAround(2000);

            //Verify Text
            createLanguageHelper.VerifyPageText("Language Created Successfully");
            createLanguageHelper.WaitForWorkAround(2000);

            //Click on Push To Office
            createLanguageHelper.ClickElement("PushToOfficeLang");

            //Click ok To Confirm
            createLanguageHelper.AcceptAlert();
            createLanguageHelper.WaitForWorkAround(2000);

            //Verify Confirmation Languges Successfully Pushed to Offices.
            createLanguageHelper.VerifyPageText("Languges Successfully Pushed to Offices.");
            createLanguageHelper.WaitForWorkAround(2000);

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

             //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/languages");

            //Search pushed language
            createLanguageHelper.TypeText("SearchLanguageOffice", lang);
            createLanguageHelper.WaitForWorkAround(5000);

            //Verify
            createLanguageHelper.VerifyPageText(lang);
            createLanguageHelper.WaitForWorkAround(2000);
        }
コード例 #3
0
        public void omahaAuthGridPushToOffice()
        {
            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createProcessorHelper = new CreateProcessorHelper(GetWebDriver());
            var createOmahaAuthGripCorpHelper = new CreateOmahaAuthGripCorpHelper(GetWebDriver());

            //Variable
            String name = "3" + RandomNumber(1, 99);
            String code = "1" + RandomNumber(1,99);

            //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");
            loginAsCorpHelper.WaitForWorkAround(3000);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //################################# MASTER DATA #############################################

            //Click on MASTER DATA
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnMasterDataTab");

            //##################  Redirect To Url

            //Redirect To URL
            createOmahaAuthGripCorpHelper.RedirectToPage();

            //################################# Create Product tab #############################################

            // Click On Create
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnCreate");

            //Enter Grid Id
            createOmahaAuthGripCorpHelper.TypeText("GridId", name);

            //Enter Visa Pos Authfees
            createOmahaAuthGripCorpHelper.TypeText("VisaPosAuthfees", code);

            //Enter MC Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("MCPosAuthFees", name);

            //Enter Amex Pos AuthFees
            createOmahaAuthGripCorpHelper.TypeText("AmexPosAuthFees", name);

            //Enter Disc Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("DiscPosAuthFees", code);

            //Enter JCD Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("JCDPosAuthFees", name);

            //Enter Voice Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("VoiceAuthFees", code);

            //Enter AVS Electronic Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSElectronicFees", name);

            //Enter AVS Voice Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSVoiveFees", code);

            //Enter AVS Voive Fees
            createOmahaAuthGripCorpHelper.TypeText("ARUFees", name);

              //  Click on Save button
            createOmahaAuthGripCorpHelper.ClickElement("SaveBtn");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Verify Page Text
            createOmahaAuthGripCorpHelper.VerifyPageText("Corporate Master Omaha Auth Grid Created Successfully.");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Push To Office
            createOmahaAuthGripCorpHelper.ClickElement("PushToOffice");

            //Click ok To Confirm
            createOmahaAuthGripCorpHelper.AcceptAlert();
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);

            //Verify Confirmation Languges Successfully Pushed to Offices.
            createOmahaAuthGripCorpHelper.VerifyPageText("Omaha Auth Grids successfully pushed to offices.");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);

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

            //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/omaha_auth_grids");

            //Search GripIdSrch
            createOmahaAuthGripCorpHelper.TypeText("GripIdSrch", name);
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Verify
            createOmahaAuthGripCorpHelper.VerifyPageText(name);
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);
        }
コード例 #4
0
        public void processorPuchToOffice()
        {
            //   string[] username = null;
            //     string[] password = null;

            var 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 createProcessorHelper = new CreateProcessorHelper(GetWebDriver());

            //Variable
            var name = "Test" + GetRandomNumber();
            var Test = "New" + GetRandomNumber();

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsername", "selcorp");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPassword", "seWelcome2");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Residual Income tab
            createProcessorHelper.ClickElement("ClickMasterTab");

            //Click to Import
            createProcessorHelper.redirectToPage();

            //Click On Create
            createProcessorHelper.ClickElement("ClickOnCreate");

            //Enter Processor name
            createProcessorHelper.TypeText("ProcessorName", name);

            //Enter ProcessorCode
            createProcessorHelper.TypeText("ProcessorCode", Test);

            //Click On Save Btn
            createProcessorHelper.ClickElement("ClickOnSaveBtn");
            createProcessorHelper.WaitForWorkAround(3000);

            //Verify text present
            createProcessorHelper.VerifyPageText("The processor is successfully created!!");
            createProcessorHelper.WaitForWorkAround(3000);

            //Click On Push Office
            createProcessorHelper.ClickElement("ClickOnPushOffice");

            createProcessorHelper.AcceptAlert();

            createProcessorHelper.WaitForWorkAround(5000);

            //################  LOGOUT ######################3
            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Logout button
            createProcessorHelper.ClickElement("ClickOnWelcomeBack");
            createProcessorHelper.WaitForWorkAround(4000);

            //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            createProcessorHelper.redirectToPayout();
        }
コード例 #5
0
        public void merchnatTypePushToOffice()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var createProcessorHelper = new  CreateProcessorHelper(GetWebDriver());
            var createMerchantTypeHelper = new CreateMerchantTypeHelper(GetWebDriver());

            //Variable
            var name = "Test" + GetRandomNumber();
            var Test = "New" + GetRandomNumber();

            //Login with valid credential  Username
            createMerchantTypeHelper.TypeText("EnterUsername", "selcorp");

            //Login with valid credential password
            createMerchantTypeHelper.TypeText("EnterPassword", "seWelcome2");

            //Click On Login Button
            createMerchantTypeHelper.ClickElement("ClickOnLoginButtojn");
            createMerchantTypeHelper.WaitForWorkAround(3000);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Residual Income tab
            createMerchantTypeHelper.ClickElement("ClickMasterTab");

            //Click to Import
            createMerchantTypeHelper.redirectToPage();

            //Click On Create
            createMerchantTypeHelper.ClickElement("ClickOnCreate");

            //Enter Merchant Type
            createMerchantTypeHelper.TypeText("MerchantType", name);

            //Click On Save Btn
            createMerchantTypeHelper.ClickElement("ClickOnSaveBtn");
            createMerchantTypeHelper.WaitForWorkAround(3000);

            //Click On Push Office
            createMerchantTypeHelper.ClickElement("ClickOnPushOffice");

            createMerchantTypeHelper.AcceptAlert();

            createMerchantTypeHelper.WaitForWorkAround(5000);

            //################  LOGOUT ######################3
            //Mover HoverWelcome
            createMerchantTypeHelper.MouseHover("WelcomeMoveHover");

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

            //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/merchant_types");
            createMerchantTypeHelper.WaitForWorkAround(2000);

            //Search Merchnat Type
            createMerchantTypeHelper.TypeText("SearchMerchnatType", name);
            createMerchantTypeHelper.WaitForWorkAround(3000);

            //Verify Merchnat
            createMerchantTypeHelper.VerifyPageText(name);
            createMerchantTypeHelper.WaitForWorkAround(3000);
        }