Mike, Thanks to your very helpful instructions I now have this working locally. I'll hold off submitting a patch until I determine whether or not I will be able to provide the additional enhancement that allows the Loop Count value to be specified using a variable.
Note that I have _not_ enabled this feature on the thread group element. Interestingly these new variables do not actually allow me to do what I wanted to do which is to utilise them in simple assertions to confirm the flow of the application. In order to do this I would also need: 1. To provide offset values in order to get the variables to match up with the data I am testing (an alternative would be to allow basic mathematical expressions to somehow be applied when the variables are used) 2. Allow variables to be applied within the assertion regex. The first of these seems a little too specific to my requirement and the alternative and the second item are beyond the scope of the time I have available to look into this right now. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com > From: "Mike Stover" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Fri, 13 Dec 2002 10:14:33 -0500 > To: [EMAIL PROTECTED], Scott Eade <[EMAIL PROTECTED]> > Subject: Re: A Counter within a Loop controller? > > The Loop Controller should indeed provide it's value in a variable. Great > idea and by far the easiest way to do it. Any JMeter component can implement > the "org.apache.jmeter.testelement.ThreadListener" interface, and if you do, > you get access to a "JMeterVariables" object, in which variables and their > values can be stored. > > There is also a handy "org.apache.jmeter.testelement.VariablesCollecttion" > helper class which makes all of this pretty easy. I think you would find it > pretty easy to do this for yourself, Scott, and it would make a nice little > patch. You can find examples of how to use the VariablesCollection class in > "org.apache.jmeter.modifiers.CounterConfig". > > -Mike > > On 13 Dec 2002 at 17:19, Scott Eade wrote: > >> [Sorry for making so much noise lately... ...here is another one] >> >> In my script I have a page that I need to request multiple times. It would >> appear that a Loop Controller is the ideal logic controller to use for this >> purpose. An additional requirement however is that the pages within the >> loop need to pass a parameter whose value increases sequentially (this being >> the "_session_access_counter" that a turbine application uses to ensure that >> a page is not reposted). I would have thought that either the Loop >> Controller would provide its value in a variable or that a Counter within >> the Loop Controller could be used to provide this parameter, however it >> seems that neither of these is the case. >> >> Can someone suggest a way I can achieve the desired result? >> >> >> Thanks, >> >> Scott >> -- >> Scott Eade >> Backstage Technologies Pty. Ltd. >> http://www.backstagetech.com.au >> .Mac Chat/AIM: seade at mac dot com >> >> >> -- >> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> >> > > > > -- > Michael Stover > [EMAIL PROTECTED] > Yahoo IM: mstover_ya > ICQ: 152975688 > AIM: mstover777 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
