Skip to content

Support HTML in suite and test/task documentation #2549

Description

@yahman72

The title says it all: it would nice to have the *HTML* support also for the set test documentation and set_suite_documentation KW's. This would also be consistent with the set test message that supports the *HTML*.

My Use Case was:
I was trying to make links to execution logs (downloaded from SUT and stored in directories with timestamps) from the report.html.
When I ran into problems with the set test message and HTML (see #2548) I tried to use set test documentation only to notice that it doesn't support HTML at all.

Activity

  1. pekkaklarck commented on Feb 16, 2017

    @pekkaklarck
    Member

    Notice that you can use Robot's custom documentation formatting in docs already now. Being able to use HTML freely would be more powerful, though. A simple solution would be allowing *HTML* in the beginning of the documentation similarly as we allow it in exception messages. Are you interested to provide a PR?

  2. mcoderr commented on Apr 22, 2019

    @mcoderr

    Hello,
    may i can work on this ticket

  3. pekkaklarck commented on Apr 23, 2019

    @pekkaklarck
    Member

    Go ahead!

  4. geekypandey commented on Sep 10, 2021

    @geekypandey

    Hi! Is this issue stale, or can I take up this issue?

  5. pekkaklarck commented on Sep 13, 2021

    @pekkaklarck
    Member

    Seems nobody is working with this so go ahead @geekypandey!

  6. mcoderr commented on Sep 13, 2021

    @mcoderr
  7. pekkaklarck commented on Sep 13, 2021

    @pekkaklarck
    Member

    We have #4068 about making test and suite messages available both as plain text and HTML. There are lot of similarities to this issue on implementation level. I just commented that issue related to possible design.

  8. pekkaklarck commented on Sep 13, 2021

    @pekkaklarck
    Member

    In addition to set_xxx_documentation methods supporting HTML, we should make it possible to use HTML when defining suite, test and keyword documentation in data:

    *** Settings ***
    Documentation    *HTML* Example <b>doc</b> in HTML.

    Most likely supporting this wouldn't make the implementation any more complicated.

  9. geekypandey commented on Sep 15, 2021

    @geekypandey

    okay! I will start looking in the issue.

  10. dadwi91 commented on May 4, 2023

    @dadwi91

    If this is still open, I am gonna pick this up

  11. pekkaklarck commented on May 5, 2023

    @pekkaklarck
    Member

    Yes, this is still open. See also related #4068. Ping me on the #devel channel in our Slack if you need any help!

  12. pekkaklarck commented on Mar 3, 2026

    @pekkaklarck
    Member

    There's some recent development related to this. First of all, we are planning to add Markdown support to suite and test documentation in RF 7.5 (#5602) and adding HTML support at the same time would be great. Or do you think we still need HTML support if Markdown is supported?

    Another activity is PR #5624 that implements the functionality discussed in this issue. There's a problem, though, that the design how to configure the documentation format discussed in #5602 is different to what has been discussed here. Here the idea is to prefix docs with *HTML* and in #5602 the idea is to use file level configuration. I think the #5602 style is better as it allows using the same format with all docs without repeating the *HTML* marker. Supporting such markers as a way to override the default documentation format could be considered, though.

    Looking at this issue and the PR, I realized I had forgotten about Set Suite/Test Documentation keyword when designing #5602. The prefix approach discussed in this issue works also in that case, but adding separate format argument to these keywords works well too. I need to add a comment about that to #5602.

    I consider Markdown support more important than HTML support and believe we should implement #5602 first. Good news is that I've already prototyped that and the plan is to start RF 7.5 development soon as well. I'll add this issue to RF 7.5 scope as well and hope that @msamo-n can wait a bit until #5602 lands.

  13. added this to the v7.5 milestone on Mar 3, 2026
  14. changed the title [-]HTML support for set_test_documentation() and set_suite_documentation()[/-] [+]Support HTML in suite and test/task documentation[/+] on Mar 3, 2026
  15. msamo-n commented on Mar 3, 2026

    @msamo-n

    I, personally, like #5602 👍
    Supporting of Markdown would also solve my usecases, so I won't need HTML support then.

  16. pekkaklarck commented on Mar 3, 2026

    @pekkaklarck
    Member

    Yeah, it's not certain do we need raw HTML support if we support Markdown. Adding such support after #5602 is done would likely be very easy, though.

  17. adombeck commented on Mar 6, 2026

    @adombeck
    Contributor

    Yeah, it's not certain do we need raw HTML support if we support Markdown. Adding such support after #5602 is done would likely be very easy, though.

    We would love to have HTML support in suite metadata (i.e. the one set with Set Suite Metadata). Would it be possible to also consider that keyword in #5602? I could contribute a PR after #5602 is done to add the HTML support.

  18. modified the milestones: v7.5, v7.6 on Jul 5, 2026
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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions