Fitnesse和ServiceFixture:变量无法识别

时间:2011-11-16 11:30:15

标签: fitnesse

我正在尝试将ServiceFixture与Fitnesse一起使用。我遇到的问题是我不能使用我用键行定义的变量:

|key|foobar|
|check|response != null|true|
|check|response.customerId|

在这个例子中,我定义了foobar。我应该能够在$ {foobar.response.customerId}的下一个测试中使用它。但是我得到一个错误,未定义的变量:Fitnesse中的foobar.response.customerID。还无法识别内置变量/函数,如$ {random.string}。

我们正在使用Fitnesse-20111025

非常感谢任何帮助/提示。

1 个答案:

答案 0 :(得分:1)

找到我自己的问题的答案:逃避变量就足够了:

! - $ {} foobar.response.customerId - !

为我做了诀窍