一种解决方案是从头开始创建您自己的报告。 XML 输出非常容易解析。您可以使用命令行选项关闭报告的生成(例如:--log NONE 和--report NONE)。然后,创建一个脚本来生成您想要的任何类型的报告。
One solution is to create your own report from scratch. The XML output is very easy to parse. You can turn off the generation of reports with command line options (eg: --log NONE and --report NONE). Then, create a script that generates any type of report that you want.
One method, kind of lame but workable, is to use the keyword, 'Set Test Message'. This lets you put text into the test message column of the report. Whenever the test passes, you will see the message. If it fails, you see the normal failure message.
It would be great to be able to dynamically insert a documentation line, though. I'd love to be able to have the keyword, "Set Documentation Message" so that in the keyword logic I could set it, instead of copying a '[Documentation] blah, blah, blah' onto every line that it applies to.
发布评论
评论(4)
一种解决方案是从头开始创建您自己的报告。 XML 输出非常容易解析。您可以使用命令行选项关闭报告的生成(例如:
--log NONE 和--report NONE
)。然后,创建一个脚本来生成您想要的任何类型的报告。One solution is to create your own report from scratch. The XML output is very easy to parse. You can turn off the generation of reports with command line options (eg:
--log NONE and --report NONE
). Then, create a script that generates any type of report that you want.一种方法虽然有点蹩脚但可行,是使用关键字“设置测试消息”。这使您可以将文本放入报告的测试消息列中。每当测试通过时,您都会看到该消息。如果失败,您会看到正常的失败消息。
不过,如果能够动态插入文档行那就太好了。我希望能够拥有关键字“设置文档消息”,以便在关键字逻辑中我可以设置它,而不是将“[文档] blah,blah,blah”复制到它适用的每一行。
One method, kind of lame but workable, is to use the keyword, 'Set Test Message'. This lets you put text into the test message column of the report. Whenever the test passes, you will see the message. If it fails, you see the normal failure message.
It would be great to be able to dynamically insert a documentation line, though. I'd love to be able to have the keyword, "Set Documentation Message" so that in the keyword logic I could set it, instead of copying a '[Documentation] blah, blah, blah' onto every line that it applies to.
您可以直接修改位于的模板
You can directly modify the template located at
您可以使用以下步骤中提到的步骤自定义机器人框架。 Robo 报告
您可以获得类似于 HTML 报告
You can customize the robot framework using the steps mentioned in the following steps. Robo Report
You can get a html report that looks like HTML Report