Revision: 3263
Author: janne.t.harkonen
Date: Tue May 11 05:53:51 2010
Log: Tests for handling of UK args with dryrun
http://code.google.com/p/robotframework/source/detail?r=3263
Modified:
/trunk/atest/robot/cli/runner/dryrun.txt
/trunk/atest/testdata/cli/dryrun/dryrun.txt
=======================================
--- /trunk/atest/robot/cli/runner/dryrun.txt Tue May 11 03:14:51 2010
+++ /trunk/atest/robot/cli/runner/dryrun.txt Tue May 11 05:53:51 2010
@@ -11,6 +11,9 @@
Status should be ${tc} PASS
Status should be ${tc.kws[0]} NOT_RUN
Should have correct number of keywords ${tc.kws[2]} 1
+
+Userkeyword return value
+ Check Test Case ${TESTNAME}
Keywords that would fail
${tc}= Check Test Case ${TESTNAME}
=======================================
--- /trunk/atest/testdata/cli/dryrun/dryrun.txt Tue May 11 03:14:51 2010
+++ /trunk/atest/testdata/cli/dryrun/dryrun.txt Tue May 11 05:53:51 2010
@@ -19,6 +19,9 @@
Fail
Fail In Uk
No Operation
+
+Userkeyword return value
+ ${quux}= Some Return Value ${foo} ${bar}
For Loops
[Documentation] FAIL Keyword 'resource.Anarchy In The UK' expected 3
arguments, got 2.
@@ -26,11 +29,11 @@
\ Log ${i}
\ Simple UK
For Loop in UK
- ::FOR ${a} ${b} IN RANGE 2
+ ::FOR ${a} ${b} IN RANGE ${NONE}
\ Anarchy in the UK 1 2
Non-existing keyword name
- [ Documentation ] FAIL No keyword with name 'Does not exist' found.
+ [Documentation] FAIL No keyword with name 'Does not exist' found.
Does not exist
Too few arguments
@@ -69,3 +72,8 @@
Invalid Syntax UK
[Arguments] ${arg
No Operation
+
+Some Return Value
+ [Arguments] ${a1} @{a2}
+ [Return] ${...@{a2[1]}
+