Robot Framework Integrated Development Environment (RIDE)
robotide.searchtests.searchtests.TestSearchPlugin Class Reference

A plugin for searching tests based on name, tags and documentation. More...

Inheritance diagram for robotide.searchtests.searchtests.TestSearchPlugin:
robotide.pluginapi.plugin.Plugin

Public Member Functions

def __eq__ (self, other)
 
def __hash__ (self)
 
def __lt__ (self, other)
 
def disable (self)
 Called by RIDE when the plugin is disabled. More...
 
def enable (self)
 This method is called by RIDE when the plugin is enabled. More...
 
def show_empty_search (self, event)
 
def show_search_for (self, text)
 
def show_search_for_tag_patterns (self, includes, excludes)
 
def show_tag_search (self, message)
 
- Public Member Functions inherited from robotide.pluginapi.plugin.Plugin
def __getattr__ (self, name)
 Provides convenient attribute access to saved settings. More...
 
def __init__ (self, application, name=None, doc=None, metadata=None, default_settings=None, initially_enabled=True)
 Initialize the plugin with the provided data. More...
 
def add_tab (self, tab, title, allow_closing=True)
 Adds the tab with the title to the tabbed notebook and shows it. More...
 
def all_testcases (self)
 Returns all test cases from all suites in one, unsorted list. More...
 
def allow_tab_closing (self, tab)
 Allows closing a tab that has been created using allow_closing=False. More...
 
def config_panel (self, parent)
 Called by RIDE to get the plugin configuration panel. More...
 
def content_assist_values (self, value='')
 Returns content assist values for currently selected item. More...
 
def delete_tab (self, tab)
 Deletes the tab added using add_tab. More...
 
def disallow_tab_closing (self, tab)
 Disallows closing a tab by use. More...
 
def get_editor (self, item_class)
 Return the current editor class for the given model item class. More...
 
def get_editors (self, item_class)
 Return all registered editors for the given model item class. More...
 
def get_keyword (self, name)
 Returns the keyword object with the given name or None. More...
 
def get_keyword_details (self, name)
 Returns details (documentation, source) of keyword with name name. More...
 
def get_plugins (self)
 Returns list containing plugin wrapper for every loaded plugin. More...
 
def get_selected_datafile (self)
 Returns the data file that is currently selected in the tree. More...
 
def get_selected_item (self)
 Returns the item that is currently selected in the tree. More...
 
def get_user_keyword (self, name)
 Returns user keyword instance whose name is name or None. More...
 
def highlight (self, data, text)
 Highlight a specific text of a given data's edito. More...
 
def highlight_cell (self, tcuk, obj=None, row=-1, column=-1)
 Highlight a specific row/column of a test case or user keyword. More...
 
def is_library_keyword (self, name)
 Returns whether name is a keyword imported by current datafile. More...
 
def is_unsaved_changes (self)
 Returns True if there is any unsaved changes, otherwise False. More...
 
def is_user_keyword (self, name)
 Returns whether name is a user keyword of current datafile. More...
 
def new_suite_can_be_opened (self)
 Checks are there modified files and asks user what to do if there are. More...
 
def open_suite (self, path)
 Opens a test suite specified by the path. More...
 
def publish (self, topic, data)
 Publishes a message with given topic and client data. More...
 
def register_action (self, action_info)
 Registers a menu entry and optionally a shortcut and a toolbar icon. More...
 
def register_actions (self, action_infos)
 Registers multiple menu entries and shortcuts/icons. More...
 
def register_content_assist_hook (self, hook)
 Allows plugin to insert values in content assist dialog. More...
 
def register_editor (self, item_class, editor_class, activate=True)
 Register editor_class as an editor class for model items of type item_class More...
 
def register_search_action (self, description, handler, icon, default=False)
 
def register_shortcut (self, shortcut, callback)
 
def save_all_unsaved_changes (self)
 Saves all the data files that are modified. More...
 
def save_selected_datafile (self)
 Saves the data file that is currently selected in the tree. More...
 
def save_setting (self, name, value, override=True, delay=0)
 Saves the specified setting into the RIDE configuration file. More...
 
def select_user_keyword_node (self, uk)
 Selects node containing the given uk in the tree. More...
 
def set_active_editor (self, item_class, editor_class)
 Activates the specified editor to be used with the specified model item. More...
 
def show_tab (self, tab)
 Makes the tab added using add_tab visible. More...
 
def subscribe (self, listener, *topics)
 Start to listen to messages with the given topics. More...
 
def tab_is_visible (self, tab)
 Returns is the tab added using add_tab visible or not. More...
 
def unregister_actions (self)
 Unregisters all actions registered by this plugin. More...
 
def unregister_editor (self, item_class, editor_class)
 Unregisters editor_class as an editor class for model items of type item_class More...
 
def unsubscribe (self, listener, *topics)
 Stops listening to messages with the given topics. More...
 
def unsubscribe_all (self)
 Stops to listen to all messages this plugin has subscribed to. More...
 

Static Public Member Functions

def m_cmp (a, b)
 

Static Public Attributes

string HEADER = 'Search Tests'
 

Private Member Functions

def _add_to_selected (self, tests)
 
def _create_tests_dialog (self)
 
def _dialog_closed (self, event)
 
def _do_with_selection (self, evt=None)
 
def _search (self, matcher, data)
 
def _search_results (self, matcher)
 
def _selected (self, selection)
 

Private Attributes

 _dialog
 
 _selected_timer
 

Static Private Attributes

 _selection
 

Additional Inherited Members

- Public Attributes inherited from robotide.pluginapi.plugin.Plugin
 doc
 
 initially_enabled
 
 metadata
 
 name
 
- Properties inherited from robotide.pluginapi.plugin.Plugin
 datafile
 
 filemgr
 
 frame
 
 global_settings
 
 menubar
 
 model
 
 notebook
 
 toolbar
 
 tree
 

Detailed Description

A plugin for searching tests based on name, tags and documentation.

Definition at line 30 of file searchtests.py.

Member Function Documentation

◆ __eq__()

def robotide.searchtests.searchtests.TestSearchPlugin.__eq__ (   self,
  other 
)

Definition at line 121 of file searchtests.py.

◆ __hash__()

def robotide.searchtests.searchtests.TestSearchPlugin.__hash__ (   self)

Definition at line 124 of file searchtests.py.

◆ __lt__()

def robotide.searchtests.searchtests.TestSearchPlugin.__lt__ (   self,
  other 
)

Definition at line 127 of file searchtests.py.

◆ _add_to_selected()

def robotide.searchtests.searchtests.TestSearchPlugin._add_to_selected (   self,
  tests 
)
private

Definition at line 78 of file searchtests.py.

◆ _create_tests_dialog()

def robotide.searchtests.searchtests.TestSearchPlugin._create_tests_dialog (   self)
private

Definition at line 67 of file searchtests.py.

◆ _dialog_closed()

def robotide.searchtests.searchtests.TestSearchPlugin._dialog_closed (   self,
  event 
)
private

Definition at line 81 of file searchtests.py.

◆ _do_with_selection()

def robotide.searchtests.searchtests.TestSearchPlugin._do_with_selection (   self,
  evt = None 
)
private

Definition at line 88 of file searchtests.py.

◆ _search()

def robotide.searchtests.searchtests.TestSearchPlugin._search (   self,
  matcher,
  data 
)
private

Definition at line 105 of file searchtests.py.

◆ _search_results()

def robotide.searchtests.searchtests.TestSearchPlugin._search_results (   self,
  matcher 
)
private

Definition at line 97 of file searchtests.py.

◆ _selected()

def robotide.searchtests.searchtests.TestSearchPlugin._selected (   self,
  selection 
)
private

Definition at line 93 of file searchtests.py.

◆ disable()

def robotide.searchtests.searchtests.TestSearchPlugin.disable (   self)

Called by RIDE when the plugin is disabled.

    Undo whatever was done in the `enable` method.

Reimplemented from robotide.pluginapi.plugin.Plugin.

Definition at line 114 of file searchtests.py.

◆ enable()

def robotide.searchtests.searchtests.TestSearchPlugin.enable (   self)

This method is called by RIDE when the plugin is enabled.

    Possible integration to UI should be done in this method and removed
    when the `disable` method is called.

Reimplemented from robotide.pluginapi.plugin.Plugin.

Definition at line 37 of file searchtests.py.

◆ m_cmp()

def robotide.searchtests.searchtests.TestSearchPlugin.m_cmp (   a,
  b 
)
static

Definition at line 118 of file searchtests.py.

◆ show_empty_search()

def robotide.searchtests.searchtests.TestSearchPlugin.show_empty_search (   self,
  event 
)

Definition at line 85 of file searchtests.py.

◆ show_search_for()

def robotide.searchtests.searchtests.TestSearchPlugin.show_search_for (   self,
  text 
)

Definition at line 48 of file searchtests.py.

◆ show_search_for_tag_patterns()

def robotide.searchtests.searchtests.TestSearchPlugin.show_search_for_tag_patterns (   self,
  includes,
  excludes 
)

Definition at line 55 of file searchtests.py.

◆ show_tag_search()

def robotide.searchtests.searchtests.TestSearchPlugin.show_tag_search (   self,
  message 
)

Definition at line 61 of file searchtests.py.

Member Data Documentation

◆ _dialog

robotide.searchtests.searchtests.TestSearchPlugin._dialog
private

Definition at line 46 of file searchtests.py.

◆ _selected_timer

robotide.searchtests.searchtests.TestSearchPlugin._selected_timer
private

Definition at line 74 of file searchtests.py.

◆ _selection

robotide.searchtests.searchtests.TestSearchPlugin._selection
staticprivate

Definition at line 35 of file searchtests.py.

◆ HEADER

string robotide.searchtests.searchtests.TestSearchPlugin.HEADER = 'Search Tests'
static

Definition at line 31 of file searchtests.py.


The documentation for this class was generated from the following file: