How to let jMeter http request sampler generate parameters?

Rasalom picture Rasalom · Jan 16, 2013 · Viewed 26.9k times · Source

Is there a way to generate random parameter values in jMeter http request sampler or any other sampler?

Answer

Kerim Karaca picture Kerim Karaca · Jan 16, 2013

In JMeter, you can use counters to generate parameter values. Add your counter to the top of your test plan and choose initial, increment and maximum values. It will start counting automatically.

counter is in Pre Processors menu. You can use the counter values in HTTP samplers by using reference name. i.e. let's say your reference name is ref_counter then you can call its values in HTTP samplers with ${ref_counter}.