2012-04-23 33 views
0

这里是一个有趣的你。Fitnesse得到内在价值

所以我有一个像这样的表格来检查JSON响应中的内容。

!define innerTable (
|name|whatever| 
|email|whatever2| 
|hpeon|whatever3| 
) 

|Check if correct values are returned| 
|property name|value is?| 
|catalogId|1002| 
|productName|Name of the product| 
|productStatus|ACTIVE| 
|productType|Whatever| 
|contactInformation|${prizeTiers}| 

那么,如何让我的东西脱离contactInformation? :)

由于值正在改变和东西...和contactInformation是一个JSON值,而不是一些方法的名称......任何想法?

非常感谢!

回答

0

如果您使用的是fitSharp或FitLibrary,则使用嵌入表来匹配集合。例如http://fitsharp.github.com/Fit/CompareList.html

糟糕,没有注意到你说联系信息是在JSON。所以你必须编写一个方法来返回一组对象。这对fitSharp或FitLibrary会有所不同。

更新:固定链接

+0

此外您的链接指向无效的文件夹或其他东西..因为我越来越404。 – Hannibal 2012-04-26 10:18:23