java FitNesse 错误:找不到夹具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3817461/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 03:30:38  来源:igfitidea点击:

FitNesse Error: Could not find fixture

javafitnessefitnesse-slim

提问by user320587

I am trying to build few tests using the FitNesse framework in Java. For some reason, I get an error "Could not find fixture: script" when I try to use the script table. I am sure I have all the libraries configured in my classpath.

我正在尝试使用 Java 中的 FitNesse 框架构建一些测试。出于某种原因,当我尝试使用脚本表时,出现错误“找不到夹具:脚本”。我确定我的类路径中配置了所有库。

Searching in Google doesn't have much information.

在 Google 中搜索没有太多信息。

Any pointers would be very helpful

任何指针都会非常有帮助

Thanks, Javid

谢谢,贾维德

回答by lalithasri

Script table must start with "Script" as keyword followed by Class name. Before that you need to define the test as Slim

脚本表必须以“Script”作为关键字开始,后跟类名。在此之前,您需要将测试定义为 Slim

Syntax: !define TEST_SYSTEM {slim}

语法:!define TEST_SYSTEM {slim}

回答by Siri

hope you have indicated the test system to use is Slim and make sure you have fitnesse.jar in the path. Example

希望您已指明要使用的测试系统是 Slim,并确保您在路径中安装了 Fitnesse.jar。例子

!define TEST_SYSTEM {slim}
!path fitnesse.jar

http://fitnesse.org/FitNesse.UserGuide.DebugingFixtureCodecould help debug

http://fitnesse.org/FitNesse.UserGuide.DebugingFixtureCode可以帮助调试

回答by DKroot

I had the same problem with my decision table in FitNesse 20130530 standalone. All I had to fix it is this:

我在 FitNesse 20130530 独立版中的决策表遇到了同样的问题。我所要做的就是解决这个问题:

!define TEST_SYSTEM {slim}

FitNesse JAR is prepended to the ClassPath by FitNesse.

FitNesse JAR 由 FitNesse 预先添加到 ClassPath。