TipsAndTricks
Differences between revisions 3 and 4
Size: 545
Comment:
|
Size: 862
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
=== Running tests as a normal user === | = Checkbox Tips & Tricks = Tips and tricks for running/modifying [[Testing/Automation/Checkbox|Checkbox]]. == Logging == Specifying the log level: {{{ --log-level=(debug|info|warning|error|critical) }}} Specifying the log location: {{{ --log=/path/to/file }}} == Running tests as a normal user == {{{ |
Line 3: | Line 21: |
=== Using regular expressions === | }}} == Using regular expressions == |
Line 8: | Line 29: |
Line 9: | Line 31: |
=== Avoid loading plugins that are in the plugins default directory === In the configuration file, add the blacklist field with the plugins to avoid (comma separated) |
== Avoid loading plugins that are in the plugins default directory == In the configuration file, add the blacklist field with the plugins to avoid (space separated) |
Line 12: | Line 36: |
[checkbox/plugins] |
Checkbox Tips & Tricks
Tips and tricks for running/modifying Checkbox.
Logging
Specifying the log level:
--log-level=(debug|info|warning|error|critical)
Specifying the log location:
--log=/path/to/file
Running tests as a normal user
checkbox-cli --config="checkbox/plugins/blacklist=permission_prompt"
Using regular expressions
Regular expressions can be used to register events:
self._manager.reactor.call_on("report.*", self.report)
The report method will be called for all events starting with "report".
Avoid loading plugins that are in the plugins default directory
In the configuration file, add the blacklist field with the plugins to avoid (space separated)
[checkbox/plugins] blacklist = plugin_to_avoid
Testing/Automation/Checkbox/TipsAndTricks (last edited 2009-06-09 12:03:26 by 157)