You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a good idea. Remote server doesn't really need to care about @keyword decorator, though, it only needs to check robot_name and robot_tags the decorator sets (and which can also be set otherwise). Implementation should basically contain two things:
If robot_name is set to any meaningful value (i.e. non-empty string), keyword name reported to Remote library should be set based on it.
Possible tags set with robot_tags should be added at the end of the keyword documentation using Tags: t1, t2, t2 syntax. This is needed because the dynamic API and the remote interface lack possibility to report keyword tags directly. Adding new get_keyword_tags method would be nice, but that is a separate task.
Activity
pekkaklarck commentedon Dec 22, 2016
This is a good idea. Remote server doesn't really need to care about
@keyworddecorator, though, it only needs to checkrobot_nameandrobot_tagsthe decorator sets (and which can also be set otherwise). Implementation should basically contain two things:If
robot_nameis set to any meaningful value (i.e. non-empty string), keyword name reported to Remote library should be set based on it.Possible tags set with
robot_tagsshould be added at the end of the keyword documentation usingTags: t1, t2, t2syntax. This is needed because the dynamic API and the remote interface lack possibility to report keyword tags directly. Adding newget_keyword_tagsmethod would be nice, but that is a separate task.To learn more about the remote library interface implementation, please take a look at the docs in the User Guide:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#remote-library-interface
EddyPronk commentedon Dec 26, 2016
I implemented both now.
When a library imports robot.api.deco then test/libs/logging.py conflicts with the logging module of the standard library.
Follow the progress here:
https://github.com/epronk/PythonRemoteServer
Implemented support for @Keyword decorator
Implemented support for @Keyword decorator
Implemented support for @Keyword decorator
Implemented support for @Keyword decorator
Implemented support for @Keyword decorator
Cleanup and fixes to @Keyword support (issue #35, PR #37)
Test keyword tags set by @Keyword. Issue #35, PR #37.
pekkaklarck commentedon Jan 13, 2017
PR #37 merged few fixes, cleanups done afterwards. I consider this issue done.
Thanks @epronk for the PR! Comment the commits above or add a note here if you see something suspicious in my changes.
[-]Please support the @keyword decorator[/-][+]Support `@keyword` decorator[/+]