Skip to content

Remote library doesn't support BDD prefixes and @keyword decorator #2486

Closed

Description

@EddyPronk

It would be nice to be able to use the same decorator.
The RemoteLibrary server server could return the func.robot_tags string.

Workaround: Use given_ when_ then_ and_ but_ as prefix.
This makes it a bit confusing when to use a space or tab before and argument.

Activity

  1. pekkaklarck commented on Dec 22, 2016

    @pekkaklarck
    Member

    Remote library itself knows nothing about keyword implementation. Please submit an issue about handling @keyword decorator to the Python remote server project instead.

    Keyword tags aren't explicitly supported by the remote library interface nor by the dynamic library API it uses. It is possible to embed tags at the end of the returned keyword documentation, but having separate get_keyword_tags method in the dynamic API and then also in the remote interface would be nice. Please submit an other issue about this if you find it important.

  2. EddyPronk commented on Dec 22, 2016

    @EddyPronk
    Author

    Fair enough.

    What about the handling of the prefixes, given_ when_ then_ and_ but_?
    For normal libraries these prefixes are ignored, but for remote libraries these result in existing keywords not to be found.

  3. pekkaklarck commented on Dec 22, 2016

    @pekkaklarck
    Member

    Prefix handling is implemented in the core and thus should work out-of-the-box. If your remote library implements keyword like Something is done, you should be able to use it like Given something is done or When something is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions