群友问题
请求响应提取到多个值,求这些值的和,然后做断言。
演示数据
获取下面所有money,然后求和
{ "data": { "firstPage": true, "lastPage": false, "list": [{ "cwhname": "采购一部", "pname": "pc", "money": 30000 }, { "cwhname": "采购二部", "pname": "pad", "money": 15000 }], "pageNumber": 1, "pageSize": 15, "totalPage": 6, "totalRow": 86 }, "state": "ok" }
实现
假设期望的money之和是50000
beanshell断言
运行结果如下:
如果期望的money之和是45000,运行结果如下:
标签:cwhname,断言,求和,money,答疑,pname,jmeter From: https://www.cnblogs.com/uncleyong/p/17736815.html