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

            return(datarows);
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #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);
        }
コード例 #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();
     }
 }
コード例 #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();
     }
 }