我想在 POSTMAN 中使用 JSON 文件断言响应主体

I would like to assert response body with JSON file in POSTMAN

我是邮递员的新手,我想知道如何从 JSON 文件断言请求正文,该文件与我在多次迭代中使用集合在请求正文中传递 values/data 的文件相同亚军.

如果有人能帮助我断言,我将不胜感激...

在此处输入代码

我的 JSON 输入文件:

[
    {
      "POLCODE":"APOL279906",
      "EnrolmentSegmentValue":"ADF",
      "startDate":"2019-12-01",

   }
]

请求正文:

[
{
    "code": "{{POLCODE}}",
    "brandCode": " ",
    "lineOfBusinessCode": "HEALTH_INSURANCE",
    "enrolmentSegment": [
        {
            "value": "{{EnrolmentSegmentValue}}",
            "startDate": "{{startDate}}",
            "endDate": ""
        }
    ]
  }   
]   

响应正文:

{
"saleDate": "2019-12-01",
"calculateOnCancellation": false,
"code": "APOL279906",
"brandCode": " ",
"lineOfBusinessCode": "HEALTH_INSURANCE",
"rebateApplicant": [{
    "startDate": "2019-12-01",
    "declarationDate": "2019-12-01"
}],
    "enrolmentSegment": [{
    "flexCodeDefinitionCode": "ENROLMENT_SEGMENTS",
    "startDate": "2019-12-01",
    "value": "ADF"
}]

}

我通过探索 POSTMAN 帮助查询找到了答案。