Exemple #1
0
        public IEnumerable <DataRow> Initialize()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsCSRUser();
            //App = EllisHome.LaunchEllisAsDiffUserFromDesktop();
            CreateCustomerWindow.ClickOnCreateCustomer();
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateCustomer);

            return(datarows);
        }
Exemple #2
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 #3
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);
        }