Decode json in Jmeter and use one response's varible for another request -


i have question not find full answer. using jmeter 3.2, , using json in request, problem encode response (%20france , not france). read in net how decode response , move file or variable, not want it, want decode response , parse using json extractor, , take example id field , put in next request. can please advise step step solutions regards

to more specific 1. send json request in jmeter 2. decode response in jmeter 3. take id field decode response 4. put id step 3 in new json request

here procedure:

  1. add sampler or request in thread group. configure fields requirements. (i.e server ip, port, method, body data etc)

  2. add http header manager send content-type header value of application/json

  3. add json path extractor under sampler/request extract response. (put variable name extracted id saved, give correct expression in json path expression parse it, use not_found default value).

demo: enter image description here

  1. now can use variable in subsequent request.

demo: enter image description here


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -