Hi
One way is read all the header values from the CSV into a single variable .

Then write a BeanShell Pre processor for the sampler which uses
 sampler.getHeaderManager().add(header)
So you will read the variable in beanshell, split it on the delimiter and
add it to the sampler in a loop.

Do you need sample code ?.



regards
deepak


You want JMeter to make GET call which has a variable number of headers?
and you have

On Mon, Dec 5, 2011 at 1:46 PM, Jason Gilroy <[email protected]>wrote:

> I have a CSV (ok, PSV - pipe separated file) file that looks something
> like:
>
> /foo/bar.html|header1name: header1value|header2name:
> header2value|...|headerNname: headerNvalue
>
> (this is the GET request coming into our system, followed by the list of
> HTTP Headers that accompanied that request.)  I'm trying to replay these in
> a test environment, but having a tough time envisioning a way to handle the
> variable number of headers that might come with each request; both getting
> them into individual variables and then stuffing them into the Header
> Manager.  I would really appreciate any ideas for how to approach this.
>
> Thanks,
> J
>

Reply via email to