【发布时间】:2013-10-26 04:35:00
【问题描述】:
表格示例:
!script|SomeTest |
|Goto |$Url |
|check |IsAt|IndexPage|true|
|Index |CheckUserOrder? |
|0 |Name1 |
|1 |Name2 |
代码示例:
public class SomeTest {
public string index;
public bool IsAt(string pageTitle){
//function for checking title of page
}
public string CheckUserOrder{
return username(index); // will get name of user for list which is other class
}
}
抛出异常:method name '0' not found in SomeTest...
我不知道为什么 FitNesse 将“0”视为一种方法而不是参数。
【问题讨论】:
标签: fitnesse selenium-fitnesse-bridge