jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Singer <>
Subject How to change Http Sampler file sent during run
Date Thu, 05 Jun 2008 13:12:52 GMT

Hi. I would like to be able to change the file sent in the body of the http
request during run. So that if i have many threads configured to send this
request, each one will send a different file which will be editted
during run.

For example, if the file contains this:
I would like to change the field <acc_ip> for each thread before it
I don't want to define it manually by defining different tests, since i want
to run more then 1000 combinations. 
Currently the only way i can see to do this is to checkout the JMeter src
files, and to add my additions to class:HTTPSampler:sendPostData method, so
that before send i would change the file to send.

I am sure there is a more elegant way to do this, by some how replacing the
HTTPSampler default class or something else.

Another thing: i would also like to do some logic after the response is
received before running another test. Cause i want to change files for a
different test depending on the result of test A.

Please let me know what is the best way to do this.


View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message