Fitnesse Suite 无法执行测试

发布于 2024-07-22 06:06:26 字数 186 浏览 9 评论 0原文

我正在尝试运行一套 Fitnesse 测试,但是我不断收到以下错误消息。

测试被中断且结果不完整。 测试页面:0 正确,0 错误,0 忽略,0 异常断言:0 正确,0 错误,0 忽略,0 异常

这两个页面本身运行良好,但是当链接包含在套件页面上时,它们似乎不运行被检测到。

以前有人遇到过这个吗?

I'm attempting to run a suite of Fitnesse tests however I keep getting the following error message.

Testing was interupted and results are incomplete.
Test Pages: 0 right, 0 wrong, 0 ignored, 0 exceptions Assertions: 0 right, 0 wrong, 0 ignored, 0 exceptions

The two pages run fine by themselves however when the links are included on a suite page they don't appear to be getting detected.

Has anyone come across this before?

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

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

发布评论

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

评论(2

何处潇湘 2024-07-29 06:06:26

当您将一个页面包含到另一个页面中时,仅包含该页面的文本,而不包含属性。 标记为 Suite 的页面不会作为测试执行,除非它们也标记为 Test。 如果您使用“测试”属性标记您的套件页面,那么您包含的测试也可能会运行(当然,这在很大程度上取决于这些测试页面中的内容!)

我还猜测您“链接”到的两个页面测试不在套件页面下方(即 SuitePage.TestPageOne;又名子 wiki),而是位于 wiki 的其他位置(即 SomeOtherPage.TestPageOne)。 如果是这种情况,您可能还需要移动测试页面,使它们直接位于套件页面下方。 这就是所谓的子维基。 您可以在此处了解有关它们的更多信息

希望有帮助

When you include a page into another page only the text of the page is included, not the attributes. Pages marked as Suite do not execute as tests unless they are also marked as Test. If you mark your Suite page with the Test attribute as well your included tests may run (though this depends a lot on what is in those test pages of course!)

I'm also guessing that the two pages you are "linking" into the test are not underneath the suite page (i.e. SuitePage.TestPageOne; a.k.a. sub-wiki) but are elsewhere in the wiki (i.e. SomeOtherPage.TestPageOne). If this is the case you may also want to move your test pages so they are directly underneath your suite page. This is what is referred to as a sub-wiki. You can find out more about them here.

Hope That Helps

烟织青萝梦 2024-07-29 06:06:26

另一种可能性是页面属性上的“修剪”复选框被选中。 它具有非常相似的影响。 prune 的目的是允许关闭套件的某些部分,以便它们不会运行。

有趣的是,如果直接运行,剪枝对子树或节点没有影响。

Another possibility is that the "Prune" checkbox on the page properties got checked. It has a very similar impact. prune is intended to allow turning off sections of the suite so the don't run.

Interestingly enough, prune has no effect on child trees or nodes if they are run directly.

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