gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 09:31:37 24 4
gpt4 key购买 nike

我在本地设置了 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com