开发者

how to customize robot framework test reports [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何转开发

Closed 3 years ago.

Improve this question

I want to customize robot framework test report, in order to fit my need. Where can I find the related python source that handle this feature?

Or I need to create a 3rd party library to handle this?


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.


You can directly modify the template located at

/usr/local/lib/python2.7/dist-packages/robot/htmldata/rebot/


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜