记录一下: 在使用jemeter做接口测试的时候,需要对返回的结果进行断言,如果要进行多个字段的断言,得添加多个jp@gc - JSON Path Assertion,这样比较费劲。所以想使用BeanShell断言来处理,将需要断言的字段存起来,需要对比时,再拿出来用。BeanShell断言可以使用 Read More
posted @ 2021-10-14 10:57 eosclover Views(86) Comments(0) Diggs(0) Edit
a代表response返回的结果,获取字段reserve3的值,操作代码如下: import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObjec Read More
posted @ 2021-10-14 10:48 eosclover Views(576) Comments(0) Diggs(0) Edit