简体   繁体   English

Fitnesse Suite无法执行测试

[英]Fitnesse Suite fails to execute tests

I'm attempting to run a suite of Fitnesse tests however I keep getting the following error message. 我正在尝试运行fitnesse测试套件,但是我不断收到以下错误消息。

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 测试页:0正确,0错误,0忽略,0例外断言:0正确,0错误,0忽略,0例外

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? 有人遇到过吗?

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 (ie SuitePage.TestPageOne; aka sub-wiki) but are elsewhere in the wiki (ie SomeOtherPage.TestPageOne). 我还猜测您正在“链接”到测试中的两个页面不在套件页面(即SuitePage.TestPageOne;又名子Wiki)的下方,而是在Wiki中的其他位置(即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. 这就是所谓的子Wiki。 You can find out more about them here . 您可以在此处找到有关它们的更多信息

Hope That Helps 希望有帮助

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. prune旨在允许关闭套件中的某些部分,以便不要运行。

Interestingly enough, prune has no effect on child trees or nodes if they are run directly. 有趣的是,如果直接运行子树或节点,则修剪对子树或节点没有影响。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM