Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 992 by [email protected]: Documentation changes - 4.1.4
Communicating with > Robot Framework
http://code.google.com/p/robotframework/issues/detail?id=992
I was learning how to create a library and while using this section I found
some possible syntax errors.
1. Most of the python examples that do not have an argument I would get an
error. If I added "self" as an argument then I was fine. For example if I
used "def return_two_values():" it would error but if I changed to "def
return_two_values(self):" I was fine.
2. Returning Values section. The next to last line change "v1" and "v2"
to "s1" and "s2".
${var1} ${var2} = Return Two Values
Should Be Equal ${var1} first value
Should Be Equal ${var2} second value
@{list} = Return Two Values
Should Be Equal @{list}[0] first value
Should Be Equal @{list}[1] second value
${s1} ${s2} @{li} = Return Multiple Values
Should Be Equal ${v1} ${v2} a list
Should Be Equal @{li}[0] @{li}[1] of strings
3. I am just learning python. I could never get the time example to
work. Below is the example for the document.
import time
def example_keyword():
print '*INFO:%d* Message with timestamp' % (time.time()*1000)