public void TestAddRegistration() { PortalUtils.Login(driver, "autom", "1234"); PortalUtils.setEmployeeRole(driver); PortalUtils.openLeftSideMenu(driver); PortalUtils.selectMenuTab(driver, 2); Thread.Sleep(2000); PortalUtils.closeLeftSideMenu(driver); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Add"); Thread.Sleep(1000); ProjectWeekUtils.setProject(driver, "0001"); ProjectWeekUtils.setActivity(driver, "001"); ProjectWeekUtils.setTimeType(driver, "Normal"); ProjectWeekUtils.setHoursByDay(driver, "8:00", "Monday"); ProjectWeekUtils.clickSaveButton(driver); Thread.Sleep(1000); ProjectWeekUtils.selectRegistrationByProject(driver, "Dimension Project"); ProjectWeekUtils.selectButton(driver, "Delete"); Thread.Sleep(2000); ProjectWeekUtils.confirmDelete(driver); Thread.Sleep(1000); PortalUtils.Logout(driver); }
public void TestDeleteMultipleRegistrations() { PortalUtils.Login(driver, "autom", "1234"); PortalUtils.setEmployeeRole(driver); PortalUtils.openLeftSideMenu(driver); PortalUtils.selectMenuTab(driver, 2); Thread.Sleep(2000); PortalUtils.closeLeftSideMenu(driver); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Add"); Thread.Sleep(1000); ProjectWeekUtils.setProject(driver, "0001"); ProjectWeekUtils.setActivity(driver, "001"); ProjectWeekUtils.setTimeType(driver, "Normal"); ProjectWeekUtils.setHoursByDay(driver, "8:00", "Monday"); ProjectWeekUtils.clickSaveButton(driver); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Add"); Thread.Sleep(1000); ProjectWeekUtils.setProject(driver, "00"); ProjectWeekUtils.setActivity(driver, "PRIT"); ProjectWeekUtils.setTimeType(driver, "Normal"); ProjectWeekUtils.setHoursByDay(driver, "8:00", "Tuesday"); ProjectWeekUtils.clickSaveButton(driver); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Add"); Thread.Sleep(1000); ProjectWeekUtils.setProject(driver, "0002"); ProjectWeekUtils.setActivity(driver, "03"); ProjectWeekUtils.setTimeType(driver, "Normal"); ProjectWeekUtils.setHoursByDay(driver, "8:00", "Wednesday"); ProjectWeekUtils.clickSaveButton(driver); Thread.Sleep(1000); ProjectWeekUtils.selectRegistrationByProject(driver, "Dimension Project"); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Delete"); Thread.Sleep(1000); ProjectWeekUtils.confirmDelete(driver); Thread.Sleep(2000); ProjectWeekUtils.selectRegistrationByProject(driver, "Project for ProReport"); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Delete"); Thread.Sleep(1000); ProjectWeekUtils.confirmDelete(driver); Thread.Sleep(1000); ProjectWeekUtils.selectRegistrationByProject(driver, "General - CC/R&D"); Thread.Sleep(1000); ProjectWeekUtils.selectButton(driver, "Delete"); Thread.Sleep(1000); ProjectWeekUtils.confirmDelete(driver); Thread.Sleep(2000); PortalUtils.Logout(driver); }