public void LogIntoApplicationWhenOkClickedInLoginWindow()
        {
            authen.SetUserNameAndPassword("Jerry", "Password1");
            ShellAdapter shell = authen.OkClick();

            shell.Close();
        }
        public void InitializeApplication()
        {
            testHelper = new FunctionalTestHelper();
            testHelper.ReInitializeGlobalBank();

            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Tom", "Password2");
            shell        = authentication.OkClick();
            findCustomer = shell.FindCustomer();
        }
        public void InitializeApplication()
        {
            testHelper = new FunctionalTestHelper();
            testHelper.ReInitializeGlobalBank();

            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Jerry", "Password1");
            shell = authentication.OkClick();
            addCustomerToQueue = shell.AddNewCustomerToQueue();
        }
示例#4
0
 public void CheckCDNotListedOnOfficerApproval()
 {
     purchaseCD.DurationTextBox = "150";
     purchaseCD.AmountTextBox   = "10500";
     purchaseCD.SetAccountComboBoxValue("Savings[34522603] $ 15000");
     purchaseCD.Purchase();
     authentication = purchaseCD.ManagerApprovalLinkClick();
     authentication.SetUserNameAndPassword("Tom", "Password2");
     authentication.OkClick();
     customerSummary.SummaryTabClick();
     IsCDNotListedInCustomerProduct();
 }
示例#5
0
        public void CheckCDGetListedOnApprovalOfManager()
        {
            purchaseCD.DurationTextBox = "150";
            purchaseCD.AmountTextBox   = "10500";
            purchaseCD.SetAccountComboBoxValue("Savings[34522603] $ 15000");
            purchaseCD.Purchase();
            authentication = purchaseCD.ManagerApprovalLinkClick();
            authentication.SetUserNameAndPassword("Spike", "Password3");
            authentication.OkClick();

            IsCDListedInCustomerProduct(10500);
        }
示例#6
0
        public void InitializeApplication()
        {
            testHelper = new FunctionalTestHelper();
            testHelper.ReInitializeGlobalBank();

            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Tom", "Password2");
            shell = authentication.OkClick();

            findCustomer           = shell.FindCustomer();
            findCustomer.FirstName = "kari";
            findCustomerResults    = findCustomer.Find();
            addReason = findCustomerResults.QueueForService();
            addReason.ReasonForVisit = "Checking Account - Opening request";
            addReason.Description    = "Test Visit";
            addReason.OkClick();
            rightPane       = shell.ServiceCustomer();
            customerSummary = rightPane.CustomerSummary();
        }
        public void CheckCustomerSummaryDisplaysAllDetailsOfVisitor()
        {
            addCustomerToQueue.FirstName      = "Sandesh";
            addCustomerToQueue.MiddleInitial  = "P";
            addCustomerToQueue.LastName       = "Ambekar";
            addCustomerToQueue.Street         = "123, Test St.";
            addCustomerToQueue.City           = "Test City";
            addCustomerToQueue.State          = "Test State";
            addCustomerToQueue.Zip            = "123456";
            addCustomerToQueue.HomeNumber     = "1234567890";
            addCustomerToQueue.WorkNumber     = "1234567890";
            addCustomerToQueue.CellNumber     = "1234567890";
            addCustomerToQueue.SSN            = "123456789";
            addCustomerToQueue.EMail          = "SA@testmail";
            addCustomerToQueue.ReasonForVisit = "Checking Account - Opening request";
            addCustomerToQueue.Description    = "Test Visit";
            addCustomerToQueue.OkClick();

            shell.Close();
            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Tom", "Password2");
            shell = authentication.OkClick();
            shell.CustomerQueue();
            rightPane       = shell.ServiceCustomer();
            customerSummary = rightPane.CustomerSummary();
            Assert.AreEqual <string>("Sandesh P Ambekar", customerSummary.Name,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("Checking Account - Opening request", customerSummary.ReasonCode,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("Test Visit", customerSummary.ReasonDescription,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("123 Test St., Test City, Test State 12345",
                                     customerSummary.Address, "Address does not have the correct value");
            Assert.AreEqual <string>("123456789", customerSummary.SSN,
                                     "SSN does not have the correct number");
            Assert.AreEqual <string>("1234567890", customerSummary.HomeNumber,
                                     "Home Phone does not have the correct number");
            Assert.AreEqual <string>("SA@testmail", customerSummary.Email,
                                     "Email does not have the correct value");
        }
示例#8
0
 public void CheckInitialViewofShellOnApplicationStartup()
 {
     authen.SetUserNameAndPassword("Tom", "Password2");
     shell = authen.OkClick();
     shell.CheckInitialShellView();
 }