Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1511 by yonmost: Dryrun mode fails for library keyword with keyword-arguments
http://code.google.com/p/robotframework/issues/detail?id=1511

Below is a python library, containing a method the accepts keyword arguments, and a test file containing a test case that calls the method.

The test runs and passes just fine, but in dry-run mode it fails with the following error:
"Keyword 'keywords.Some Keyword' expected 0 non-keyword arguments, got 2."

It seems that the keyword-arguments are not recognized correctly in dry-run mode.

'pybot --version' output: Robot Framework 2.8.1 (Python 2.7.5 on win32)
OS: Win8 64bit

--- keywords.py ---

from robot.api import logger

class keywords(object):

    def some_keyword(self, **kwargs):
        logger.debug('Got arguments: ' + str(kwargs))


--- tests.txt ---
*** Settings ***
Library         keywords.py

*** Testcases ***
Example Test
  Some Keyword  hello=world  black=white


--
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