A plugin for running tests from within RIDE. More...
Public Member Functions | |
| def | __init__ (self, application=None) |
| def | disable (self) |
| def | enable (self) |
| def | get_current_profile (self) |
| def | OnClose (self, event) |
| Shut down the running services and processes. More... | |
| def | OnConsoleLogPaneChanged (self, evt) |
| def | OnContinue (self, event) |
| def | OnMessageLogPaneChanged (self, evt) |
| def | OnOpenLogsDirectory (self, evt) |
| Called when the user clicks on the "Open Logs Directory" button. More... | |
| def | OnPause (self, event) |
| def | OnProcessEnded (self, evt) |
| def | OnRun (self, event) |
| Called when the user clicks or presses the F8, Run Tests. More... | |
| def | OnRunDebug (self, event) |
| Called when the user clicks or presses the F9, Run Tests with Debug It can still be overwritten in RIDE Arguments line. More... | |
| def | OnSettingsChanged (self, message) |
| Updates settings. More... | |
| def | OnShowLog (self, evt) |
| Called when the user clicks on the "Log" button. More... | |
| def | OnShowReport (self, evt) |
| Called when the user clicks on the "Report" button. More... | |
| def | OnStepNext (self, event) |
| def | OnStepOver (self, event) |
| def | OnStop (self, event) |
| Called when the user clicks the "Stop" button. More... | |
| def | OnTestSelectedForRunningChanged (self, message) |
| def | OnTimer (self, evt) |
| Get process output. More... | |
| def | parse_colors (self, txt) |
| def | store_color (self, idx, color) |
Public Attributes | |
| autosave_cb | |
| choice | |
| fail_color | |
| metadata | |
| panel | |
| pass_color | |
| pause_on_failure_cb | |
| skip_color | |
| use_colors | |
| version | |
Static Public Attributes | |
| dictionary | defaults |
| log_regex = re.compile("^Log: {5}(.*\.html)$", re.MULTILINE) | |
| report_regex = re.compile("^Report: {2}(.*\.html)$", re.MULTILINE) | |
| string | title = "Run" |
Properties | |
| _names_to_run = property | |
Private Member Functions | |
| def | _add_tab_to_notebook (self) |
| def | _append_text (self, text_ctrl, text, source="stdout") |
| def | _append_to_console_log (self, text, source="stdout") |
| Put output to the text control. More... | |
| def | _append_to_message_log (self, text, source="stdout") |
| def | _bind_local_toolbar_events (self, toolbar) |
| def | _bind_runner_toolbar_events (self, toolbar) |
| def | _build_config_panel (self, parent) |
| Builds the configuration panel for this plugin. More... | |
| def | _build_local_toolbar (self, parent) |
| def | _build_output_panel (self, parent) |
| def | _build_runner_toolbar (self, parent) |
| def | _can_start_running_tests (self) |
| def | _clear_log_ctrls (self) |
| def | _copy_from_log_ctrls (self, event) |
| def | _create_collapsible_pane (self, parent, title, expand, pane_changed_handler) |
| def | _create_command (self, profile_command, args_file) |
| def | _create_command_args (self, profile_command_args, log_level='INFO', use_colors=False) |
| def | _create_temporary_directory (self) |
| def | _create_text_ctrl (self, parent) |
| def | _delete_pressed (self, event) |
| def | _enable_runner_toolbar (self, run, paused) |
| def | _get_all_subclasses (self, class_) |
| def | _get_console_width (self) |
| def | _get_current_working_dir (self, profile) |
| def | _get_last_output_char (self) |
| Return the last character in the output window. More... | |
| def | _handle_continue (self, args) |
| def | _handle_end_keyword (self) |
| def | _handle_end_test (self, args) |
| def | _handle_log_file (self, args) |
| def | _handle_log_message (self, args) |
| def | _handle_paused (self, args) |
| def | _handle_report_file (self, args) |
| def | _handle_start_keyword (self, args) |
| def | _handle_start_test (self, args) |
| def | _init_profile_choice (self, profile_name) |
| First installation of the profile to be used to run tests. More... | |
| def | _initialize_ui_for_running (self) |
| def | _initialize_variables_for_running (self, profile_settings, args) |
| def | _names_to_run (self) |
| def | _on_autosave_cb (self, evt) |
| Called when the user clicks on the "Auto Save" checkbox. More... | |
| def | _on_pause_on_failure_cb (self, evt) |
| def | _on_profile_selection (self, event) |
| def | _read_report_and_log_from_stdout_if_needed (self) |
| def | _read_run_profiles (self) |
| def | _read_run_profiles_from_classes (self) |
| def | _read_run_profiles_from_config (self) |
| def | _register_actions (self) |
| def | _register_shortcuts (self) |
| def | _remove_from_notebook (self) |
| Remove the tab for this plugin from the notebook. More... | |
| def | _remove_temporary_directory (self) |
| def | _reset_memory_calc (self) |
| def | _run_tests (self, log_level='INFO') |
| def | _save_command_args_in_file (self, args) |
| def | _set_continue (self) |
| def | _set_paused (self) |
| def | _set_profile (self, profile_name) |
| Set the profile to be used to run tests. More... | |
| def | _set_running (self) |
| def | _set_stopped (self) |
| def | _show_notebook_tab (self) |
| Show the Run notebook ta. More... | |
| def | _subscribe_to_events (self) |
| def | _test_runner_events_handler (self, event, *args) |
| Endpoint of the listener interface. More... | |
| def | _tests_selected (self) |
Static Private Member Functions | |
| def | _ask_user_to_run_anyway () |
| def | _ask_user_to_save_before_running () |
| def | _change_item_proportion (panel, item, proportion) |
| def | _clear_text_ctrl (text_ctrl) |
| def | _create_check_box (parent, id, label, value, tooltip) |
| def | _get_report_or_log (output, regex) |
| def | _notify_user_no_logs_directory () |
| def | _set_margins (out) |
A plugin for running tests from within RIDE.
Definition at line 154 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.__init__ | ( | self, | |
application = None |
|||
| ) |
Definition at line 180 of file testrunnerplugin.py.
|
private |
Definition at line 891 of file testrunnerplugin.py.
|
private |
Definition at line 617 of file testrunnerplugin.py.
|
private |
Put output to the text control.
Definition at line 612 of file testrunnerplugin.py.
|
private |
Definition at line 606 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 478 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 467 of file testrunnerplugin.py.
|
private |
Definition at line 833 of file testrunnerplugin.py.
|
private |
Definition at line 770 of file testrunnerplugin.py.
|
private |
Builds the configuration panel for this plugin.
Definition at line 920 of file testrunnerplugin.py.
|
private |
Definition at line 781 of file testrunnerplugin.py.
|
private |
Definition at line 929 of file testrunnerplugin.py.
|
private |
Definition at line 735 of file testrunnerplugin.py.
|
private |
Definition at line 456 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 965 of file testrunnerplugin.py.
|
private |
Definition at line 494 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 499 of file testrunnerplugin.py.
|
private |
Definition at line 228 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 1006 of file testrunnerplugin.py.
|
private |
Definition at line 974 of file testrunnerplugin.py.
|
private |
Definition at line 426 of file testrunnerplugin.py.
|
private |
Definition at line 411 of file testrunnerplugin.py.
|
private |
Definition at line 309 of file testrunnerplugin.py.
|
private |
Definition at line 998 of file testrunnerplugin.py.
|
private |
Definition at line 223 of file testrunnerplugin.py.
|
private |
Definition at line 1135 of file testrunnerplugin.py.
|
private |
Definition at line 279 of file testrunnerplugin.py.
|
private |
Definition at line 719 of file testrunnerplugin.py.
|
private |
Definition at line 449 of file testrunnerplugin.py.
|
private |
Return the last character in the output window.
Definition at line 591 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 554 of file testrunnerplugin.py.
|
private |
Definition at line 1106 of file testrunnerplugin.py.
|
private |
Definition at line 1090 of file testrunnerplugin.py.
|
private |
Definition at line 1066 of file testrunnerplugin.py.
|
private |
Definition at line 1083 of file testrunnerplugin.py.
|
private |
Definition at line 1093 of file testrunnerplugin.py.
|
private |
Definition at line 1102 of file testrunnerplugin.py.
|
private |
Definition at line 1079 of file testrunnerplugin.py.
|
private |
Definition at line 1087 of file testrunnerplugin.py.
|
private |
Definition at line 1061 of file testrunnerplugin.py.
|
private |
First installation of the profile to be used to run tests.
Definition at line 865 of file testrunnerplugin.py.
|
private |
Definition at line 485 of file testrunnerplugin.py.
|
private |
Definition at line 434 of file testrunnerplugin.py.
|
private |
Definition at line 211 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 1148 of file testrunnerplugin.py.
|
private |
Called when the user clicks on the "Auto Save" checkbox.
Definition at line 851 of file testrunnerplugin.py.
|
private |
Definition at line 854 of file testrunnerplugin.py.
|
private |
Definition at line 858 of file testrunnerplugin.py.
|
private |
Definition at line 541 of file testrunnerplugin.py.
|
private |
Definition at line 265 of file testrunnerplugin.py.
|
private |
Definition at line 275 of file testrunnerplugin.py.
|
private |
Definition at line 269 of file testrunnerplugin.py.
|
private |
Definition at line 248 of file testrunnerplugin.py.
|
private |
Definition at line 216 of file testrunnerplugin.py.
|
private |
Remove the tab for this plugin from the notebook.
Definition at line 730 of file testrunnerplugin.py.
|
private |
Definition at line 319 of file testrunnerplugin.py.
|
private |
Definition at line 332 of file testrunnerplugin.py.
|
private |
Definition at line 378 of file testrunnerplugin.py.
|
private |
Definition at line 421 of file testrunnerplugin.py.
|
private |
Definition at line 1123 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 1013 of file testrunnerplugin.py.
|
private |
Definition at line 1118 of file testrunnerplugin.py.
|
private |
Set the profile to be used to run tests.
Definition at line 876 of file testrunnerplugin.py.
|
private |
Definition at line 1110 of file testrunnerplugin.py.
|
private |
Definition at line 1128 of file testrunnerplugin.py.
|
private |
Show the Run notebook ta.
Definition at line 600 of file testrunnerplugin.py.
|
private |
Definition at line 285 of file testrunnerplugin.py.
|
private |
Endpoint of the listener interface.
This is called via the listener interface. It has an event such as
"start_suite", "start_test", etc, along with metadata about the event.
We use this data to update
the tree and statusbar.
Definition at line 1028 of file testrunnerplugin.py.
|
private |
Definition at line 474 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.disable | ( | self | ) |
Definition at line 303 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.enable | ( | self | ) |
Definition at line 237 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.get_current_profile | ( | self | ) |
Definition at line 888 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnClose | ( | self, | |
| event | |||
| ) |
Shut down the running services and processes.
Definition at line 325 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnConsoleLogPaneChanged | ( | self, | |
| evt | |||
| ) |
Definition at line 950 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnContinue | ( | self, | |
| event | |||
| ) |
Definition at line 353 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnMessageLogPaneChanged | ( | self, | |
| evt | |||
| ) |
Definition at line 957 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnOpenLogsDirectory | ( | self, | |
| evt | |||
| ) |
Called when the user clicks on the "Open Logs Directory" button.
Definition at line 505 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnPause | ( | self, | |
| event | |||
| ) |
Definition at line 348 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnProcessEnded | ( | self, | |
| evt | |||
| ) |
Definition at line 522 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnRun | ( | self, | |
| event | |||
| ) |
Called when the user clicks or presses the F8, Run Tests.
Definition at line 369 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnRunDebug | ( | self, | |
| event | |||
| ) |
Called when the user clicks or presses the F9, Run Tests with Debug It can still be overwritten in RIDE Arguments line.
Definition at line 375 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnSettingsChanged | ( | self, | |
| message | |||
| ) |
Updates settings.
Definition at line 291 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnShowLog | ( | self, | |
| evt | |||
| ) |
Called when the user clicks on the "Log" button.
Definition at line 518 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnShowReport | ( | self, | |
| evt | |||
| ) |
Called when the user clicks on the "Report" button.
Definition at line 512 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnStepNext | ( | self, | |
| event | |||
| ) |
Definition at line 358 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnStepOver | ( | self, | |
| event | |||
| ) |
Definition at line 363 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnStop | ( | self, | |
| event | |||
| ) |
Called when the user clicks the "Stop" button.
This sends a SIGINT to the running process, with the
same effect as typing control-c when running from the
command line.
Definition at line 342 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnTestSelectedForRunningChanged | ( | self, | |
| message | |||
| ) |
Definition at line 300 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.OnTimer | ( | self, | |
| evt | |||
| ) |
Get process output.
Definition at line 559 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.parse_colors | ( | self, | |
| txt | |||
| ) |
Definition at line 674 of file testrunnerplugin.py.
| def robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.store_color | ( | self, | |
| idx, | |||
| color | |||
| ) |
Definition at line 714 of file testrunnerplugin.py.
|
private |
Definition at line 621 of file testrunnerplugin.py.
|
private |
Definition at line 898 of file testrunnerplugin.py.
|
private |
Definition at line 446 of file testrunnerplugin.py.
|
private |
Definition at line 934 of file testrunnerplugin.py.
|
private |
Definition at line 191 of file testrunnerplugin.py.
|
private |
Definition at line 193 of file testrunnerplugin.py.
|
private |
Definition at line 310 of file testrunnerplugin.py.
|
private |
Definition at line 188 of file testrunnerplugin.py.
|
private |
Definition at line 200 of file testrunnerplugin.py.
|
private |
Definition at line 201 of file testrunnerplugin.py.
|
private |
Definition at line 896 of file testrunnerplugin.py.
|
private |
Definition at line 190 of file testrunnerplugin.py.
|
private |
Definition at line 436 of file testrunnerplugin.py.
|
private |
Definition at line 441 of file testrunnerplugin.py.
|
private |
Definition at line 202 of file testrunnerplugin.py.
|
private |
Definition at line 938 of file testrunnerplugin.py.
|
private |
Definition at line 196 of file testrunnerplugin.py.
|
private |
Definition at line 893 of file testrunnerplugin.py.
|
private |
Definition at line 907 of file testrunnerplugin.py.
|
private |
Definition at line 197 of file testrunnerplugin.py.
|
private |
Definition at line 199 of file testrunnerplugin.py.
|
private |
Definition at line 911 of file testrunnerplugin.py.
|
private |
Definition at line 271 of file testrunnerplugin.py.
|
private |
Definition at line 878 of file testrunnerplugin.py.
|
private |
Definition at line 933 of file testrunnerplugin.py.
|
private |
Definition at line 187 of file testrunnerplugin.py.
|
private |
Definition at line 189 of file testrunnerplugin.py.
|
private |
Definition at line 252 of file testrunnerplugin.py.
|
private |
Definition at line 897 of file testrunnerplugin.py.
|
private |
Definition at line 192 of file testrunnerplugin.py.
|
private |
Definition at line 301 of file testrunnerplugin.py.
|
private |
Definition at line 263 of file testrunnerplugin.py.
|
private |
Definition at line 194 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.autosave_cb |
Definition at line 810 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.choice |
Definition at line 789 of file testrunnerplugin.py.
|
static |
Definition at line 155 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.fail_color |
Definition at line 204 of file testrunnerplugin.py.
|
static |
Definition at line 177 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.metadata |
Definition at line 184 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.panel |
Definition at line 892 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.pass_color |
Definition at line 205 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.pause_on_failure_cb |
Definition at line 816 of file testrunnerplugin.py.
|
static |
Definition at line 176 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.skip_color |
Definition at line 206 of file testrunnerplugin.py.
|
static |
Definition at line 178 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.use_colors |
Definition at line 203 of file testrunnerplugin.py.
| robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.version |
Definition at line 183 of file testrunnerplugin.py.
|
staticprivate |
Definition at line 209 of file testrunnerplugin.py.