简体   繁体   English

在 Robot Framework 报告的摘要信息中添加数据。html

[英]Adding data in Summary Information of Robot Framework report.html

I am using robot framework integrated with python to perform automation, after the execution we get a section of "Summary Information" in the test report where we get the data like start time , end time etc. So i wanted to add some more information in that section but unfortunately i am not able to get any tag through which it can be added.我正在使用与 python 集成的机器人框架来执行自动化,执行后我们在测试报告中获得了“摘要信息”部分,其中我们获得了开始时间结束时间等数据。所以我想在该部分,但不幸的是我无法获得任何可以添加它的标签。 Can someone please help me.有人可以帮帮我吗。

In the test case file under Settings Section, you can update the documentation as below:在设置部分下的测试用例文件中,您可以更新文档如下:

  *** Settings ***
Documentation     This file has test cases related to Authentication
Library           SeleniumLibrary

In the report, you can see documentation listed in Summary Information in the below screenshot在报告中,您可以在下面的屏幕截图中看到摘要信息中列出的文档

报告

That is done with the so-called metadata , which then appears in the report.html & log.html files.这是通过所谓的 metadata完成的,然后出现在 report.html & log.html 文件中。
There are (at least) two ways to add it - in the Settings section:有(至少)两种添加方法 - 在“设置”部分:

Metadata    My Info        metadata text: *formatting* is _supported_ close to ``markdown``

, and as a command line argument: ,并作为命令行参数:

--meta from:command_line

It then appears in both - the report.html:然后它出现在两者中-report.html:

report.html 文件

, and log.html: , 和 log.html:

日志.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM