执行slim fitnesse测试用例时出错

时间:2017-09-04 11:59:29

标签: fitnesse-slim

我在fitnesse执行测试用例时遇到以下错误:

The instance decisionTable_0.setFirst. does not exist

以下链接有截图:

https://github.com/unclebob/fitnesse/issues/1078

下面是夹具java代码: 包FitnesseExamples;

public class Calculator {
private int first, second;

public void setFirst(int first){
    this.first = first;
}
public void setSecond(int second){
    this.second = second;
}
public int addition(){

    return(first+second);
}

public int minus(){
    return(first-second);
}

public int multiply(){

    return(first*second);
}

public float divide(){
    return(first/second);
}
}

以下是维基测试:

!define TEST_SYSTEM {slim}

!path C:\Shyam\Automation\Workspace\AddNumber\src\FitnesseExamples

!|Calculator|
|first|second|addition?|minus?|multiply?|divide?|
|4 |2 |6 |2 |8 |2.0 |
|10 |5 |15 |5 |50 |2.0 |
|10 |10 |20 |0 |100 |1.0 |

我的Calculator.class文件位于以下位置:

C:\希亚姆\自动化\工作区\ AddNumber \ SRC \ FitnesseExamples

0 个答案:

没有答案