jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <>
Subject Re: How do I load variables into a HTTP request?
Date Wed, 22 Jul 2009 21:11:08 GMT
For e.g.
If your CSV file has two fields
In the variable names field say you type mac_var,another_var
Then in your HTTP Sampler you can type ${mac_var} and at runtime the value
will get replaced.
This could  be in the value field of the Sampler (name field would be m,
however your example is showing the parameter in the URL which is normally a

If you can calculate this value at runtime say using java code , you can use
a preprocessor to populate the variables. The HTTP Sampler would remain the


On Wed, Jul 22, 2009 at 1:45 PM, ashamaniq <> wrote:

> Good day!
> I'm just starting to use Jmeter and so far it's been going well but I'm
> having trouble or don't know exactly where to start with loading variables
> into a HTTP POST.
> Basically I need to send a different HEX value in my path with each new
> request I send to my server.
> Path: /procdac/
> m= MAC Address, which should be random.
> Or is there is a way to pull "m=$mac_var" from a text file with a list of
> MAC addresses.
> I tried specify a CVS file using CSV Data Set Config, but I'm not sure how
> I
> can make a reference from my Path to that variable.
> Any suggestions?
> Thanks!
> --
> View this message in context:
> Sent from the JMeter - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message