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:
add sampler or request in thread group. configure fields requirements. (i.e server ip, port, method, body data etc)
add http header manager send content-type header value of
application/json
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).
- now can use variable in subsequent request.
Comments
Post a Comment