[英]How to get a intern variable from json response using jmeter's json path extractor
I have a problem, I get this json response from jmeter and I want to move tt_cid to param and then move it to another request. 我有一个问题,我从jmeter收到了这个json响应,我想将tt_cid移至param,然后将其移至另一个请求。 I know how to get CID that is stand alone for example, but not hot to get the internal data after the '&'.
例如,我知道如何获取独立的CID,但不喜欢在'&'之后获取内部数据。 (i want to get tt_cid param from the json this is under Nurl field
(我想从Nurl字段下的json获取tt_cid参数
You need to add JSON Extractor
with similar expression to save the full nurl value in nurl
variable name. 您需要添加具有类似表达式的
JSON Extractor
,以将完整的 nurl值保存在nurl
变量名称中。
After it (post processor on same request) add Regular Expression Extractor
, check radio button of JMeter Variable
and put nurl
variable name. 之后(按相同请求对后处理器进行处理),添加
Regular Expression Extractor
,选中JMeter Variable
单选按钮,并放置nurl
变量名称。 inside use tt_cid=(\\w+)
to get the inner value: 内部使用
tt_cid=(\\w+)
获取内部值:
Reference Name: tt_cid
Regular Expression: tt_cid=(\w+)
Template $1$
Match No. 1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.