private static bool VerifyAramarkCorporationProfileDisplayed()
        {
            Globals.CustomerName = "ARAMARK CORPORATION";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyPhillipGrekoProfileDisplayed()
        {
            Globals.CustomerName = "Phillip Greko";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyKristanSchriderProfileDisplayed()
        {
            Globals.CustomerName = "Kristan Schrider";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyRoseHembrookProfileDisplayed()
        {
            Globals.CustomerName = "ROSE HEMBROOK";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyBenCreteIncProfileDisplayed()
        {
            Globals.CustomerName = "BEN-CRETE, INC.";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyLisaFlemmingProfileDisplayed()
        {
            Globals.CustomerName = "lisa flemming";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyNumaticFinishingCorpProfileDisplayed()
        {
            Globals.CustomerName = "NUMATIC FINISHING CORP.";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        public void VerifyARCustomerProfileDefaultsTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            ARWindow.SelectCustomerCollectionFromLandingPage();
            CustomerProfileWindow.SelectTab(CCTabConstants.Invoices);
            Factory.AssertIsTrue(CustomerProfileWindow.VerifyNoteTypeOptionsDisplayed(), "Note type options are not displayed.");

            CustomerProfileWindow.SelectTab(CCTabConstants.Notes);
            ARWindow.ClickAddNoteButton();

            Factory.AssertIsTrue(ARWindow.VerifyBalanceDueAmountDisplayed(), "Balance amount is not displayed");
            Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNameLinkClicked(),
                                 "Customer profile window is not displayed when customer name link is clicked");
            CustomerProfileWindow.CloseCustomerProfileWindow();

            //Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNumberLinkClicked(),
            //    "Customer profile window is not displayed when customer number link is clicked");
            //CustomerProfileWindow.CloseCustomerProfileWindow();
            TitlebarActions.ClickClose((WinWindow)ARWindow.GetCustomerCollectionsWindowProperties());

            LandingPage.SelectEODReviewFromNavigationExplorer();
            ARWindow.SearchForAllEODReviews();

            Cleanup();
        }
Exemple #9
0
        public void InvoiceRelationShipsAdvanceSearch()
        {
            Initialize();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.ARAdvancedSearch);

            foreach (var dataRow in datarows)
            {
                if (dataRow.ItemArray[1].ToString() == "Relationship")
                {
                    SearchWindow.SelectSearchElements(null, "IRelationShips2", SearchWindow.SearchTypeConstants.Advanced);
                    ARAdvancedSearchWindow.EnterRelationshipSearchData(dataRow);
                    ARAdvancedSearchWindow.ClickSearchBtn();
                    Playback.Wait(10000);
                    var relationship = ARAdvancedSearchWindow.SelectInvoiceRecord(dataRow.ItemArray[75].ToString());
                    if (relationship)
                    {
                        Playback.Wait(7000);
                        MouseActions.ClickButton(CustomerProfileWindow.GetCustomerInvoiceWindowProperties(), "_btnCancel");
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                    if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed())
                    {
                        ARAdvancedSearchWindow.CloseSearchResultsWindow();
                    }
                }
            }
            Cleanup();
        }
Exemple #10
0
        public static bool VerifyProfileWindowDisplayedWhenCusNumberLinkClicked()
        {
            var prop  = GetCustomerCollectionsWindowProperties();
            var link  = prop.Container.SearchFor <WinCustom>(new { ControlName = ARControls.CustNumber });
            var child = link.GetChildren();

            Actions.MouseClickOnCoordinates(child[3]);

            return(CustomerProfileWindow.GetCustomerProfileWindowProperties().Enabled);
        }
Exemple #11
0
        public static bool VerifyCustomerProfileWindowDisplayedWhenCustomerNumberClicked()
        {
            var custom = Actions.GetWindowChild(EllisWindow, ARControls.CustNumber);
            var child  = custom.GetChildren();

            Actions.MouseClickOnCoordinates(child[3]);

            var prop = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(prop.Exists);
        }
        public void VerifyARCancelCallbackNewNoteTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            if (RightClick.CallBack())
            {
                Factory.AssertIsTrue(ARWindow.AddNoteWindowDisplayed(), "Add Note window is not displayed");

                ARWindow.AddNewNoteToCancelCallback();
                Factory.AssertIsTrue(ARWindow.VerifyNewNoteAdded(), "New note is not added to the cancel callback");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
            Cleanup();
        }
        public void LockoutNotificationTest()
        {
            Initialize();
            SearchWindow.SelectSearchElements("Test", "Customer", SearchWindow.SearchTypeConstants.Simple);
            if (CustomerProfileWindow.SelectFirstCustomerFromTable())
            {
                CustomerProfileWindow.ClickCreateNewQuoteButton();
                CustomerProfileWindow.CloseWarningWindow();
                CustomerProfileWindow.CreateNewQuoteWithDefaultData();

                Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                     "Customer profile window is not displayed");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
        }
        public void VerifyARRescheduleNewNoteTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            if (RightClick.Reschedule())
            {
                Factory.AssertIsTrue(ARWindow.VerifyCustomerCollectionsWindowDisplayed(),
                                     "Customer collections window is not displayed");

                ARWindow.AddNewNoteToUnpaidInvoice();
                Factory.AssertIsTrue(ARWindow.VerifyNewNoteAdded(), "New note is not added to the unpaid invoice");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
            Cleanup();
        }
Exemple #15
0
        public void CustomerCalendarFilterTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("Customers");
            LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced);
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "01012014");
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedToDate, "02272014");
            //LandingPage.ClickOnCalendarClient();
            SendKeys.SendWait("{TAB}");
            CustomerProfileWindow.SelectFirstCustomerFromTable();
            Factory.AssertIsTrue(CustomerProfileWindow.VerifyProfileDefaults(), "");

            TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());

            Cleanup();
        }
Exemple #16
0
        public static bool VerifyNewNoteAdded()
        {
            var prop = GetCustomerCollectionsWindowProperties();
            var cell = TableActions.SelectCellFromTable(prop, ARControls.OverdueCustomers,
                                                        "OverdueCustomerSummaryDomain row 2",
                                                        "Customer Name");

            Globals.CustomerName = cell.Value;
            Mouse.DoubleClick(cell);

            var returnAns =
                CustomerProfileWindow.VerifyNewNoteDisplayedInGrid(
                    "This is an unpaid invoice. This note is just for testing purpose.");

            return(returnAns);
        }
        public void QuoteSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Quote")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Quote",
                                                  SearchWindow.SearchTypeConstants.Simple);

                Factory.AssertIsTrue(CustomerProfileWindow.VerifyQuoteProfileWindowDisplayed(), "Quote profile window is not displayed");
                CustomerProfileWindow.CloseQuoteProfileWindow();
                Playback.Wait(5000);
            }
            Cleanup();
        }
Exemple #18
0
        public void CreateCODCustomerWithFedIdTest()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows)
            {
                CreateCustomerWindow.EnterCustomerData(datarow, "Fed", "COD");
                CreateCustomerWindow.ClickSave();
                CreateCustomerWindow.HandleExistingFEDCustomer();

                //TODO: Change Assert state for demo
                Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                     "COD Customer Profile not displayed for new COD customer with FED ID");
            }
            Cleanup();
        }
Exemple #19
0
        public static void VerifyTestCustomerPresent()
        {
            SearchWindow.SearchWindow.SelectSearchElements("Test_Customer", "Customer", SearchWindow.SearchWindow.SearchTypeConstants.Simple);
            Globals.CustomerName = "Test_Customer7381";

            if (CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed() ||
                SearchWindow.SearchWindow.SelectFirstCustomerNameFromResults())
            {
                return;
            }

            CustomerAdvanceSearchWindow.CloseSearchResultsWindow();
            CreateCustomerWindow.ClickOnCreateCustomer();
            CreateCustomerWindow.EnterCustomerData(null);
            CreateCustomerWindow.ClickSave();
            Playback.Wait(3000);
        }
Exemple #20
0
        public void NAAMCreateCustomerTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsNAAMUser();
            CreateCustomerWindow.ClickOnCreateCustomer();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.DiffCredsCreateCustomer);

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[3].ToString().Contains("NAAM")))
            {
                CreateCustomerWindow.EnterCustomerData(datarow, "Fed", null);
                CreateCustomerWindow.ClickSave();
                CreateCustomerWindow.HandleExistingFEDCustomer();
                Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                     "NAPS Customer Profile not displayed for new customer with FED ID");
            }
            Cleanup();
        }
Exemple #21
0
 public void CreateCODCustomerWithoutFedIdTest()
 {
     try
     {
         var datarows = Initialize();
         foreach (var datarow in datarows.Take(3))
         {
             CreateCustomerWindow.EnterCustomerData(datarow, null, "COD");
             CreateCustomerWindow.ClickSave();
             Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                  "COD Customer Profile not displayed for new COD customer without FED ID");
         }
     }
     finally
     {
         Cleanup();
     }
 }
Exemple #22
0
 public void CreateNewCustomerWithFedIdTest()
 {
     try
     {
         var datarows = Initialize();
         foreach (var datarow in datarows)
         {
             CreateCustomerWindow.EnterCustomerData(datarow, "Fed", null);
             CreateCustomerWindow.ClickSave();
             CreateCustomerWindow.HandleExistingFEDCustomer();
             Factory.AssertIsTrue(CustomerProfileWindow.VerifyCustomerProfileWindowDisplayed(),
                                  "Customer Profile not displayed for new customer with FED ID");
         }
     }
     finally
     {
         Cleanup();
     }
 }
        public void CustomerSimpleSearch()
        {
            try
            {
                var datarows = Initialize();
                foreach (var dataRow in datarows.Where(dataRow => dataRow.ItemArray[4].ToString().Equals("Customer")))
                {
                    Debug.WriteLine(dataRow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), "Customer",
                                                      SearchWindow.SearchTypeConstants.Simple);
                    Playback.Wait(3000);
                    Globals.CustomerName = dataRow.ItemArray[6].ToString();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerProfileDisplayed(dataRow.ItemArray[6].ToString()),
                                         "Customer profile for " + dataRow.ItemArray[5] + " Is not displayed");

                    TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());
                }
            }
            finally
            {
                Cleanup();
            }
        }
        public static bool VerifyCustomerProfileDisplayed(string data)
        {
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Name.Contains(data));
        }
        public static bool VerifySearchResultsWindowDisplayed()
        {
            try
            {
                var searchResultsWindow = GetSearchResultsWindowProperties();
                if (searchResultsWindow.Enabled)
                {
                    Playback.Wait(3000);
                    CloseSearchResultsWindow();
                    return(true);
                }

                var validationWindow = GetSearchValidationErrorWindowProperties();
                if (validationWindow.Exists)
                {
                    MouseActions.ClickButton(validationWindow, "_OKButton");
                    ClickOnCancelButton();
                    return(true);
                }
                return(false);
            }
            catch (Exception)
            {
                //suppress any exception here
                if (VerifyNumaticFinishingCorpProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyBenCreteIncProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyLisaFlemmingProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyKristanSchriderProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyRoseHembrookProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyAramarkCorporationProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyPhillipGrekoProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }
            }
            return(false);
        }