Fitnesse获得内心价值

时间:2012-04-23 16:37:10

标签: 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是JSON中的值而不是某些方法名称...任何想法?

非常感谢!!

1 个答案:

答案 0 :(得分:0)

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

哎呀,没注意到你说contactInformation是JSON。所以你必须编写一个方法来返回一个对象集合。这对于fitSharp或FitLibrary来说会有所不同。

更新:固定链接