You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by mkt <mi...@gmail.com> on 2011/09/23 16:11:18 UTC

How many loop controlers ?

I was wondering if there is a limit on how many loop controllers can go in
one Test Plan or Thread?  I am looking to put 500-2000, but in past I've
only done around 100.  Anyone know if this is going to be a problem?

Thanks

--
View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833696.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How many loop controlers ?

Posted by Deepak Shetty <sh...@gmail.com>.
http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html
for an example on how to add a variable number of parameters to the sampler
(you will have to change to read from CSV)

regards
deepak

On Fri, Sep 23, 2011 at 8:21 AM, mkt <mi...@gmail.com> wrote:

> How are the variables used? Are they HTTP Parameters? Are you using GET or
> POST?
> If using GET, then parameters are ignored if the name is blank, so
> that may be one way to do it.
>
> *Using POST and this is Oracle forms.*
>
> Also, the Switch Controller might be useful; add child samples with
> 1,2,3 etc. parameters and use the variable to select which one is
> used.
>
> Alternatively, one can use a BSH or BSF Pre-Processor to populate the
> parameters; this has been discussed on this list a few times.
> In this case, the CSV file should probably contain a field with the
> number of parameters, followed by the actual parameters.
> That would help with the Switch Controller as well.
>
> *I will def check these out.  This is more complex that previous JMeter
> plans I've worked on.  Thank you very much for your help.*
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833978.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: How many loop controlers ?

Posted by mkt <mi...@gmail.com>.
How are the variables used? Are they HTTP Parameters? Are you using GET or
POST?
If using GET, then parameters are ignored if the name is blank, so
that may be one way to do it.

*Using POST and this is Oracle forms.*

Also, the Switch Controller might be useful; add child samples with
1,2,3 etc. parameters and use the variable to select which one is
used.

Alternatively, one can use a BSH or BSF Pre-Processor to populate the
parameters; this has been discussed on this list a few times.
In this case, the CSV file should probably contain a field with the
number of parameters, followed by the actual parameters.
That would help with the Switch Controller as well.

*I will def check these out.  This is more complex that previous JMeter
plans I've worked on.  Thank you very much for your help.*



--
View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833978.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How many loop controlers ?

Posted by sebb <se...@gmail.com>.
On 23 September 2011 15:32, mkt <mi...@gmail.com> wrote:
> I will running from the command line so Module is out.  I started with

The Module Controller does work in non-GUI mode (and client-server);
the JMeter unit test file BatchTestLocal.jmx includes an example.

> variables, but ran into an issue.  There are some users that get pages
> returned that others don't but the logic is done in PL/SQL and I don't see a
> way to use any logic controller to key off of this.  There are no javascript
> variables to read.
>
> And with variables I'm not clear on how it would work, i.e.
>
> User1
> ID,PW
> dataentry1,dataentry2,dataentry3
>
> User2
> ID,PW
> dataentry1
>
> User3
> ID,PW
> dataentry1,dataentry2,dataentry3,dataentry4,dataentry5,dataentry6
>
> So we have 3 users lets say, all have the common ID and PW variables, but
> then each user will enter a different number of data elements then save.

How are the variables used? Are they HTTP Parameters? Are you using GET or POST?
If using GET, then parameters are ignored if the name is blank, so
that may be one way to do it.

Also, the Switch Controller might be useful; add child samples with
1,2,3 etc. parameters and use the variable to select which one is
used.

Alternatively, one can use a BSH or BSF Pre-Processor to populate the
parameters; this has been discussed on this list a few times.
In this case, the CSV file should probably contain a field with the
number of parameters, followed by the actual parameters.
That would help with the Switch Controller as well.

> Not clear on how to reduce the loops other than group them together by the
> number of data entries they have.

See above - there are lots of ways to configure JMeter.

>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833784.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How many loop controlers ?

Posted by mkt <mi...@gmail.com>.
I will running from the command line so Module is out.  I started with
variables, but ran into an issue.  There are some users that get pages
returned that others don't but the logic is done in PL/SQL and I don't see a
way to use any logic controller to key off of this.  There are no javascript
variables to read.

And with variables I'm not clear on how it would work, i.e.

User1
ID,PW
dataentry1,dataentry2,dataentry3

User2
ID,PW
dataentry1

User3
ID,PW
dataentry1,dataentry2,dataentry3,dataentry4,dataentry5,dataentry6

So we have 3 users lets say, all have the common ID and PW variables, but
then each user will enter a different number of data elements then save.

Not clear on how to reduce the loops other than group them together by the
number of data entries they have.  



--
View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833784.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How many loop controlers ?

Posted by sebb <se...@gmail.com>.
On 23 September 2011 15:11, mkt <mi...@gmail.com> wrote:
> I was wondering if there is a limit on how many loop controllers can go in
> one Test Plan or Thread?  I am looking to put 500-2000, but in past I've
> only done around 100.  Anyone know if this is going to be a problem?

I don't think there's an inherent limit, other than memory usage.
Remember that the entire plan has to be copied for each thread.

But I wonder whether you really need so many.

Large plans can often be simplified by careful use of JMeter variables
(which can be read from external files).
Or perhaps use the Module Controller.

> Thanks
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833696.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org