The feature is useful for sure - But its not simple as far as I can tell Usually the number of values is < the number of samples in your test (You might have 100 values but you want to test 10000 times) - If you merely randomize the file then you are simply running the same random sequence N times. Also the choose X out of Y where X > 1 is quite common and usually need both the script and data file to be in sync. if you want to vary X while the script is running also becomes somewhat tricky. whether the data can repeat (or not) before you have gone through all the values is also common Also specifying different weights for some items (e.g. most popularly accessed)
It's easier to express this outside JMeter - perhaps we should be looking at a library or something that Jmeter can easily use rather than having this as core JMeter functionality. On Mon, Apr 6, 2015 at 8:59 AM, Shmuel Krakower <[email protected]> wrote: > To be honest, as a user of jmeter I would expect it to allow me to check a > checkbox in the csv data set config element for random order. This is not > the first time that this topic is being asked for and it is pretty basic. > > Maybe someone will implement such a feature ? > > The implementation can be writing to a temp file on filesystem during the > initialization of the config element and deleting it once the test is done. > > www.beatsoo.org - free application performance monitoring from world wide > locations. > On Apr 6, 2015 6:45 PM, "Deepak Shetty" <[email protected]> wrote: > > > >I think as Sergio Boso's answer is the best one. > > My vote would go for pre calculate - It works for most use cases. adding > > another piece of software is overkill for most cases. > > > > On Mon, Apr 6, 2015 at 12:38 AM, chaitanya bhatt < > > [email protected]> > > wrote: > > > > > I think as Sergio Boso's answer is the best one. Using RedisDataSet > > plugin > > > is a superb solution to randomize data. Since Redis runs as a server > this > > > solution randomizes data fetch across all remote Jmeter instances. > > > > > > Thanks > > > Chaitanya M Bhatt > > > http://www.performancecompetence.com > > > > > > On Sun, Apr 5, 2015 at 11:49 PM, Bob <[email protected]> wrote: > > > > > > > Is it possible to randomly select without changing CSV file? > > > > > > > > > > > > On 06/04/15 11:45, Shmuel Krakower wrote: > > > > > > > >> Erez - the way I currently do that is by radnomzing the files with a > > > linux > > > >> shell script, before I start jmeter. > > > >> The following commands will randomize all csv files in the current > > > working > > > >> directory: > > > >> > > > >> for f in *.csv; do cat $f | awk 'BEGIN{srand();}{print > rand()"\t"$0}' > > | > > > >> sort -k1 -n | cut -f2- > $f.abc; mv $f.abc $f -f;done > > > >> > > > >> > > > >> > > > >> Shmuel Krakower. > > > >> www.Beatsoo.org - re-use your jmeter scripts for application > > > performance > > > >> monitoring from worldwide locations for free. > > > >> > > > >> On Mon, Apr 6, 2015 at 8:25 AM, Bob <[email protected]> wrote: > > > >> > > > >> I'm also searching for such solution. > > > >>> > > > >>> On 02/04/15 19:59, Erez Naim wrote: > > > >>> > > > >>> Hi all, > > > >>>> > > > >>>> I mean I don’t want it to take one by one values but want to > > randomize > > > >>>> it. Is it possible? > > > >>>> > > > >>>> Thanks !! > > > >>>> > > > >>>> Erez Naim | QA Lead | LinkedIn <http://www.linkedin.com/ > > > >>>> profile/view?id=34323263>vCard <http://www.theneura.com/ > > > >>>> vCards/gilad.vcf>Twitter > > > >>>> <http://twitter.com/#%21/giladmeiri/> > > > >>>> > > > >>>> cid:[email protected] > > > >>>> > > > >>>> EL AL 2 Street | Herzliya > > > >>>> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype > erez.neura > > > >>>> > > > >>>> website <http://www.theneura.com/> |blog < > > http://www.startupbitz.com/ > > > > > > > >>>> |twitter <https://twitter.com/intent/user?screen_name=theneura> > > |map > > > < > > > >>>> http://goo.gl/maps/ZRkg5> > > > >>>> > > > >>>> > > > >>>> > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [email protected] > > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > >
