0
jsonPathの結果をJSONとしてvarに保存し、別のjsonPathクエリに再利用してください。GATLING JSON保存して再利用
要求:私は成功せず、もちろんのような何か...を試してみました
var datas:Seq[String] = _
object Search{
val search = exec(http("request_0")
.post(uriString)
.body(StringBody(requestJSON))
.asJSON
.check(jsonPath("$..data[*]")
.saveAs("datas"))
)
}
:
object Next{
var current = datas.jsonPath("$..[?(@.id=='"+id+"')]") // ERROR : value jsonPath is not a member of Seq[String]
val next =exec(/*use current variable*/)
}
アイデアは次のように、別のHTTP POSTリクエストに注入するために、JSONの出力を使用することですフィーダ。 thx