Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jrobotremoteserver should consider argument as kwarg when only a single map is passed to keyword instead of considering it as normal arg #49

Closed
shan-96 opened this issue Feb 3, 2020 · 2 comments

Comments

@shan-96
Copy link

shan-96 commented Feb 3, 2020

Coming from robotframework/JavalibCore#19 and robotframework documentation as java has no support for explicit kwarg variable, a single map passed on to robot keyword without ** must also be considered as kwarg.

In KeywordOverload.java while collecting arguments args is not null with one non empty map but kwargs are null. However the case should be exactly opposite

@shan-96 shan-96 changed the title jrobotremoteserver should consider argument as kwarg when only a single map is passed to keyword instead on considering it as normal arg jrobotremoteserver should consider argument as kwarg when only a single map is passed to keyword instead of considering it as normal arg Feb 3, 2020
@shan-96 shan-96 closed this as completed Feb 3, 2020
@Hi-Fi
Copy link
Collaborator

Hi-Fi commented Feb 3, 2020

Hmmm... I would say no according linked documentation:

If a Java keyword accepts kwargs, Robot Framework will automatically pack all arguments in name=value syntax at the end of the keyword call into a Map and pass it to the keyword

@shan-96
Copy link
Author

shan-96 commented Feb 3, 2020

Linked to robotframework/JavalibCore#33

@shan-96 shan-96 reopened this Feb 3, 2020
@shan-96 shan-96 closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants