class CannedSavedDetails(CFMENavigateStep): prerequisite = NavigateToObject(CustomReport, 'All') def step(self): accordion.tree( "Reports", *(["All Reports"] + self.obj.path + [self.obj.datetime_in_tree]))
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")
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")
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])
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))
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
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()
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()
class SavedReportAll(CFMENavigateStep): prerequisite = NavigateToObject(Report, 'SavedReports')
class NeedA(NavigateStep): prerequisite = NavigateToObject(ObjectA, "StepOne") def step(self): state.append(self._name)
class CannedPath(CFMENavigateStep): prerequisite = NavigateToObject(CustomReport, 'All') def step(self): accordion.tree("Reports", *(["All Reports"] + self.obj.path))
class All(CFMENavigateStep): prerequisite = NavigateToObject(Report, 'Reports')
class ScheduleAll(CFMENavigateStep): prerequisite = NavigateToObject(Report, 'Schedules')
class DashboardAll(CFMENavigateStep): prerequisite = NavigateToObject(Report, 'Dashboards')