public void fieldDictionaryFields()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to Field Dictionary Fields page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/fields");

            //Verify Title
            VerifyTitle("Field Management");

               //Select Module
            partnerAgentHelperNewSkin.SelectByText("FSModule", "Clients");

            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            //Select Tab
            partnerAgentHelperNewSkin.SelectByText("FSTab", "Company Details");

            //Click on Search Button
            partnerAgentHelperNewSkin.ClickElement("FSSearch");

            //Verify field availabe
            partnerAgentHelperNewSkin.verifyElementPresent("FSFilter");

            //Enter  mail
            partnerAgentHelperNewSkin.TypeText("FSFilter", "Mail");

            //Click on Mail
            partnerAgentHelperNewSkin.ClickElement("FSMail");

            //Verify Manage button available
            partnerAgentHelperNewSkin.verifyElementPresent("FSManage");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void vendorEmailVerification()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Visit to create vendor page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/vendors/create");

            //Verify title
            VerifyTitle("Create a New Vendor");

            //Click on 'Save' button without entering details
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Verify Validation message displayed for email
            partnerAgentHelperNewSkin.verifyElementPresent("EmailVerification");

            //Enter invalid email
            partnerAgentHelperNewSkin.TypeText("EmailVendor", "INVALID");

            //Click on 'Save' button after entering invalid email
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Verify email validate
            partnerAgentHelperNewSkin.verifyElementPresent("EmailVerification");
            partnerAgentHelperNewSkin.VerifyPageText("Please enter a valid email address");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void clientRequiredField()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to create a client page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //Verify title
            VerifyTitle("Create a Client");

            //Click on Save button without entering any details
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Click on 'Company details' tab
            partnerAgentHelperNewSkin.ClickElement("ComDetails");

            //Verify error displayed for 'DBA field'
            partnerAgentHelperNewSkin.verifyElementPresent("DBAMandatory");
            partnerAgentHelperNewSkin.verifyElementPresent("DBAerror");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #4
0
        public void verifyAstrick()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Visit to Create office page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/offices/create");

            //Verify title
            VerifyTitle("Create an Office");

               //Verify astric is border
            partnerAgentHelperNewSkin.verifyElementPresent("Astric");

            //Go to create employee page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/employees/create");

            //Verify astric is border
            partnerAgentHelperNewSkin.verifyElementPresent("Astric");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #5
0
        public void createClientError()
        {
            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 partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //navigate to the Create client page.
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //verify title
            VerifyTitle("Create a Client");

            //Select Status
            partnerAgentHelperNewSkin.SelectByText("ClientStatus", "Agreement");

            //Select Responsibility
            partnerAgentHelperNewSkin.SelectByText("ClientRespo", "Aslam Khan");

            //Click on Company details tab
            partnerAgentHelperNewSkin.ClickElement("ClientCompany");

            //Verify field available for company DBA name
            partnerAgentHelperNewSkin.verifyElementPresent("ClientDBAName");

            //Enter DBA name
            partnerAgentHelperNewSkin.TypeText("ClientDBAName", "DBA");

            //Enter legal name
            partnerAgentHelperNewSkin.TypeText("ClientLegalName", RandomNumber(1,1000).ToString());

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Verify error not displayed
            partnerAgentHelperNewSkin.VerifyTextNotPresent("Already Exist");
        }
예제 #6
0
        public void agentCreateField()
        {
            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 partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //navigate to the Create partner agent page.
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/partners/agent/create");

            //verify title
            VerifyTitle("Create a Partner Agent");

            //Click on Create an user checkbox
            partnerAgentHelperNewSkin.ClickElement("CreateCheck");

            //Verify fields displayed
            partnerAgentHelperNewSkin.verifyElementPresent("VerifyField");
            //Wait for 10 secon
            partnerAgentHelperNewSkin.WaitForWorkAround(10000);

            //Verify fields displayed
            partnerAgentHelperNewSkin.verifyElementPresent("VerifyField");
        }
        public void blankSubjectValidation()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Visit to Opportunities page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities");

            //Verify title
            VerifyTitle("Opportunities");

               //Open an opportunities
            partnerAgentHelperNewSkin.ClickElement("OpenOpportunities");

            //Verify title
            VerifyTitle("Details");

            //Click on Add note button
            partnerAgentHelperNewSkin.ClickElement("AddNote");

            //Wait for text
            partnerAgentHelperNewSkin.WaitForText("Create a Note", 30);

            //Click on Save button without subject
            partnerAgentHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet");

            //Verify validation message
            partnerAgentHelperNewSkin.verifyElementPresent("NoteError");
            partnerAgentHelperNewSkin.WaitForText("This field is required",30);

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void createReportValidation()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to create a report page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/reports/create");

            //Verify title
            VerifyTitle("Reports - Create");

            //Verify astrick sign is available for name
            partnerAgentHelperNewSkin.verifyElementPresent("NameStar");

            //Verify astrick sign is available for name
            partnerAgentHelperNewSkin.verifyElementPresent("ModuleStar");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void shippingFilterError()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Visit to create vendor page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/shipping_carriers");

            //Verify title
            VerifyTitle("Shipping Carriers");

            //Apply Filter
            partnerAgentHelperNewSkin.TypeText("FilterName", GetRandomNumber().ToString());
            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            //Verify filter available
            partnerAgentHelperNewSkin.verifyElementNotPresent("NonFilter");

            //Click on Refresh button
            partnerAgentHelperNewSkin.ClickElement("RefreshButton");

            //verify title
            VerifyTitle("Shipping Carriers");

            //Verify filter reset
            partnerAgentHelperNewSkin.verifyElementPresent("NonFilter");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #10
0
        public void userCountPage()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to User page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/users");

            //Verify title
            VerifyTitle("selOffice's Users");

            //Verify user count page is available
            partnerAgentHelperNewSkin.verifyElementPresent("UserSelectCount");

            //Change count
            int result = partnerAgentHelperNewSkin.changeCount("10");

            //Verify user count
            partnerAgentHelperNewSkin.verifyCount(10,result);

            //Change count
            result = partnerAgentHelperNewSkin.changeCount("20");

            //Verify user count
            partnerAgentHelperNewSkin.verifyCount(20,result);

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #11
0
        public void trashIconAvail()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to document page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/documents");

            //verify title
            VerifyTitle("Documents");

            //Open Docuemnt
            partnerAgentHelperNewSkin.ClickElement("OpenDoc");

            //verify title
            VerifyTitle("Document View");

               //Verify trash icon available
            partnerAgentHelperNewSkin.verifyElementPresent("Trash");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void clientMerchantIssue1()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to create a client page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //Verify title
            VerifyTitle("Create a Client");

            //Click on 'Merchant number' tab
            partnerAgentHelperNewSkin.ClickElement("MerchantNumber");

            //Verify Merchant number tab is highlighted
            partnerAgentHelperNewSkin.verifyElementPresent("MerchantNumberHighlighted");

            //Verify Customer relationship is not displayed as highlighted
            partnerAgentHelperNewSkin.verifyElementNotPresent("CustomerRelationHighlighted");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #13
0
        public void ticketingSystem()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to Ticket setting page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/tickets/settings");

            //Verify title
            VerifyTitle("Settings");

            //Verify options avaliable under set Assigned to as dropdown
            partnerAgentHelperNewSkin.verifyElementPresent("TSDropdown");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void residualAdjustmentTool()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to Create Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/create");

            //Verify title
            VerifyTitle("Residual Master Rules - Create Adjustments");

            //Click on 'Save' button without filling any field
            partnerAgentHelperNewSkin.ClickElement("RMPSave");

            //Verify error message
            partnerAgentHelperNewSkin.verifyElementPresent("RMPProcessorError");
            partnerAgentHelperNewSkin.verifyElementPresent("RMPSetNameError");

            //Select Processor
            partnerAgentHelperNewSkin.SelectByText("RMPProcessor", "Chy Processor");

            //Click on 'Save' button after selecting Processor
            partnerAgentHelperNewSkin.ClickElement("RMPSave");

            //Verify error
            partnerAgentHelperNewSkin.verifyElementPresent("RMPSetNameError");

            //Select Ammount
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Amount");

            //Enter amount in alphabets
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "Alpha");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter amount in numeric
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "123");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Select Percantage
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Percentage");

            //Enter Percantage in alphabets
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "Alpha");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter Percantage in numeric
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "13");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error not displayed
            //            partnerAgentHelperNewSkin.verifyElementNotPresent("RMPRuleError");

            //Select Ammount
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Amount");

            //Enter Ammount upto 3 decimal
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "123.234");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Select Percantage
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Percentage");

            //Enter Percantage more than 100
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "1234");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Click on Add another button.
            partnerAgentHelperNewSkin.ClickElement("RMPAddRule");

            //Verify Field added
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter ammount
            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
예제 #15
0
        public void one000Added()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to client page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients");

            //Verify title
            VerifyTitle("Clients");

            //Click on Advance filter
            partnerAgentHelperNewSkin.ClickElement("Advance");

            //Veirfy website is available under the filter
            partnerAgentHelperNewSkin.verifyElementPresent("PegResult");

            //Go to contact page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/contacts");

            //Verify title
            VerifyTitle("Contacts");

            //Click on Advance filter
            partnerAgentHelperNewSkin.ClickElement("Advance");

            //Veirfy website is available under the filter
            partnerAgentHelperNewSkin.verifyElementPresent("PegResult");

            //Go to Tickets page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/tickets");

            //Verify title
            VerifyTitle("Tickets");

            //Click on Advance filter
            partnerAgentHelperNewSkin.ClickElement("Advance");

            //Veirfy website is available under the filter
            partnerAgentHelperNewSkin.verifyElementPresent("PegResult");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void residualAdjustmentTool1()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //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.");

            //Go to Create Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/adjustments_tool/create");

            //Verify title
            VerifyTitle("Create Adjustment");

               //Select Merchant
            partnerAgentHelperNewSkin.SelectByText("RPMAdjust", "Agent");

            //Click on specific agent
            partnerAgentHelperNewSkin.ClickElement("RPMSpeficAgent");

            //Click on 'Select agent'
            partnerAgentHelperNewSkin.ClickElement("RPMSelectAgent");

            //Verify Page is clickable
            partnerAgentHelperNewSkin.ClickElement("RPMClose");

            //Click on Specific Merchant
            partnerAgentHelperNewSkin.ClickElement("RPMSpeficMerchant");

            //Click on 'Select marchent'
            partnerAgentHelperNewSkin.ClickElement("RPMSelectMerchant");

            //Verify Page is clickable
            partnerAgentHelperNewSkin.ClickElement("RPMClose");

            //Select Proseccor
            partnerAgentHelperNewSkin.SelectByText("RPMSelectProcessor", "Chy Processor");

            //Verify file format contains dropdown
            partnerAgentHelperNewSkin.verifyElementPresent("RPMFileFormat");

            //Select type
            partnerAgentHelperNewSkin.SelectByText("RPMType", "Transaction");

            //Enter Name
            partnerAgentHelperNewSkin.TypeText("RPMName", "Demo");

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet");

            //Go to Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/adjustments_tool");

            //Verify title
            VerifyTitle("Adjustments Tool");

            //Click on Reporting Period
            partnerAgentHelperNewSkin.ClickElement("RPMPeriod");

            //Verify Calendar available
            partnerAgentHelperNewSkin.verifyElementPresent("RPMCalender");

            //Enter ammount
            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }