Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-High Target-2.8

New issue 1325 by pekka.klarck: Support named argument syntax also with varargs
http://code.google.com/p/robotframework/issues/detail?id=1325

Issue 1324 covers supporting named arguments syntax with required arguments, but there is also inconsistent behavior when using named argument syntax in combination with varargs.

Consider this example:

*** Test Cases ***
Example 1
    Keyword    x=a    y=b

Example 2
    Keyword    x=a    y=b    z

*** Keywords ***
Keyword
    [Arguments]    ${x}    ${y}=2    @{varargs}
    Log    ${x}
    Log    ${y}

Similarly as in the example in issue 1324, test Example 1 will log `x=a` and `b`. What's even more strange is that due to varargs used after named arguments Example 2 ends up logging `x=a` and `y=b`. This inconsistency definitely needs to be fixed.


Reply via email to