【发布时间】:2016-03-22 06:52:57
【问题描述】:
我在 jmeter 测试中得到一个我不明白的结果:
我正在尝试从这个 Json 响应中提取“totalRunning”值:
{"notifications":[],"taskNotificationInfo":{"totalRunning":0,"totalCompleted":0,"totalCompletedWithErrors":0,"totalFailed":0,"totalPending":0,"requestTime":1458628767436,"hasRecords":false}}
我的正则表达式配置如下:
参考名称:TotalRunning
正则表达式:"totalRunning":"(.+?)"
模板:$1$
匹配:1
默认值:1
屏幕截图:
在这种情况下,我一直获取默认值而不是“0”。 我是从错误的地方提取它吗?
任何帮助将不胜感激。
【问题讨论】:
标签: regex jmeter load-testing jmeter-plugins