0
jsonPath
(または他のマッチャー)を使用しているときにチェックを実行できません。一致条件がsseで動作しない
message
を使用している場合、私はセッションで
.check(wsAwait
.within(6 seconds)
.until(1)
.message.exists
//.jsonpJsonPath("$.data").exists
.saveAs("CID"))
以降のシナリオでは、私は
{"event":"ConversationCreated",
"data":"{"conversationId":"0e21f93d-6b0c-441f-a01d-8b0aa4e14769",
"customerInfo":null,"deviceInfo":null}"}
しかし、使用してメッセージ全体を印刷することができるよ全体をJSONメッセージを保存することができますよpathJson
matcher、私のチェックタイムアウト
.check(wsAwait
.within(6 seconds)
.until(1)
// .message.exists
.jsonpJsonPath("$.data").exists
.saveAs("CID"))
実行が、私はそれを「仕事」を作ることができた
...
12:09:32.248 [ERROR] i.g.c.a.b.SessionHookBuilder$$anon$1 - 'hook-2' crashed with 'java.util.NoSuchElementException: key not found: CID', forwarding to the next one
...
---- Errors --------------------------------------------------------------------
> Check failed: Timeout 1 (100,0%)