I suggest you randomise the input file before starting the test run.

There are various ways of doing this - what we did was as follows:

We needed to run tests with large numbers (up to 20 million) of random
values (for account numbers and PINs).

We created some files of random numbers of various different sizes
(4-7 digits), and then we use these to generate the actual numbers
(which may have a fixed prefix or suffix) for our tests.

[The random files were created with Perl using Math::Random (a Perl
version of randlib) and then processed further with Perl to generate
the actual numbers, but you could use Java or there are some sites
that provide random number files.]

We then use _StringFromFile() to read the numbers, but the CSV Data
Set Config element is easier to use (it did not exist at the time).

If you need to randomly select from a fixed set of numbers, then just
generate that many random numbers and use them to index the set.

S.
On 18/04/06, Hoffman, Matthew <[EMAIL PROTECTED]> wrote:
> Sorry about the post..  Does anyone know of a good way to randomize CSV
> values?
>
> Thanks
>
>
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 17, 2006 4:58 PM
> To: JMeter Users List
> Subject: Re: CSV Random values?
>
> On 17/04/06, Hoffman, Matthew <[EMAIL PROTECTED]> wrote:
> > Is it possible to randomize the csv controller so it reads a random
> > value for each thread as it runs?  Is there a better way to do this?
>
> Yes.
>
> Please use an appropriate subject line, start a new thread, and please
> don't post twice in quick succession ...
>
> ---------------------------------------------------------------------
> 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]
>
>

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

Reply via email to