Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1684 by [email protected]: "Run Keyword And Return" tries
to parse returning value
http://code.google.com/p/robotframework/issues/detail?id=1684
Hello!
Documentation for the keyword 'Run Keyword And Return' claims that
following code samples should be equivalent to each other:
Run Keyword And Return My Keyword arg1 arg2
and
${result} = My Keyword arg1 arg2
Return From Keyword ${result}
But it is not true when "My Keyword" returns string that contains some text
that may look like Robot Framework variable. In the attached file I
demonstrate an example of this. Looks like keyword "Run Keyword And Return"
not just simply return given value, but also tries to **evaluate** it.
What I've got:
$ pybot test.txt
==============================================================================
Test
==============================================================================
Direct Call With "[Return]" Works Fine |
PASS |
------------------------------------------------------------------------------
Direct Call With "Return From Keyword" Works Fine |
PASS |
------------------------------------------------------------------------------
Old-Fashion Wrapping Works Fine |
PASS |
------------------------------------------------------------------------------
New-Fasion Wrapping Fails |
FAIL |
Replacing variables from keyword return value failed: Resolving
variable '${client-email}' failed: Non-existing variable '${client}'.
------------------------------------------------------------------------------
Test |
FAIL |
4 critical tests, 3 passed, 1 failed
4 tests total, 3 passed, 1 failed
==============================================================================
$ pybot --version
Robot Framework 2.8.4 (Python 2.7.5+ on linux2)
Attachments:
test.txt 913 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
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/d/optout.