检查响应体中是否包含“金庸”:
pm.test("body matches string",function(){ pm.expect(pm.response.text()).to.include("金庸");});
=====================================================================
前提:
测试脚本:
失败如下所示: