Reputation: 147
I will get json response from last request, then I will parse the response and get a variable array, then create new request base on each element in that array one by one. I don't know how to implement it.
Upvotes: 1
Views: 612
Reputation: 168072
Use JSON Extractor and ForEach Controller combination. The idea is to have variables like:
var_1=foo
var_2=bar
var_3=baz
So you would be able to iterate them using foreach loop. See Using Regular Expressions in JMeter article to get the overall idea.
Upvotes: 2
Reputation: 6398
Steps to follow:
JSON Path Expressions
to capture the specific values and store it in variable names, say capturedArray
. refer JSON Path Syntax.${capturedArray}
Upvotes: 1