2012-04-23 59 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