Comment #1 on issue 1602 by kormb...@gmail.com: User Guide: the informal Java dynamic API interface should not have two runKeyword methods
http://code.google.com/p/robotframework/issues/detail?id=1602

Perhaps the issue could be something else, so to be more clear on this - the reason I entered this is I was surprised by the the behavior when there are two runKeywords present. RF calls the method without kwargs and passes foo=bar as a positional argument. If I remove the runKeyword that does not take kwargs, foo=bar is passed as kwargs.

Some Keyword    foo=bar

20131206 12:18:36.360 : TRACE : Return: u'runKeyword without kwargs called'
after removing the runKeyword method that does not take kwargs:
20131206 12:16:49.244 : TRACE : Return: u'kwargs passed'

For this library:

iimport java.util.Map;

public class DynamicTwo {

    public String[] getKeywordNames() {
        return new String[] {"someKeyword"};
    }

    public Object runKeyword(String name, Object[] args, Map kwargs) {
return (kwargs != null && !kwargs.isEmpty()) ? "kwargs passed" : "no kwargs passed";
    }

    public Object runKeyword(String name, Object... args) {
        return "runKeyword without kwargs called";
    }
}



--
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 robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to