Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-High Target-2.8 bwic
New issue 1324 by pekka.klarck: Support named argument syntax also with
arguments not having default values
http://code.google.com/p/robotframework/issues/detail?id=1324
When named arguments syntax was added (issue 215), we wanted to be extra
careful that the new syntax wouldn't create backwards-compatibility
problems. For that reason the syntax was only supported with arguments
accepting default values. This is confusing if you want to name arguments
when calling a keyword to make the usage more explicit.
For example, the following test would log values `x=a` and `b`:
*** Test Cases ***
Example
Keyword x=a y=b
*** Keywords ***
Keyword
[Arguments] ${x} ${y}=2
Log ${x}
Log ${y}
Because we didn't hear any complaints about backwards-incompatibility
problems after adding the name argument syntax, I'm pretty sure extending
the usage to all arguments will not cause them either. The current
functionality is so inconsistent that fixing it is, in my opinion,
definitely worth it. To be safe, it's anyway better to add this in a major
release.