public void PayrollCreateOrderTest() { EllisHome.LaunchEllisAsPRMUser(); var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateGarnishmentOrder); foreach (var datarow in datarows) { EllisHome.ClickOnFilePayrollCreateOrder(); CreateNewOrderWindow.EnterDataInCreateOrder(datarow); Factory.AssertIsTrue(CreateNewOrderWindow.VerifyCreatNeworderWindowDisplayed(), "Create New Garnishment Order Window Not Displayed"); } }
public void SearchAgencyFromCreateOrder() { var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateGarnishmentOrder); foreach (var datarow in datarows) { EllisHome.LaunchEllisAsPRMUser(); EllisHome.ClickOnFilePayrollCreateOrder(); CreateNewOrderWindow.EnterAgencySearchData(datarow); CreateNewOrderWindow.ClickSearchAgencyButton(); Playback.Wait(2000); Factory.AssertIsTrue(CreateNewOrderWindow.VerifySearchAgencyWindowDisplayed(), "Search Agency Window Not Displayed"); CreateNewOrderWindow.SelectAgencyRecord(datarow); Playback.Wait(2000); Factory.AssertIsTrue(CreateNewOrderWindow.VerifyUpdateAgencyWindowDisplayed(), "Update Agency Window Not Displayed"); CreateNewOrderWindow.CloseUpdateAgencyWindow(); CreateNewOrderWindow.CloseSearchAgencyWindow(); CreateNewOrderWindow.CloseCreateNewOrderWindow(); } }
public void AddNotesInGarnishmentOrder() { var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.SearchGarnishmentOrder); foreach (var datarow in datarows) { EllisHome.LaunchEllisAsPRMUser(); EllisHome.ClickOnFilePayrollCreateOrder(); CreateNewOrderWindow.ClickSearchOrderButton(); Playback.Wait(3000); Factory.AssertIsTrue(CreateNewOrderWindow.VerifySearchOrderWindowDisplayed(), "Search Order Window Not Displayed"); CreateNewOrderWindow.EnterDataInSearchOrderWindow(datarow); Playback.Wait(2000); Factory.AssertIsTrue(CreateNewOrderWindow.VerifyOrderDetailsWindowDisplayed(), "Order Details Window Not Displayed"); CreateNewOrderWindow.SelectNotesTab(); CreateNewOrderWindow.ClickOnAddNotesBtn(); Factory.AssertIsTrue(CreateNewOrderWindow.VerifyAddNOteWindowDisplayed(), "Add Note Window Not Displayed"); CreateNewOrderWindow.EnterDatainAddNoteWindow(datarow); CreateNewOrderWindow.CloseOrderDetailsWindow(); CreateNewOrderWindow.ClickCloseBtnSearchOrderWindow(); CreateNewOrderWindow.CloseCreateNewOrderWindow(); } }