コード例 #1
0
        public void ExecuteProjectActivityExtraInformation()
        {
            PortalUtils.Login(driver, "autom", "1234");

            PortalUtils.setUserRole(driver);

            PortalUtils.openProjectReportMenu(driver);

            PortalUtils.selectProjectActivityExtraInformation(driver);

            PortalUtils.runReportButton(driver);

            WizardUtils.setDescription(driver, "Project report - Project Activity extra information automated execution");

            //WizardUtils.setExpiryDate(driver, "31/12/2017");

            WizardUtils.clickNextExpiry(driver);

            WizardUtils.setPeriodStart(driver, "1/8/2016 12:00 AM");

            WizardUtils.setPeriodEnd(driver, "31/8/2016 11:59 PM");

            WizardUtils.setPeriodValuesSwitch(driver);

            WizardUtils.clickNextPeriod(driver);

            WizardUtils.setEmployeeFilter(driver, "William Hazel");

            WizardUtils.setProjectFilter(driver, "ProReport Project");

            WizardUtils.clickRunFilter(driver);

            PortalUtils.waitForTextInReport(driver, "46012, TEST: ProReport", 120);

            PortalUtils.saveReport(driver);

            PortalUtils.closeProjectReportMenu(driver);

            PortalUtils.Logout(driver);
        }
コード例 #2
0
        public void ExecuteProjectActivityRegistrations()
        {
            PortalUtils.Login(driver, "autom", "1234");

            PortalUtils.setUserRole(driver);

            PortalUtils.openProjectReportMenu(driver);

            PortalUtils.selectProjectActivityRegistrations(driver);

            PortalUtils.runReportButton(driver);

            WizardUtils.setDescription(driver, "Project report - Project Activity registrations automated execution");

            // WizardUtils.setExpiryDate(driver, "31/12/2017");

            WizardUtils.clickNextExpiry(driver);

            WizardUtils.setPeriodStart(driver, "01/08/2015 00:00");

            WizardUtils.setPeriodEnd(driver, "30/08/2016 23:59");

            WizardUtils.setPeriodValuesSwitch(driver);

            WizardUtils.clickNextPeriod(driver);

            WizardUtils.setEmployeeFilter(driver, "Theodore Hooks");

            WizardUtils.setProjectFilter(driver, "Project 00");

            WizardUtils.clickRunFilter(driver);

            PortalUtils.waitForTextInReport(driver, "9, Theodore Hooks", 120);

            PortalUtils.saveReport(driver);

            PortalUtils.closeProjectReportMenu(driver);

            PortalUtils.Logout(driver);
        }