java - FitNesse 测试返回 "Class RunEtlFixture is not a fixture"

标签 java fitnesse

我在本地设置了 FitNesse,并尝试使用我自己的 java 代码运行测试。

这是 Fixture 类:

import fit.ColumnFixture;

public class RunEtlFixture
{
   private String etlName;
   private int numOfInputRecords;
   private int numOfOutputRecords;

   public void setEtlName(String etlName) {
      this.etlName = etlName;
   }

   public void setNumberOfInputRecords(int num){
      this.numOfInputRecords = num;
   }

} 

这是测试维基:

<test page>

!path /Users/shay/Projects/AMP/Talend Jobs Testing/FitNesseTests

| RunEtlFixture                          |
| EtlName | InputRecords | OutputRecords |
| etl_one | 5            | 5             |
| etl_two | 10           | 10            |

但是,当我运行测试时,我得到:

Class RunEtlFixture is not a fixture.

我尝试在网上寻找帮助,但FitNesse的资源似乎很少。有人可以帮忙吗?

最佳答案

事实证明我所缺少的只是扩展适当的固定装置:

public class RunEtlFixture extends ColumnFixture {
   ...
}

关于java - FitNesse 测试返回 "Class RunEtlFixture is not a fixture",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39359517/

相关文章:

java - Fitnesse 上的定制 fixture

testing - 如何在 Xebium 中定义多个 ScenarioLibraries

variables - 使用另一个变量值引用 Fitnesse 中的变量值

java - 适用于 500 多个航路点/节点的最短路径算法(例如 Dijkstra 算法)?

java - 按下按钮时 Android 内存使用量增加

java - 如何在 Android 上使用 KeyStore 创建证书签名请求?

java - 集合排序无法正常工作

java 8 流 API 从 map 中过滤掉空值

.net - Fitnesse - .NET 4 的标准 fitSharp 配置问题

integration-testing - Fitnesse 对比任何其他子系统测试工具