問題タブ [feature-file]

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 投票する
1 に答える
240 参照

cucumber - RestAssured アサーションの失敗

機能ファイルのスニペット:

次に、messages.type の値を ERROR にする必要があります

実際のサービス応答: "messages": [ { "type": "ERROR" }]

コンソール ログ:

JSON パスの messages.type が一致しません。想定: "ERROR" を含む文字列 実際: [ERROR]

機能ファイルに記載されている ERROR パラメータから二重引用符を削除しようとしましたが、機能しません