public void CustomersInQueueDisplayedOnApplicationStartup() { FindCustomerAdapter findCustomer; FindCustomerResultsAdapter findCustomerResults; authen.SetUserNameAndPassword("Tom", "Password2"); shell = authen.OkClick(); //Add Kari to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "Kari"; findCustomerResults = findCustomer.Find(); addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit"; addReason.OkClick(); //Add Mary to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "Mary"; findCustomerResults = findCustomer.Find(); addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit"; addReason.OkClick(); StringCollection customersInQueue = shell.GetCustomersInQueue(); Assert.AreEqual <int>(2, customersInQueue.Count, "There should be 2 customers in the Queue on start up"); Assert.AreEqual <string>("Kari Hensien", customersInQueue[0], "Kari Hensien should be the first person in the Queue"); Assert.AreEqual <string>("Mary K Andersen", customersInQueue[1], "Mary K Andersen should be the second person in the Queue"); }
public void EscKeyMappedToCancelButtonInAddReasonWindow() { addReason = findCustomerResults.QueueForService(); addReason.Description = "Test Visit"; addReason.EscPressed(); Assert.IsTrue(addReason.Closed, "Add Reason Window is not closed"); }
public void AddReasonWindowClosedOnCancelClick() { addReason = findCustomerResults.QueueForService(); addReason.Description = "Test Visit"; addReason.Cancel(); Assert.IsTrue(addReason.Closed, "Add Reason Window is not closed"); }
public void VerifyInitialButtonStatusForAddReason() { //Assert.IsFalse(addReason.IsQueueForServiceButtonEnabled, "Queue For Service Button is Initially Enabled"); //Assert.IsFalse(addReason.IsSelfServiceButtonEnabled, "Self Service Button is Initially Enabled"); addReason = findCustomerResults.QueueForService(); Assert.IsTrue((!addReason.IsOkButtonEnabled), "Ok button is not Initially Disabled"); Assert.IsTrue(addReason.IsCancelButtonEnabled, "Cancel button is Initially Disabled"); }
public void CustomerAddedToQueueOnQueueToServiceClick() { addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit"; addReason.OkClick(); StringCollection customersInQueue = shell.GetCustomersInQueue(); Assert.AreEqual <int>(1, customersInQueue.Count, "There should be 1 customer in the Queue"); Assert.AreEqual <string>("Kari Hensien", customersInQueue[0], "Kari Hensein should be added to the Queue"); }
public void AddReasonScreenDisplayedOnAddReasonContextMenuClicked() { AddReasonAdapter addReason = null; try { addReason = findCustomerResults.AddReasonContextMenuClick(); Assert.IsNotNull(addReason, "Add Reason Screen not displayed"); } finally { if (addReason != null && !addReason.Closed) { addReason.Close(); } } }
public void ServiceCustomerLinkEnabledForNonEmptyCustomerQueue() { FindCustomerAdapter findCustomer; FindCustomerResultsAdapter findCustomerResults; authen.SetUserNameAndPassword("Tom", "Password2"); shell = authen.OkClick(); //Add Kari to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "Kari"; findCustomerResults = findCustomer.Find(); addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit"; addReason.OkClick(); Assert.IsTrue(shell.ServiceCustomerEnabled, "Service Customer Link disabled when Queue is non-empty"); }
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 CheckAccountValueAfterPurchasingCD() { purchaseCD.DurationTextBox = "150"; purchaseCD.AmountTextBox = "100"; purchaseCD.Purchase(); customerSummary.ServiceCompleted(); //check again the account combobox 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(); purchaseCD = rightPane.PurchaseCD(); Assert.IsTrue(CheckAccountComboBoxValues(2)); }
public void VerifyButtonStatusChangesInAddReasonWindow() { addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Certificate Deposit - Claims"; Assert.IsTrue(addReason.IsQueueForServiceButtonEnabled, "Queue For Service Button is Disabled when Reason Code is not empty"); Assert.IsTrue(addReason.IsSelfServiceButtonEnabled, "Self Service Button is Disabled when Description is not empty"); Assert.IsTrue(addReason.IsCancelButtonEnabled, "Cancel button is Initially Disabled"); addReason.Clear(); Assert.IsFalse(addReason.IsQueueForServiceButtonEnabled, "Queue For Service Button is Enabled when the Form is cleared"); Assert.IsFalse(addReason.IsSelfServiceButtonEnabled, "Self Service Button is Enabled when the Form is cleared"); Assert.IsTrue(addReason.IsCancelButtonEnabled, "Cancel button is Disabled"); addReason.Description = "Test Visit"; Assert.IsTrue(addReason.IsQueueForServiceButtonEnabled, "Queue For Service Button is Disabled when Description is not empty"); Assert.IsTrue(addReason.IsSelfServiceButtonEnabled, "Self Service Button is Disabled when Description is not empty"); Assert.IsTrue(addReason.IsCancelButtonEnabled, "Cancel button is Initially Disabled"); addReason.Clear(); Assert.IsFalse(addReason.IsQueueForServiceButtonEnabled, "Queue For Service Button is Enabled when the Form is cleared"); Assert.IsFalse(addReason.IsSelfServiceButtonEnabled, "Self Service Button is Enabled when the Form is cleared"); Assert.IsTrue(addReason.IsCancelButtonEnabled, "Cancel button is Disabled"); }
public void CustomerAddedToQueueInCorrectOrder() { addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit1"; addReason.OkClick(); //Add Mary to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "Mary"; findCustomerResults = findCustomer.Find(); addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit2"; addReason.OkClick(); //Check sequence in the queue StringCollection customersInQueue = shell.GetCustomersInQueue(); Assert.AreEqual <int>(2, customersInQueue.Count, "There should be 2 customer in the Queue"); Assert.AreEqual <string>("Kari Hensien", customersInQueue[0], "Kari Hensein should be added to the Queue"); Assert.AreEqual <string>("Mary K Andersen", customersInQueue[1], "Mary Andersen should be added to the Queue"); }
public void CustomerBeingServicedMovedToMyCustomerQueue() { FindCustomerAdapter findCustomer; FindCustomerResultsAdapter findCustomerResults; RightPaneAdapter rightPane; authen.SetUserNameAndPassword("Tom", "Password2"); shell = authen.OkClick(); //Add Kari to Queue 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(); shell.MyCustomerQueue(); StringCollection myCustomers = shell.GetCustomersInMyQueue(); Assert.AreEqual <int>(1, myCustomers.Count); Assert.AreEqual <string>("Kari Hensien", myCustomers[0], "Customer Name in MyQueue is not correct"); }
public void AddReasonCustomerInfoIsReadOnly() { addReason = findCustomerResults.QueueForService(); string previousValue = addReason.FirstName; addReason.FirstName = "Dravid"; Assert.AreNotEqual <string>("Dravid", addReason.FirstName, "First Name is not read-only"); Assert.AreEqual <string>(previousValue, addReason.FirstName, "First Name is not read-only"); previousValue = addReason.LastName; addReason.LastName = "Dravid"; Assert.AreNotEqual <string>("Dravid", addReason.LastName, "Last Name is not read-only"); Assert.AreEqual <string>(previousValue, addReason.LastName, "Last Name is not read-only"); previousValue = addReason.MiddleInitial; addReason.MiddleInitial = "D"; Assert.AreNotEqual <string>("D", addReason.MiddleInitial, "Middle Initial is not read-only"); Assert.AreEqual <string>(previousValue, addReason.MiddleInitial, "Middle Initial is not read-only"); previousValue = addReason.Street; addReason.Street = "NE 40th"; Assert.AreNotEqual <string>("NE 40th", addReason.Street, "Street is not read-only"); Assert.AreEqual <string>(previousValue, addReason.Street, "Street is not read-only"); previousValue = addReason.City; addReason.City = "Austin"; Assert.AreNotEqual <string>("Austin", addReason.City, "City is not read-only"); Assert.AreEqual <string>(previousValue, addReason.City, "City is not read-only"); previousValue = addReason.State; addReason.State = "TX"; Assert.AreNotEqual <string>("TX", addReason.State, "State is not read-only"); Assert.AreEqual <string>(previousValue, addReason.State, "State is not read-only"); previousValue = addReason.Zip; addReason.Zip = "74023"; Assert.AreNotEqual <string>("74023", addReason.Zip, "Zip is not read-only"); Assert.AreEqual <string>(previousValue, addReason.Zip, "Zip is not read-only"); previousValue = addReason.HomeNumber; addReason.HomeNumber = "2432213567"; Assert.AreNotEqual <string>("2432213567", addReason.HomeNumber, "Home Number is not read-only"); Assert.AreEqual <string>(previousValue, addReason.HomeNumber, "Home Number is not read-only"); previousValue = addReason.WorkNumber; addReason.WorkNumber = "2432213567"; Assert.AreNotEqual <string>("2432213567", addReason.WorkNumber, "Work Number is not read-only"); Assert.AreEqual <string>(previousValue, addReason.WorkNumber, "Work Number is not read-only"); previousValue = addReason.CellNumber; addReason.CellNumber = "2432213567"; Assert.AreNotEqual <string>("2432213567", addReason.CellNumber, "Cell Number is not read-only"); Assert.AreEqual <string>(previousValue, addReason.CellNumber, "Cell Number is not read-only"); previousValue = addReason.EMail; addReason.EMail = "*****@*****.**"; Assert.AreNotEqual <string>("*****@*****.**", addReason.EMail, "Email is not read-only"); Assert.AreEqual <string>(previousValue, addReason.EMail, "Email is not read-only"); previousValue = addReason.SSN; addReason.SSN = "243223567"; Assert.AreNotEqual <string>("243223567", addReason.SSN, "SSN is not read-only"); Assert.AreEqual <string>(previousValue, addReason.SSN, "SSN is not read-only"); }
public void AddReasonScreenDisplayedOnQueueForServiceClick() { addReason = findCustomerResults.QueueForService(); Assert.IsNotNull(addReason, "Add Reason Screen not displayed"); }
public void ClickingAddReasonOpenAsModalWindow() { addReason = findCustomerResults.QueueForService(); Assert.IsTrue(addReason.IsModal, "Add Reason Window is not Modal"); }
public void AddReasonWindowIsNotResizable() { addReason = findCustomerResults.QueueForService(); Assert.IsFalse(addReason.IsResizable, "Add Reason Window is Resizable"); }
public void AllControlsArePresentInAddReasonWindow() { addReason = findCustomerResults.QueueForService(); addReason.CheckPresenceOfControls(); }