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(); }
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); }
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(); } }
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(); } }