【发布时间】:2013-11-06 17:47:47
【问题描述】:
我找不到从 Jmeter http 请求中的 json 响应中提取数组的方法。我能够提取的所有其他字段。但是,我似乎无法提取类似以下内容。有什么办法可以从 Jmeter http 请求的响应中提取出来吗?下面我需要提取 [1,2,3] 并将其保存在变量中。
"days":[1,2,3]
"sectionIds":[abc,def,ghi]
我可以在 jmeter 正则表达式提取器中使用 "subscriptionId":"(.+?)" 来提取以下内容
"subscriptionId":"abcd"
可以使用这个“时间”提取时间值:(\d+)
"time": 120
【问题讨论】:
标签: regex jmeter load-testing performance-testing