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();
            }
        }
Beispiel #2
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();
        }
Beispiel #3
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();
        }
Beispiel #4
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);
        }
Beispiel #5
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();
     }
 }
Beispiel #6
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();
     }
 }