跳到內容

資料格式

四個節點,全都照同一套模型打造:一個 parsestringify 操作、一個 value 輸入、一個 result 輸出。

輸入value
輸出result
設定opparsestringifyindent(0 = 精簡,最多 10)
輸入value
輸出result
設定opindent(最多 10)

產生的物件會把屬性放在 @_ 前綴底下:<client id="42"/> 會得到 { client: { '@_id': '42' } }

要用比純文字更好的方式處理 SOAP 回應,靠的就是 這個。

輸入value
輸出result
設定opindent(1 到 10,預設 2)
輸入valuedelimiter(字串)
輸出result
設定opdelimiter(預設 ,)、header(預設 true

啟用 header 時,parse 會產生一份以第一列為名稱的物件清單。搭配 Read fileForEach,就是資料驅動測試的標準模 式:

Read file「jeux.csv」──► CSV (parse) ──► ForEach
└─ each ──► HTTP 請求