Guel135
Guel135

Reputation: 788

JMeter response to a file (append it to only one file)

In my JMeter project I make a request and I get a response like {id="fklajdlfja"} and then I get one JSON file for each response.

My question is, is there an elegant way to merge all the ids in a file? My options are:

  1. Make a JavaScript after using JMeter to put all together.
  2. A JSON post-processor to get the id and then append to a file

Any nicer solution?

Upvotes: 0

Views: 503

Answers (1)

rachna bafna
rachna bafna

Reputation: 501

Extract the id from response, you can either use regular expression extractor or json post processor. Use Beanshell Post processor and append these id's into a file. That should be easiest way.

Upvotes: 1

Related Questions