【发布时间】:2026-01-04 10:10:02
【问题描述】:
我想使用响应断言来匹配来自服务器的响应,当我收到响应时,它显示为 { “每页”:6, “总数”:12, “数据”: [ { "last_name": "劳森", “身份证”:7, "头像": "https://reqres.in/img/faces/7-image.jpg", "first_name": "迈克尔", “电子邮件”:“michael.lawson@reqres.in” },
但作为响应断言,它显示为 断言失败消息:测试失败:文本应包含 /{ “每页”:6, “总数”:12, “数据”: [ { "last_name": "劳森", “身份证”:7, "头像": "https://reqres.in/img/faces/7-image.jpg", "first_name": "迈克尔", “电子邮件”:“michael.lawson@reqres.in” }, { 因此,即使匹配失败,但由于添加 /(斜杠),它也会失败。
【问题讨论】:
标签: jmeter performance-testing jmeter-plugins assertion