Exemplo n.º 1
0
 public void VerifyCustomerSearchValidationErrorDisplayedTest()
 {
     Initialize();
     SearchWindow.SelectSearchElements(null, "Customer", SearchWindow.SearchTypeConstants.Advanced);
     CustomerAdvanceSearchWindow.ClickOnSearchButton();
     Playback.Wait(2000);
     Factory.AssertIsTrue(CustomerAdvanceSearchWindow.VerifySearchValidationWindowDisplayed(),
                          "Search validation error window was not displayed");
     Playback.Wait(2000);
     CustomerAdvanceSearchWindow.ClickValidationOk();
     CustomerAdvanceSearchWindow.CloseSearchResultsWindow();
     Cleanup();
 }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 public void CustomerAdvanceSearch()
 {
     try
     {
         Initialize();
         int i        = 1;
         var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CustomerAdvancedSearch);
         foreach (var dataRow in datarows.Where(v => !String.IsNullOrWhiteSpace(v.ItemArray[3].ToString())).Take(6))
         {
             Debug.WriteLine("Test Case " + i++ + " - " + dataRow.ItemArray[24]);
             SearchWindow.SelectSearchElements(null, "Customer", SearchWindow.SearchTypeConstants.Advanced);
             CustomerAdvanceSearchWindow.EnterAdvancedSearchData(dataRow);
             CustomerAdvanceSearchWindow.ClickOnSearchButton();
             Factory.AssertIsTrue(CustomerAdvanceSearchWindow.VerifySearchResultsWindowDisplayed(),
                                  "Search validation error window was not displayed");
         }
     }
     finally
     {
         Cleanup();
     }
 }