2013/1/19 Guy Kisel <
guy....@gmail.com>:
>
> Problem is, methods that I decorate using this are detected in RIDE and
> libdoc as having the argument *args instead of having their actual
> arguments. Are decorators just generally incompatible with Robot Framework?
This problem occurs because Robot uses introspection to find what
arguments your methods implement and it only sees decorators.
> Is there a better way to do this?
You can use decorator module to the attach the original arguments to
your decorators. The documentation of the module also explains the
root cause of this problem pretty thoroughly:
http://micheles.googlecode.com/hg/decorator/documentation.html
Alternatively, if you have only few keywords, you could consider doing
the conversion as the first step in your methods.
Cheers,
.peke
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org