Variable input for JMeter Load testing?

Omar Kooheji picture Omar Kooheji · Feb 21, 2012 · Viewed 21.8k times · Source

I need to load test a service I've developed but I need the data that I post to the web service to have some variance.

I've set up Thread with an Http Request and I've the parameter I need to set but I can't see how I'd go about changing the contents of the HTTP parameter from request to request.

Ideally I'd like to feed in a list of data Items and have JMeter iterate through them.

Answer

Aliaksandr Belik picture Aliaksandr Belik · Feb 21, 2012

Prepare kind of csv-file with list of your test-params and use it to parametrize your test-samplers, using at least the following:

  1. CSV Data Set Config
    Explained example here, simple example here.

  2. Jmeter functions: __CSVRead, __StringFromFile.

  3. Variables From CSV sampler from jmeter-plugins.