On 6 April 2015 at 07:49, Bob <[email protected]> wrote:
> Is it possible to randomly select without changing CSV file?
>

Yes and no.

Since JMeter supports scripting languages, and is open source, of
course users can write their own script/code to randomly select from
the CSV file.

However that is not recommended, due to the overhead of so doing.

JMeter does not support random CSV file access natively for the same reasons.

It is much more efficient to pre-sort the input.

> 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]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to