Bastian
Bastian

Reputation: 1237

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. I know how to get CID that is stand alone for example, but not hot to get the internal data after the '&'. (i want to get tt_cid param from the json this is under Nurl fieldenter image description here

I use json path extractorenter image description here

Upvotes: 0

Views: 109

Answers (1)

Ori Marko
Ori Marko

Reputation: 58862

You need to add JSON Extractor with similar expression to save the full nurl value in nurl variable name.

After it (post processor on same request) add Regular Expression Extractor, check radio button of JMeter Variable and put nurl variable name. inside use tt_cid=(\w+) to get the inner value:

Reference Name: tt_cid

Regular Expression: tt_cid=(\w+)

Template $1$

Match No. 1

Upvotes: 1

Related Questions