public IEnumerable <DataRow> Initialize() { WindowsActions.KillEllisProcesses(); App = EllisHome.LaunchEllisAsCSRUser(); //App = EllisHome.LaunchEllisAsDiffUserFromDesktop(); CreateCustomerWindow.ClickOnCreateCustomer(); var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateCustomer); return(datarows); }
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(); }
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); }