1.body返回check检查点函数
#对HTTP response返回body体文本内容进行判断
.check(substring(""" 检查对象""").exists)
2.对HTTP response返回头部内容进行检查判断
.exec(
http("request_0") // record_0)
.get("http://${ip}/user")
.headers(headers_0)
.check(status in (200))//示例1:检查返回状态码
.check(headerRegex("Accept-Encoding","*"))//示例2:检查返回头部Accept-Encoding 内容
.check(headerRegex("osp-status","200"))//示例3:osp-status为头部属性,200对应属性值
)