https://stackoverflow.com/questions/39119873/how-to-change-the-structure-of-output-xml-from-robot-framework-output
问题描述:
robotframe 的报告中 Statistics by Suite中每个格中只显示当前的test suit 或者 tag的name 不是全部的,如下笑脸部分:
结果:
当前的robot不可以,不可以
如下描述:
There is no way to modify the format of the output.xml file that was generated by robot. You have a couple of choices.
First, you can post-process output.xml with xslt or any other tool to transform it into whatever format you want. It's a very simple structure that is easy to parse.
Your second option is to ignore the output.xml and write your own using the listener interface. Through the listener interface you can get a callback for every suite, testcase and keyword where you can write your own output in whatever format you like.
【popexizhi:
方案一: 自己该output.xml
方案二: listener interface 这个还是第一次听说,看来可以试试
方案三: 我可以试试改改源码如下,嘻嘻,这个回头[next]
】
没有评论:
发表评论