I tried a lot in google and did not find any solution. If I missed then I am sorry.
In Jmeter, I am running the same request in a loop. For 'n' number of times. For every request, I need to extract the json response and pass it to next request. I am able to extract the response of last one request and save it to a variable and then pass to next request. I used JSON Path Extractor. I also figured out extracting the response using BeanShell and JSR223 Pre and Post Processors
The thing here is I need to extract all previous responses data and build the request body for the next request, not just last 1 response. Please
I do not want to append the extracted response to a file then pass the data to request from the file.
Request1 (Requestbody:[]). Response1: Product A
Request2 (Requestbody: [Product A]). Response: Product B
Request3 (Requestbody: [Product A, Product B]. Response Product C
Request4 (Requestbody: [Product A, Product B, Product C]). Response: Product
.. ... .....
Requestn (body: [Product A, Product B, Product C, Product D]....), response: no more products
Any thoughts please
Thanks Jack