[英]How to add internal links to Suite Metadata on Robot-Framework report.html?
On my suite I create a file with some extra information that may be needed for future reference.在我的套件中,我创建了一个文件,其中包含一些可能需要以供将来参考的额外信息。 it is possible to add an internal link and show it on report.html as a link?.是否可以添加内部链接并将其作为链接显示在report.html 上? for example have below ${image_info} as a link to the actual file that is under a results directory?例如,将${image_info} 以下作为指向结果目录下实际文件的链接?
Set Suite Metadata IMAGE ${image_info}
Yes, robot supports some limited formatting, including the ability to embed links.是的,robot 支持一些有限的格式,包括嵌入链接的能力。 For example, to include a link to a file you could do something like this:例如,要包含指向文件的链接,您可以执行以下操作:
set suite metadata IMAGE [something.html|${image_info}]
For more information see the section Documentation formatting in the robot framework user guide, and particularly the subsection Urls有关更多信息,请参阅机器人框架用户指南中的文档格式部分,尤其是Urls小节
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.