You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by an...@transport.qld.gov.au on 2003/08/26 01:29:39 UTC
Remote testing and user parameters
Hi,
I'm using JMeter to load test a web app and need to simulate a number of
users logging on and saving some data. To get the load that we need I have
to use a number of machines using the remote testing model which is causing
some problems with the db updates. Because each machine uses the same data
file for their userid's and passwords each machine starts off with the same
userid and gets concurrent update problems when they access the db.
What I'd like to do is either back each machine off for a random period so
that the chances of this are reduced or ideally get each machine to start
at a random spot in the user parameters file so they each pick up a
different userid. Has onyone done something similar to this or have any
ideas on how I could get this to work. I'm using the CSVREAD function to
read the user parameters from the file
Thanks
Andrew
************************************************************
Opinions contained in this e-mail do not necessarily reflect
the opinions of the Queensland Department of Main Roads,
Queensland Transport or National Transport Secretariat, or
endorsed organisations utilising the same infrastructure.
If you have received this electronic mail message in error,
please immediately notify the sender and delete the message
from your computer.
************************************************************
Re: Remote testing and user parameters
Posted by ms...@apache.org.
I've found the following idiom useful:
${__CSVRead(data_file.txt,${__Random(1,500,)})}
This way, the data that's picked from the file is random, and if it's a large enough file, that
might solve your problem.
Another way to do it would be to break the data file into a number of pieces equal to the
number of remote machines you have.
-Mike
On 26 Aug 2003 at 9:29, andrew.r.bredhauer@transport.qld.gov.au wrote:
>
>
>
>
> Hi,
>
> I'm using JMeter to load test a web app and need to simulate a number of
> users logging on and saving some data. To get the load that we need I have
> to use a number of machines using the remote testing model which is causing
> some problems with the db updates. Because each machine uses the same data
> file for their userid's and passwords each machine starts off with the same
> userid and gets concurrent update problems when they access the db.
>
> What I'd like to do is either back each machine off for a random period so
> that the chances of this are reduced or ideally get each machine to start
> at a random spot in the user parameters file so they each pick up a
> different userid. Has onyone done something similar to this or have any
> ideas on how I could get this to work. I'm using the CSVREAD function to
> read the user parameters from the file
>
> Thanks
>
> Andrew
>
>
>
> ************************************************************
> Opinions contained in this e-mail do not necessarily reflect
> the opinions of the Queensland Department of Main Roads,
> Queensland Transport or National Transport Secretariat, or
> endorsed organisations utilising the same infrastructure.
> If you have received this electronic mail message in error,
> please immediately notify the sender and delete the message
> from your computer.
> ************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777