命令行 FitNesse 中的报告
如何从命令行 FitNesse 生成报告?
并且,可以提供哪些类型的报告? xml、txt、纯文本?
How do I generate reports from Command Line FitNesse ?
And, what types of reports are possible?
xml, txt, plain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许这个页面在 2010 年并不存在,但有一个命令行参数可以运行测试并退出:
http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.CommandLineArguments
其中“命令”是 REST 命令,就像您可以传递给 cUrl 一样。这适用于 Windows 或 Linux,并且不依赖于 cUrl。 REST 命令列表可以在此处找到。
我仍然找不到列出测试/套件输出的所有可用格式的页面,但有一个页面显示 XML 格式。其他可用格式为 "text" (
format=text
) 和 HTML,这是默认值。Maybe this page didn't exist back in 2010, but there is a command line parameter to run a test and exit:
http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.CommandLineArguments
Where the "command" is a REST command just like you could pass to cUrl. This works in Windows or Linux and does not depend on cUrl. The list of REST commands can be found here.
I still cannot find a page that lists all available formats for test/suite output, but there is a page showing the XML Format. The other formats available are "text" (
format=text
) and HTML, which is the default.最好的选择是使用 cURL 或 wget 并通过其 RESTful 服务调用 Fitnesse。
http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse。 RestfulServices
XML 是最常见的格式,尽管我认为 JSON 可用于某些操作。
Best bet is to use cURL or wget and call Fitnesse through its RESTful services.
http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.RestfulServices
XML is the most common format, although I think JSON is available for some actions.
我认为唯一允许的格式是 xml、html 纯文本结尾。但文档很糟糕,没有关于此的页面.. =(
I think the only formats allowed are xml, html plain text end. But the documentation is bad, there's no page about this.. =(
如前所述,使用 cURL 或 wget。
例如,要运行名为“MySuite”的套件并获取 XML 格式的报告,要使用的 URL 为:
http://ip:port/MySuite?suite&format=xml
对于名为“MyTest”的单个测试, URL 更改为:
http://ip:port/MyTest?test&format=xml
As mentioned before, use cURL or wget.
For example, to run a suite called "MySuite" and get a report in XML, the URL to use is:
http://ip:port/MySuite?suite&format=xml
For a single test called "MyTest", the URL changes to:
http://ip:port/MyTest?test&format=xml