jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryabtsev Vladimir <>
Subject RE: variable within csv
Date Thu, 10 Apr 2014 09:11:03 GMT
Hi, Léon.

1. Do you really need CSV file for your case? I think you can use Interleave Controller or
Random Controller for this, or prepare path in special variable in JSR223 Sampler and then
use it.
2. You can add random period directly in Path field of HTTP Request, for example /new.html?period=${__Random(1,5)}


-----Original Message-----
From: Léon Keijser [] 
Sent: Thursday, April 10, 2014 11:43 AM
Subject: variable within csv


I have a CSV that contains parts of an URI:


In my test I loop over the CSV using variable $SUBPAGE. Now, one part can contain parameters:


I thought of making the number a random variable (1,2,3,4,5) and including the variable name
in the CSV:


which would then translate to '?period=1' , '?period=2', etc.

Unfortunately that doesn't work, as jmeter won't fill in the variable. I could remove the
'/new.html' from my original CSV and make a separate request for that, using the RANDNUM variable,
but perhaps there's a better way. Any advice is welcome!



To unsubscribe, e-mail:
For additional commands, e-mail:
View raw message