命令行 FitNesse 中的报告

发布于 2024-08-29 14:40:39 字数 65 浏览 3 评论 0原文

如何从命令行 FitNesse 生成报告?

并且,可以提供哪些类型的报告? xml、txt、纯文本?

How do I generate reports from Command Line FitNesse ?

And, what types of reports are possible?
xml, txt, plain?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

妳是的陽光 2024-09-05 14:40:39

也许这个页面在 2010 年并不存在,但有一个命令行参数可以运行测试并退出:

http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.CommandLineArguments

-c <command>: Run a Rest Command and then exit.

其中“命令”是 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

-c <command>: Run a Rest Command and then exit.

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.

青柠芒果 2024-09-05 14:40:39

最好的选择是使用 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.

北斗星光 2024-09-05 14:40:39

我认为唯一允许的格式是 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.. =(

醉南桥 2024-09-05 14:40:39

如前所述,使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文