問題タブ [rest-assured-jsonpath]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
11708 参照

java - How to validate a list of values from the response using RestAssured

Could someone please me understand how to validate a list of items from the response. Say the response looks something like below,

The element Book has four lists under it with different data, now if I want to validate the author name and the price sequentially (in a loop for instance) how can I achieve that..?

I usually convert the response into a Json document and then validate, but in this case, if I use the Json path "Store.book.author", out of the four lists from the response, which list would it refer to..? That's where my confusion is.

0 投票する
1 に答える
126 参照

json - Rest Assured IO JSONPathを使用してJSONArrayのノードを読み取る方法は?

以下は REST 要求の応答です。私の要件は、name ノードに「Military」が含まれていて、amount ノードが 500 に等しいかどうかを確認することです。

プロジェクトで REST Assured IO API を使用しています。この要件のコーディングを手伝っていただけますか?