On 26/09/2007, Simon Brown <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I'm having problems with a while loop within a while loop, doing the
> following (written in pseudocode):
>
>
>
> String header, url;
>
> header = readFromCSV(file1);
>
> url = readFromCSV(file2);
>
>
>
> while (header != "<EOF>")
>
> {
>
> while (url != "<EOF>")
>
> {
>
> HTTPRequest(header, url);
>
> }
>
> }
>
>
>
> Is there any way to do something equivalent in JMeter? I currently
> cannot get it to loop through all the urls and all the headers. Am I
> missing something?
It looks as though the header and url are only read once.
Also presumably the url loop needs to be reset for each header?
It's not possible to "reset" a file reader in JMeter, though you can
loop through a file repeatedly. If you know how many entries there are
(or what the last one is) you can construct a loop around that.
BTW, the Java Request sampler is good for testing - it does not need a
server, and you can include any variable names you like in the label
or response data etc.
>
> Thanks,
>
>
>
> Simon
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]