Author: pekka.klarck
Date: Mon Mar 23 01:19:01 2009
New Revision: 1483
Modified:
trunk/src/robot/libraries/BuiltIn.py
trunk/src/robot/libraries/Telnet.py
Log:
removed references to 1.8.x versions
Modified: trunk/src/robot/libraries/BuiltIn.py
==============================================================================
--- trunk/src/robot/libraries/BuiltIn.py (original)
+++ trunk/src/robot/libraries/BuiltIn.py Mon Mar 23 01:19:01 2009
@@ -131,9 +131,6 @@
See `Should Be True` for details about how `condition` is
evaluated and
how `msg` can be used to override the default error message.
-
- New in Robot Framework version 1.8.3. This is intended to replace
the
- old keyword `Fail If`, which still continues to work.
"""
if msg is None:
msg = "'%s' should not be true" % condition
@@ -156,9 +153,6 @@
| Should Be True | '${status}' == 'PASS' | # Strings must be
quoted |
| Should Be True | ${number} | # Passes if ${number} is not zero
|
| Should Be True | ${list} | # Passes if ${list} is not empty
|
-
- New in Robot Framework version 1.8.3. This is intended to replace
the
- old keyword `Fail Unless`, which still continues to work.
"""
if msg is None:
msg = "'%s' should be true" % condition
@@ -415,9 +409,6 @@
directly. The final attempt is trying to get the value of the
item's
'length' attribute. If all these attempts are unsuccessful, the
keyword
fails.
-
- New in Robot Framework version 1.8.2. Logging the returned value
- added in 2.0.2.
"""
length = self._get_length(item)
self.log('Length is %d' % length)
@@ -443,8 +434,6 @@
The length of the item is got using the `Get Length` keyword. The
default error message can be overridden with the `msg` argument.
-
- New in Robot Framework version 1.8.2.
"""
try:
length = int(length)
@@ -462,8 +451,6 @@
The length of the item is got using the `Get Length` keyword. The
default error message can be overridden with the `msg` argument.
-
- New in Robot 1.8.2.
"""
if self.get_length(item) > 0:
if msg is None:
@@ -475,8 +462,6 @@
The length of the item is got using the `Get Length` keyword. The
default error message can be overridden with the `msg` argument.
-
- New in Robot Framework version 1.8.2.
"""
if self.get_length(item) == 0:
if msg is None:
@@ -707,8 +692,6 @@
In this example, only either 'Some Action' or 'Another Action' is
executed, based on the status of 'My Keyword'.
-
- New in Robot Framework version 1.8.3.
"""
if self._is_true(condition):
return self.run_keyword(name, *args)
@@ -717,8 +700,6 @@
"""Runs the given keyword with the given arguments, if `condition`
is false.
See `Run Keyword If` for more information and an example.
-
- New in Robot Framework version 1.8.3.
"""
if not self._is_true(condition):
return self.run_keyword(name, *args)
@@ -733,9 +714,6 @@
The keyword name and arguments work as in `Run Keyword`. See
`Run Keyword If` for a usage example.
-
- Note: In versions prior to Robot Framework version 1.8.3, this
keyword
- only returns the return value or error message of the executed
keyword.
"""
try:
return 'PASS', self.run_keyword(name, *args)
@@ -816,8 +794,6 @@
Example:
| Wait Until Keyword Succeeds | 2 min | 5 sec | My keyword | arg1
| arg2 |
-
- New in Robot Framework version 1.8.1.
"""
timeout = utils.timestr_to_secs(timeout)
retry_interval = utils.timestr_to_secs(retry_interval)
@@ -851,12 +827,12 @@
- ${var2} = 'value2'
- ${var3} = None
- It is also possible to have 'Else If' support by replacing the
- second value with another condition, and having two new values
- after it. If the first condition is not true, the second is
- evaluated and one of the values after it is returned based on
- its truth value. This can be continued by adding more
- conditions without a limit.
+ Starting from Robot Framework 2.0.2 it is also possible to have
+ 'Else If' support by replacing the second value with another
+ condition, and having two new values after it. If the first
+ condition is not true, the second is evaluated and one of the
+ values after it is returned based on its truth value. This can
+ be continued by adding more conditions without a limit.
| ${var} = | Set Variable If | ${rc} == 0 | zero |
| ... | ${rc} > 0 | greater than zero | less then zero |
@@ -867,9 +843,6 @@
| ... | ${rc} == 2 | two |
| ... | ${rc} > 2 | greater than two |
| ... | ${rc} < 0 | less than zero |
-
- This keyword was added in Robot Framework version 1.8.3, and
support
- for 'Else If' was added in 2.0.2.
"""
values = self._verify_values_for_set_variable_if(list(values))
if self._is_true(condition):
@@ -1304,8 +1277,6 @@
Examples:
| ${escaped} = | Regexp Escape | ${original} |
| @{strings} = | Regexp Escape | @{strings} |
-
- New in Robot Framework version 1.8.3.
"""
if len(patterns) == 0:
return ''
Modified: trunk/src/robot/libraries/Telnet.py
==============================================================================
--- trunk/src/robot/libraries/Telnet.py (original)
+++ trunk/src/robot/libraries/Telnet.py Mon Mar 23 01:19:01 2009
@@ -332,8 +332,6 @@
'myprocess' appears on the output. The command is written
every 0.5 seconds and the keyword ,fails if 'myprocess' does
not appear in the output in 5 seconds.
-
- New in Robot Framework version 1.8.2.
"""
timeout = utils.timestr_to_secs(timeout)
retry_interval = utils.timestr_to_secs(retry_interval)