Another possibility would be to "sort" the list into random order before
putting it in a file, and then use _StringFromFile() or perhaps __CSVRead()
to get the data.

If the number of items in the list is small enough, you might be able to
concatenate them into a single line in a CSV file, and then pick them out
with __CSVRead() using a random number for the column.

HTH.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 19:18
To: JMeter Users List
Subject: Re: Custom Functions?


It is relatively easy to create new functions.  The simplest way is to
follow the 
examples in the current source for JMeter - in src/functions.  Just make
your 
own, put them in a jar file, and drop the jar file into /lib/ext.

-Mike

On 16 Jun 2003 at 13:38, [EMAIL PROTECTED] wrote:

> Is there any way to create only custom functions using JMeter?  I want to
> create a function that randomly picks a value from a list that was loaded
> into a file.  It does not appear that this can be done with the current
> function set.  
> 
> Thanks,
> John
> 
[snip sigs]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to