简体   繁体   English

FitNesse错误:找不到固定装置

[英]FitNesse Error: Could not find fixture

I am trying to build few tests using the FitNesse framework in Java. 我正在尝试使用Java中的FitNesse框架构建一些测试。 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. 我确定我在类路径中配置了所有库。

Searching in Google doesn't have much information. 在Google中搜索信息不多。

Any pointers would be very helpful 任何指针都将非常有帮助

Thanks, Javid 谢谢,贾维德

Script table must start with "Script" as keyword followed by Class name. 脚本表必须以“脚本”作为关键字开头,后跟类名。 Before that you need to define the test as Slim 在此之前,您需要将测试定义为Slim

Syntax: !define TEST_SYSTEM {slim} 语法:!define TEST_SYSTEM {slim}

hope you have indicated the test system to use is Slim and make sure you have fitnesse.jar in the path. 希望您已指示要使用的测试系统为Slim,并确保路径中包含Fitnesse.jar。 Example

!define TEST_SYSTEM {slim}
!path fitnesse.jar

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

I had the same problem with my decision table in FitNesse 20130530 standalone. 我的FitNesse 20130530独立决策表存在相同的问题。 All I had to fix it is this: 我所要解决的是:

!define TEST_SYSTEM {slim}

FitNesse JAR is prepended to the ClassPath by FitNesse. FitNesse JAR由FitNesse附加到ClassPath之前。

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

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