Jmeter 使用 BeanShell PostProcessor 提取一个值

Jmeter extract a value using BeanShell PostProcessor

我想从以下响应中提取 b 并将其用作新请求的参数,你能帮我吗?

回复:

[[
{"a": { "x": "123", "y": "456", "z": "789" }, "p": ["111"], "q": "222"},
"b"
]]

这里不需要Beanshell。

将 JMeter 3.0 JSON Path Post Processor 与以下 JSON 路径表达式一起使用:

$..[1]

查看此计划:

此处描述了语法: