public void ExecuteJobRegistrations() { PortalUtils.Login(driver, "autom", "1234"); PortalUtils.setUserRole(driver); PortalUtils.openJobReportMenu(driver); PortalUtils.selectJobRegistration(driver); PortalUtils.runReportButton(driver); WizardUtils.setDescription(driver, "Job report - Job Registration automated execution"); //WizardUtils.setExpiryDate(driver, "31/12/2017"); WizardUtils.clickNextExpiry(driver); WizardUtils.setPeriodStart(driver, "1/1/2000 12:00 AM"); WizardUtils.setPeriodEnd(driver, "10/6/2016 11:59 PM"); WizardUtils.setPeriodValuesSwitch(driver); WizardUtils.clickNextPeriod(driver); WizardUtils.setOrderFilter(driver, "Order 89456"); WizardUtils.setWorkcenterFilter(driver, "Workcenter dev"); WizardUtils.clickRunFilter(driver); PortalUtils.waitForTextInReport(driver, "89456, SelfSerive", 120); PortalUtils.saveReport(driver); PortalUtils.closeJobReportMenu(driver); PortalUtils.Logout(driver); }
public void ExecuteJobAccountWorkcenterOrder() { PortalUtils.Login(driver, "autom", "1234"); PortalUtils.setUserRole(driver); PortalUtils.openJobReportMenu(driver); PortalUtils.selectAccountWorkcenterOrder(driver); PortalUtils.runReportButton(driver); WizardUtils.setDescription(driver, "Job report - Account Workcenter Order automated execution"); //WizardUtils.setExpiryDate(driver, "31/12/2017"); WizardUtils.clickNextExpiry(driver); WizardUtils.setPeriodStart(driver, "10/6/2008 12:00 AM"); WizardUtils.setPeriodEnd(driver, "10/6/2016 11:59 PM"); WizardUtils.setPeriodValuesSwitch(driver); WizardUtils.clickNextPeriod(driver); WizardUtils.setWorkcenterFilter(driver, "Workcenter dev"); //WizardUtils.setAccountFilter(driver, "Filter multi account"); WizardUtils.clickRunFilter(driver); PortalUtils.waitForTextInReport(driver, "JJ, Jobkonto", 120); PortalUtils.saveReport(driver); PortalUtils.closeJobReportMenu(driver); PortalUtils.Logout(driver); }