Reputation: 5671
I get response in JSON
format in JMeter.
{"data1":{"file":"myfile","contentType":"text/xml"},"data2":{"file":"myfile","contentType":"text/xml"}}
I use jp@gc JSON Path Extractor
plugin to get value of file
fields. One instance for each.
Expression 1: $.data1.file
Expression 2: $.data2.file
I use Debug Sampler
to check value of destination variables. None of these has value, when I check it there, but first one has value, when I use vars.get("destvar1")
in a JSR223 Sampler
. I tried also built-in JSON Post Processor, but produces same output.
Upvotes: 0
Views: 509
Reputation: 168072
Configure it as follows:
That's it, you should see the values using Debug Sampler and View Results Tree listener combination
Upvotes: 1