cfme.exceptions module

Provides custom exceptions for the cfme module.

exception cfme.exceptions.AccordionItemNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised when it’s not possible to locate and accordion item.

exception cfme.exceptions.AddProviderError[source]

Bases: cfme.exceptions.CFMEException

exception cfme.exceptions.AuthModeUnknown[source]

Bases: cfme.exceptions.CFMEException

Raised if an invalid authenctication mode is passed to cfme.configure.configuration.set_auth_mode()

exception cfme.exceptions.AutomateImportError[source]

Bases: cfme.exceptions.CFMEException

Raised by scripts dealing with Automate when importing automate XML fails

exception cfme.exceptions.BlockTypeUnknown[source]

Bases: cfme.exceptions.CFMEException

Raised if the block type requested to cfme.web_ui.InfoBlock.

exception cfme.exceptions.CFMEException[source]

Bases: exceptions.Exception

Base class for exceptions in the CFME tree

Used to easily catch errors of our own making, versus errors from external libraries.

exception cfme.exceptions.CFMEExceptionOccured[source]

Bases: cfme.exceptions.CFMEException

Raised by cfme.web_ui.cfme_exception.assert_no_cfme_exception() when there is a Rails exception currently on page.

exception cfme.exceptions.CandidateNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised if there is no candidate found whilst trying to traverse a tree in cfme.web_ui.Tree.click_path().

exception cfme.exceptions.CannotContinueWithNavigation[source]

Bases: cfme.exceptions.CFMEException

Used for telling force_navigate that is not possible to continue with navigation.

Raising it will recycle the browser, therefore refresh the session. If you pass a string to the constructor, it will be written to the log.

exception cfme.exceptions.CannotScrollException[source]

Bases: cfme.exceptions.CFMEException

Raised when even during the heaviest workarounds for scrolling failure comes.

exception cfme.exceptions.ElementOrBlockNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised if an Element or a Block is not found whilst locating in cfme.web_ui.InfoBlock().

exception cfme.exceptions.FlashMessageException[source]

Bases: cfme.exceptions.CFMEException

Raised by functions in cfme.web_ui.flash

skip_and_log(message='Skipping due to flash message')[source]
exception cfme.exceptions.HostNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised if a specific host cannot be found in UI.

exception cfme.exceptions.HostNotRemoved[source]

Bases: cfme.exceptions.CFMEException

Raised when utils.mgmt_system fails to remove host from cluster

exception cfme.exceptions.HostStatsNotContains[source]

Bases: cfme.exceptions.CFMEException

Raised if the hosts information does not contain the specified key whilst running cfme.cloud.provider.Provider.do_stats_match().

exception cfme.exceptions.InstanceNotFound[source]

Bases: cfme.exceptions.VmOrInstanceNotFound

Raised if a specific instance cannot be found.

exception cfme.exceptions.ListAccordionLinkNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised when active link containing specific text could not be found in expended cfme.web_ui.listaccordion content section.

exception cfme.exceptions.NavigationError(page_name)[source]

Bases: cfme.exceptions.CFMEException

Raised when the pytest.sel.go_to function is unable to navigate to the requested page.

exception cfme.exceptions.NoElementsInsideValue[source]

Bases: cfme.exceptions.CFMEException

Raised if the value part of key/value contains no elements during cfme.web_ui.InfoBlock.get_el_or_els().

exception cfme.exceptions.NotAllCheckboxesFound(failed_selects)[source]

Bases: cfme.exceptions.CFMEException

Raised if not all the checkboxes could be found during e.g. cfme.web_ui.CheckboxTable.select_rows() and other methods of this class.

exception cfme.exceptions.NotAllItemsClicked(failed_clicks)[source]

Bases: cfme.exceptions.CFMEException

Raised if not all the items could be clicked during cfme.web_ui.Table.click_cell().

exception cfme.exceptions.OptionNotAvailable[source]

Bases: cfme.exceptions.CFMEException

Raised if a specified option is not available.

exception cfme.exceptions.ProviderHasNoKey[source]

Bases: cfme.exceptions.CFMEException

Raised if the cfme.cloud.provider.Provider.get_mgmt_system() method is called but the Provider instance has no key.

exception cfme.exceptions.ProviderHasNoProperty[source]

Bases: cfme.exceptions.CFMEException

Raised if the provider does not have the property requested whilst running cfme.cloud.provider.Provider.do_stats_match().

exception cfme.exceptions.RequestException[source]

Bases: cfme.exceptions.CFMEException

Raised if a request was not found or multiple rows matched during _request functions in cfme.services.requests

exception cfme.exceptions.ScheduleNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised if a schedule was not found in cfme.configure.configuration.Schedule.delete_by_name()

exception cfme.exceptions.StorageManagerNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised when a Storage Manager is not found

exception cfme.exceptions.TemplateNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised if a specific Template cannot be found.

exception cfme.exceptions.ToolbarOptionGreyedOrUnavailable[source]

Bases: cfme.exceptions.CFMEException

Raised when toolbar wants to click item that is greyed or unavailable

exception cfme.exceptions.TreeTypeUnknown[source]

Bases: cfme.exceptions.CFMEException

Raised if the tree type is known whilst detection in cfme.web_ui.Tree

exception cfme.exceptions.UnidentifiableTagType[source]

Bases: cfme.exceptions.CFMEException

Raised if a tag type is not identifiable when processing a form in cfme.web_ui.Form.fill_fields().

exception cfme.exceptions.UnknownProviderType[source]

Bases: cfme.exceptions.CFMEException

Raised when the passed provider or provider type is not known or usable in given context e.g. when getting a provider from yaml and the provider type doesn’t match any of known types or when an infra provider is passed to the cloud’s instance_factory method

exception cfme.exceptions.VmNotFound[source]

Bases: cfme.exceptions.VmOrInstanceNotFound

Raised if a specific VM cannot be found.

exception cfme.exceptions.VmNotFoundViaIP[source]

Bases: cfme.exceptions.CFMEException

Raised if a specific VM cannot be found.

exception cfme.exceptions.VmOrInstanceNotFound[source]

Bases: cfme.exceptions.CFMEException

exception cfme.exceptions.ZoneNotFound[source]

Bases: cfme.exceptions.CFMEException

Raised when a specific Zone cannot be found in the method cfme.configure.configuration.