Skip to content

Include first logical line of keyword documentation in log #2491

Closed

Description

@xanadiu

As mentioned in #1009, documentation of keywords is not fully displayed in generated test output. It would be desirable to also fully include keyword documentation (i.e. multiline documentation) in the same manner as it is done with test case documentation.

Example:

*** Keywords ***
Sign In
  [Arguments]  ${username}=${default_username}  ${password}=${default_password}
  [Documentation]  Loggt den Benutzer mit Name _username_ und Passwort _password_ ein. Werden _username_ oder _password_
  ...  nicht angegeben, werden die Anmeldedaten des Demo-Benutzers benutzt. Dieses Keyword schlägt fehl
  ...  wenn vor dem Login das Login-Formular nicht vorhanden ist und nach dem Login das Logout-Formular
  ...  nicht vorhanden ist.

The screenshot is right now missing the second and further lines of documentation:

4f5d557a-bdf6-11e6-9f11-bec30df268c7

Activity

  1. pekkaklarck commented on Dec 9, 2016

    @pekkaklarck
    Member

    Not showing full keyword documentation is by design. It would increase log file size too much. Currently we only include the first row of the docs in logs, but that could be changed so that we show the first paragraph. The would include everything in the example above, but omit the second paragraph in this example:

    *** Keywords ***
    Example
        [Documentation] Only the first line in shown in logs nowadays. Possibly we could
        ...    change that and show the whole first paragraph, including this second line.
        ...
        ...    Here we are in the second paragraph. This wouldn't be shown in logs anyway.

    Even this change is somewhat backwards incompatible can can increase log sizes, so I wouldn't like to add it in a minor release.

  2. pekkaklarck commented on Dec 22, 2016

    @pekkaklarck
    Member

    How do you @xanadiu like my proposal above? Any comments from others?

  3. HelioGuilherme66 commented on Dec 22, 2016

    @HelioGuilherme66
    Member

    I have a Neutral position about this. I rarely need long documentation on logs. If the proposed change does not impact much log size or delay in processing or reading, then go for it.

  4. xanadiu commented on Jan 9, 2017

    @xanadiu
    Author

    Sorry for the delay, folks. I would welcome @pekkaklarck's proposal.

    Besides that: what seems most important to me is that the documentation reflects the actual behavior. I created the issue because I found the behavior to be an error as I did not find any mentioning of the different display truncation per log/output path.

  5. changed the title [-]Include full keyword documentation in log/report[/-] [+]Include first logical line of keyword documentation in log[/+] on Jan 9, 2017
  6. added this to the milestone on Jan 9, 2017
  7. pekkaklarck commented on Jan 9, 2017

    @pekkaklarck
    Member

    Showing the whole first logical line ought to be safe. Lets do it.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions