3 new revisions:
Revision: 08eb3512bcb7
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 03:38:33 2013
Log: --removekeywords name:<pattern> now works with `Keywords with
spaces`...
http://code.google.com/p/robotframework/source/detail?r=08eb3512bcb7
Revision: 3265c89ff8f4
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 07:12:59 2013
Log: Updated user guide documentation...
http://code.google.com/p/robotframework/source/detail?r=3265c89ff8f4
Revision: c3496bdb19c0
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 07:13:08 2013
Log: user guide regen
http://code.google.com/p/robotframework/source/detail?r=c3496bdb19c0
==============================================================================
Revision: 08eb3512bcb7
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 03:38:33 2013
Log: --removekeywords name:<pattern> now works with `Keywords with
spaces`
Update issue 1480
Updated CLI documentation.
Option `name:<pattern>` now ignores spaces in keywords' names properly.
http://code.google.com/p/robotframework/source/detail?r=08eb3512bcb7
Modified:
/atest/robot/cli/runner/remove_keywords.txt
/src/robot/rebot.py
/src/robot/result/keywordremover.py
/src/robot/run.py
=======================================
--- /atest/robot/cli/runner/remove_keywords.txt Tue Jun 25 06:55:33 2013
+++ /atest/robot/cli/runner/remove_keywords.txt Wed Jun 26 03:38:33 2013
@@ -52,8 +52,8 @@
... --removekeywords passed
... --RemoveKeywords FoR
... --removek WUKS
- ... --removekeywords "name:Remove By Name"
- ... --removekeywords "name:This should be*"
+ ... --removekeywords name:RemoveByName
+ ... --removekeywords name:Thisshouldbe*
... --log log.html
Run tests ${opts} cli/remove_keywords/all_combinations.txt
${LOG} = Get file ${OUTDIR}/log.html
=======================================
--- /src/robot/rebot.py Fri Jun 7 23:40:19 2013
+++ /src/robot/rebot.py Wed Jun 26 03:38:33 2013
@@ -184,15 +184,20 @@
automatically converted to spaces.
Examples: --tagstatlink
mytag:http://my.domain:Link
--tagstatlink
bug-*:http://tracker/id=%1:Bug_Tracker
- --removekeywords all|passed|for|wuks * Remove keyword data from all
- generated outputs. Keywords containing warnings
are
- not removed except in `all` mode.
- all: remove data from all keywords
- passed: remove data only from keywords in passed
- test cases and suites
- for: remove passed iterations from for loops
- wuks: remove all but last failing keyword from
- `Wait Until Keyword Succeeds`
+ --removekeywords all|passed|for|wuks|name:<pattern> * Remove keyword
data
+ from all generated outputs. Keywords containing
+ warnings are not removed except in `all` mode.
+ all: remove data from all keywords
+ passed: remove data only from keywords in
+ passed test cases and suites
+ for: remove passed iterations from for
+ loops
+ wuks: remove all but last failing
keyword
+ from `Wait Until Keyword
Succeeds`
+ name:<pattern>: remove those keywords that
matches
+ pattern. Pattern can be the full
name
+ of the keyword with spaces
removed
+ or `*` wildcard.
--starttime timestamp Set starting time of test execution when
creating
reports. Timestamp must be given in format
`2007-10-01 15:12:42.268` where all separators
are
=======================================
--- /src/robot/result/keywordremover.py Tue Jun 25 06:55:33 2013
+++ /src/robot/result/keywordremover.py Wed Jun 26 03:38:33 2013
@@ -147,7 +147,7 @@
self._clear_content(keyword)
def _matches(self, kw_name):
- kw_name = kw_name.lower()
+ kw_name = ''.join(kw_name.lower().split())
if '*' in self._pattern:
pattern = self._pattern.split('*', 1)[0]
return kw_name.startswith(pattern)
=======================================
--- /src/robot/run.py Fri Jun 7 23:40:19 2013
+++ /src/robot/run.py Wed Jun 26 03:38:33 2013
@@ -223,15 +223,20 @@
automatically converted to spaces.
Examples: --tagstatlink
mytag:http://my.domain:Link
--tagstatlink
bug-*:http://tracker/id=%1:Bug_Tracker
- --removekeywords all|passed|for|wuks * Remove keyword data from the
- generated log file. Keywords containing warnings
are
- not removed except in `all` mode.
- all: remove data from all keywords
- passed: remove data only from keywords in passed
- test cases and suites
- for: remove passed iterations from for loops
- wuks: remove all but last failing keyword from
- `Wait Until Keyword Succeeds`
+ --removekeywords all|passed|for|wuks|name:<pattern> * Remove keyword
data
+ from the generated log file. Keywords containing
+ warnings are not removed except in `all` mode.
+ all: remove data from all keywords
+ passed: remove data only from keywords in
+ passed test cases and suites
+ for: remove passed iterations from for
+ loops
+ wuks: remove all but last failing
keyword
+ from `Wait Until Keyword
Succeeds`
+ name:<pattern>: remove those keywords that
matches
+ pattern. Pattern can be the full
name
+ of the keyword with spaces
removed or
+ `*` wildcard.
--listener class * A class for monitoring test execution. Gets
notifications e.g. when a test case starts and
ends.
Arguments to listener class can be given after
class
==============================================================================
Revision: 3265c89ff8f4
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 07:12:59 2013
Log: Updated user guide documentation
Update issue 1480
User guide documented.
http://code.google.com/p/robotframework/source/detail?r=3265c89ff8f4
Modified:
/doc/userguide/src/Appendices/CommandLineOptions.rst
/doc/userguide/src/ExecutingTestCases/OutputFiles.rst
=======================================
--- /doc/userguide/src/Appendices/CommandLineOptions.rst Fri Jun 7
10:28:37 2013
+++ /doc/userguide/src/Appendices/CommandLineOptions.rst Wed Jun 26
07:12:59 2013
@@ -54,7 +54,7 @@
--tagdoc <pattern:doc> Adds `documentation to the specified tags`_.
--tagstatlink <pattern:link:title> Adds `external links`_ to
the :name:`Statistics by
Tag` table.
- --removekeywords <all|passed|for|wuks> `Removes keyword data`_ from the
+ --removekeywords <all|passed|for|wuks|name:pattern> `Removes keyword
data`_ from the
generated log file.
--listener <name:args> `Sets a listener`_ for monitoring test execution.
--warnonskippedfiles Show a warning when `an invalid file is
skipped`_.
=======================================
--- /doc/userguide/src/ExecutingTestCases/OutputFiles.rst Sun Jun 9
04:28:05 2013
+++ /doc/userguide/src/ExecutingTestCases/OutputFiles.rst Wed Jun 26
07:12:59 2013
@@ -486,16 +486,23 @@
Remove all but last failing keyword inside BuiltIn_ keyword
:name:`Wait Until Keyword Succeeds`.
+:opt:`NAME:<pattern>`
+ Remove all keywords matching the pattern. Pattern can be full name of
the
+ keyword or utilize the `*` wildcard to match many keywords.
+
Examples::
rebot --removekeywords all output.xml
pybot --removekeywords passed --removekeywords for tests.txt
-
+ pybot --removekeywords name:MyKeyword --removekeywords
name:MyResourceFile.* tests.txt
.. Note::
The support for using :opt:`--removekeywords` when executing tests as
well
as :opt:`FOR` and :opt:`WUKS` modes were added in Robot Framework 2.7.
+.. Note::
+ Option :opt:`NAME:<pattern>` was added in Robot Framework 2.8.2.
+
Setting start and end time of execution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==============================================================================
Revision: c3496bdb19c0
Branch: default
Author: Tatu Kairi <[email protected]>
Date: Wed Jun 26 07:13:08 2013
Log: user guide regen
http://code.google.com/p/robotframework/source/detail?r=c3496bdb19c0
Modified:
/doc/userguide/RobotFrameworkUserGuide.html
=======================================
--- /doc/userguide/RobotFrameworkUserGuide.html Fri Jun 14 02:38:08 2013
+++ /doc/userguide/RobotFrameworkUserGuide.html Wed Jun 26 07:13:08 2013
@@ -548,7 +548,7 @@
<body>
<div class="document" id="robot-framework-user-guide">
<h1 class="title">Robot Framework User Guide</h1>
-<h2 class="subtitle" id="version-version">Version 2.8.1</h2>
+<h2 class="subtitle" id="version-version">Version trunk 20130614</h2>
<!-- This data file has been placed in the public domain. -->
<!-- Derived from the Unicode character mappings available from
@@ -11760,17 +11760,25 @@
<dt><span class="opt">WUKS</span></dt>
<dd>Remove all but last failing keyword inside <a class="reference
external" href="../libraries/BuiltIn.html">BuiltIn</a> keyword
<span class="name">Wait Until Keyword Succeeds</span>.</dd>
+<dt><span class="opt">NAME:<pattern></span></dt>
+<dd>Remove all keywords matching the pattern. Pattern can be full name of
the
+keyword or utilize the <cite>*</cite> wildcard to match many keywords.</dd>
</dl>
<p>Examples:</p>
<pre class="literal-block">
rebot --removekeywords all output.xml
pybot --removekeywords passed --removekeywords for tests.txt
+pybot --removekeywords name:MyKeyword --removekeywords
name:MyResourceFile.* tests.txt
</pre>
<div class="note">
<p class="first admonition-title">Note</p>
<p class="last">The support for using <span
class="opt">--removekeywords</span> when executing tests as well
as <span class="opt">FOR</span> and <span class="opt">WUKS</span> modes
were added in Robot Framework 2.7.</p>
</div>
+<div class="note">
+<p class="first admonition-title">Note</p>
+<p class="last">Option <span class="opt">NAME:<pattern></span> was
added in Robot Framework 2.8.2.</p>
+</div>
</div>
<div class="section" id="setting-start-and-end-time-of-execution">
<h3><a class="toc-backref" href="#id617">3.5.6 Setting
start and end time of execution</a></h3>
@@ -16346,7 +16354,7 @@
<tr><td> </td><td>Adds <a class="reference internal"
href="#creating-links-from-tag-names">external links</a> to the <span
class="name">Statistics by
Tag</span> table.</td></tr>
<tr><td class="option-group" colspan="2">
-<kbd><span class="option">--removekeywords <var><all|passed|for|
wuks></var></span></kbd></td>
+<kbd><span class="option">--removekeywords <var><all|passed|for|wuks|
name:pattern></var></span></kbd></td>
</tr>
<tr><td> </td><td><a class="reference internal"
href="#removing-keywords-from-outputs">Removes keyword data</a> from the
generated log file.</td></tr>
@@ -17131,7 +17139,7 @@
<div class="footer">
<hr class="footer" />
<p>Generated by <a class="reference external"
href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>.
Syntax highlighting by <a class="reference external"
href="http://pygments.org/">Pygments</a>.</p>
-<p>Generated on: 2013-06-14 09:36 UTC.
+<p>Generated on: 2013-06-26 14:10 UTC.
</p>
</div>
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.