Status: New
Owner: ----
Labels: Type-Defect
New issue 728 by mikko.korpela: Errors with positional arguments and
arguments with default values
http://code.google.com/p/robotframework/issues/detail?id=728
If a positional argument is misplaced after a default value argument, the
default value argument is detected as a positional argument. This in my
opinion should at least generate a warning when running robot.
For example:
*** Test Cases ***
Args
Simple KW arg2=foo bar
*** Keywords ***
Simple KW
[Arguments] ${arg1}=a ${arg2}=b
Log arg1 on ${arg1}
Log arg2 on ${arg2}
Simple KW will be called with
${arg1}=arg2=foo
and
${arg2}=bar
-------
Positional arguments also overwrite default value arguments. This in my
opinion should be a syntax error -- but it runs nicely:
*** Test Cases ***
Args
Simple KW bar arg1=foo
*** Keywords ***
Simple KW
[Arguments] ${arg1}=a ${arg2}=b
Log arg1 on ${arg1}
Log arg2 on ${arg2}
Simple KW will be called with
${arg1}=bar
and
${arg2}=b