コード例 #1
0
class CannedSavedDetails(CFMENavigateStep):
    prerequisite = NavigateToObject(CustomReport, 'All')

    def step(self):
        accordion.tree(
            "Reports",
            *(["All Reports"] + self.obj.path + [self.obj.datetime_in_tree]))
コード例 #2
0
class ScheduleAll(CFMENavigateStep):
    prerequisite = NavigateToObject(Server, 'Configuration')

    def step(self):
        server_region = store.current_appliance.server_region_string()
        self.prerequisite_view.accordions.settings.tree.click_path(
            server_region, "Schedules")
コード例 #3
0
class AnalysisProfileAll(CFMENavigateStep):
    VIEW = AnalysisProfileAllView
    prerequisite = NavigateToObject(Server, 'Configuration')

    def step(self):
        server_region = self.obj.appliance.server_region_string()
        self.prerequisite_view.accordions.settings.tree.click_path(
            server_region, "Analysis Profiles")
コード例 #4
0
class WidgetsAll(CFMENavigateStep):
    prerequisite = NavigateToObject(Report, 'DashboardWidgets')

    def step(self):
        accordion.tree("Dashboard Widgets", "All Widgets", self.obj.TITLE)

    def am_i_here(self, *args, **kwargs):
        return summary_title() == "{} Widgets".format(self.obj.TITLE[:-1])
コード例 #5
0
class SavedDetails(CFMENavigateStep):
    prerequisite = NavigateToObject(CustomReport, 'All')

    def step(self):
        accordion.tree(
            "Reports", "All Reports",
            "{} (All EVM Groups)".format(self.obj.appliance.company_name),
            "Custom", self.obj.report.menu_name, self.obj.datetime_in_tree)

    def am_i_here(self):
        return sel.is_displayed(
            "//div[@class='dhtmlxInfoBarLabel' and contains(., 'Saved Report \"{} {}')]"
            .format(self.obj.report.title, self.obj.datetime_in_tree))
コード例 #6
0
class All(CFMENavigateStep):
    # This view will need to be created
    VIEW = BaseLoggedInPage
    prerequisite = NavigateToObject(Server, 'LoggedIn')

    def step(self):
        self.prerequisite_view.navigation.select('Compute',
                                                 'Physical Infrastructure',
                                                 'Providers')

    def resetter(self):
        # Reset view and selection
        pass
コード例 #7
0
class All(CFMENavigateStep):
    VIEW = InfraProvidersView
    prerequisite = NavigateToObject(Server, 'LoggedIn')

    def step(self):
        self.prerequisite_view.navigation.select('Compute', 'Infrastructure',
                                                 'Providers')

    def resetter(self):
        # Reset view and selection
        tb = self.view.toolbar
        if 'Grid View' not in tb.view_selector.selected:
            tb.view_selector.select('Grid View')
        self.view.entities.paginator.reset_selection()
コード例 #8
0
class All(CFMENavigateStep):
    VIEW = ProvidersView
    prerequisite = NavigateToObject(Server, 'LoggedIn')

    def step(self):
        self.prerequisite_view.navigation.select('Compute', 'Infrastructure',
                                                 'Providers')

    def resetter(self):
        # Reset view and selection
        tb = self.view.toolbar
        paginator = self.view.paginator
        if 'Grid View' not in tb.view_selector.selected:
            tb.view_selector.select('Grid View')
        if paginator.exists:
            paginator.check_all()
            paginator.uncheck_all()
コード例 #9
0
ファイル: saved.py プロジェクト: davej27625/integration_tests
class SavedReportAll(CFMENavigateStep):
    prerequisite = NavigateToObject(Report, 'SavedReports')
コード例 #10
0
class NeedA(NavigateStep):

    prerequisite = NavigateToObject(ObjectA, "StepOne")

    def step(self):
        state.append(self._name)
コード例 #11
0
class CannedPath(CFMENavigateStep):
    prerequisite = NavigateToObject(CustomReport, 'All')

    def step(self):
        accordion.tree("Reports", *(["All Reports"] + self.obj.path))
コード例 #12
0
class All(CFMENavigateStep):
    prerequisite = NavigateToObject(Report, 'Reports')
コード例 #13
0
class ScheduleAll(CFMENavigateStep):
    prerequisite = NavigateToObject(Report, 'Schedules')
コード例 #14
0
class DashboardAll(CFMENavigateStep):
    prerequisite = NavigateToObject(Report, 'Dashboards')