Hi Note that since my requirement was something like select any 5 out of 1000 , I could keep everything in memory. (your needs might be different - but the principle is the same)
Java code simply reads a file into memory into a list , generates random numbers and selects values from this list and passes it back. uses a setup thread group to load this file into memory . You could modify this to read from wherever your data is stored i.e.for e.g. if these are products stored in a Database , you could change the code to directly read from there - Note you might have specific requirements like go through every value before you repeat a value - in which case you'll have to modify the code to support that. Eclipse project , sample CSV (location hardcoded in setup thread group), sample JMX, compiled jar (java 1.7) place in lib, in location below *https://onedrive.live.com/?cid=1BD02FE33F80B8AC&id=1bd02fe33f80b8ac!946 <https://onedrive.live.com/?cid=1BD02FE33F80B8AC&id=1bd02fe33f80b8ac!946>* On Sun, Apr 5, 2015 at 1:45 AM, Erez Naim <[email protected]> wrote: > Yes that would be useful if you can share your java code. > > Thanks! > > -----Original Message----- > From: Deepak Shetty [mailto:[email protected]] > Sent: Thursday, April 02, 2015 8:04 PM > To: JMeter Users List > Subject: Re: is there a way to randomize CSV file values? > > I wrote java code to do this - I can share it if you want. > The other approach is before you begin , randomize the file itself and use > that as input into Jmeter.. > > On Thu, Apr 2, 2015 at 7:59 AM, Erez Naim <[email protected]> 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 | [image: LinkedIn] > > <http://www.linkedin.com/profile/view?id=34323263> [image: vCard] > > <http://www.theneura.com/vCards/gilad.vcf> [image: Twitter] > > <http://twitter.com/#!/giladmeiri/> > > > > [image: 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] > >
