简体   繁体   English

如何在 Robot-Framework report.html 上添加指向套件元数据的内部链接?

[英]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.

相关问题 机器人框架 - 如何从报告中读取套件名称、测试用例名称以及跳过消息。html - Robot framework - How to read suite name, test case name along with skip message from report.html 有没有办法在机器人框架中测试完成后在电子邮件中发送log.html,report.html和output.xml? - Is there a way to send log.html,report.html and output.xml in email after test completion in robot-framework? 在 Robot Framework 报告的摘要信息中添加数据。html - Adding data in Summary Information of Robot Framework report.html 无法在机器人框架中添加 httplibrary - Unable to add httplibrary in robot-framework Robot-Framework:如何从关键字中获取列表并验证项目 - Robot-Framework: how to get list from keyword and verify items 在机器人框架中添加授权标头 - Adding authorization header in robot-framework 如何在log.html和output.xml中向ROBOT Framework测试统计信息添加一些外部链接? - How to add some external links to ROBOT Framework Test Statistics in log.html and output.xml? Robot Framework从测试套件元数据访问关键字 - Robot Framework accessing a keyword from test suite Metadata 机械手框架在控制台中使用空白行和分隔符打印日志 - robot-framework prints logs in console with blank lines & seperators 使用机器人框架测试具有 For 循环的函数的输出 - Test output of function that have For loop using robot-framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM