You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Frank Rizzo <et...@yahoo.com> on 2003/09/18 07:13:46 UTC
Pre Processor counter
Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
I have created a test plan similar to that shown below.
Problem: i'd like the sampler to request to view a different order number with every request. however, the http request that is sent to the server is always the start value (100000). It is never incremented. Did I set something up wrong? everything else looks great.
test plan
>thread group
>> http header mgr
>> http request mgr
>> http cookie mgr
>> loop controller
>>>> http request 1
>>>> http request 2
>>>> http request 3 (has ordernumber=${order_num} among others)
>>>>>> Counter ( start=100000, increment=1, maximum=200000, reference name=order_num, track counter independently for each user is Unchecked.
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Pre Processor counter
Posted by Frank Rizzo <et...@yahoo.com>.
I know where you are coming from. I get frustrated with seemingly impossible reports from the field too.
I'd buy you a shot if we were at the bar, but . . .
mstover1@apache.org wrote:
Well, another difference was that on your first attempt, I hadn't had
a chance to contact your jmeter instance telepathically and tell it
the right way to work. Did you miss the "establish telepathic link
with The Creator" part of the installation process?
Just kidding. I'm stumped. Please let me know if you discover the
difference between the two. You could always send me both test
plans and I could probably figure it out.
-Mike
On 18 Sep 2003 at 11:47, Frank Rizzo wrote:
> I created a new test plan and used the counter successfully.
Then why doesn't it work on the other, original test plan? At first I
thought it may be related to get/post settings on the request. No.
In the new test plan, it works for both get/post. There must be
some condition that exists in test plan A that keeps the counter
from incrementing. The only way that the original test plan is
different is that it was originally produced from http proxy server
and recording controller, then the http samplers were copy/pasted
into a new loop controller.
>
> Frank Rizzo wrote:I tried
again
> 1) with counter as a child of loop controller
> 2) delete counter and re-add to http sampler
>
> still no luck getting the counter to increment. I am not sure how it
is possible that we have such different results. next I'll try to
recreate the test plan from scratch, keeping it simple. My test plan
was originally created using a http proxy server and the recording
controller (great btw!). Thanks for the suggestion. I'll post back if I
get it to work.
>
> mstover1@apache.org wrote:
> I don't know what to say - it worked fine for me when I tried your
> test plan. how about attaching the counter directly to your loop
> controller?
>
> -Mike
>
> On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
>
> > Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
> >
> > I have created a test plan similar to that shown below.
> >
> > Problem: i'd like the sampler to request to view a different order
> number with every request. however, the http request that is sent
to
> the server is always the start value (100000). It is never
> incremented. Did I set something up wrong? everything else
looks
> great.
> >
> > test plan
> > >thread group
> > >> http header mgr
> > >> http request mgr
> > >> http cookie mgr
> > >> loop controller
> > >>>> http request 1
> > >>>> http request 2
> > >>>> http request 3 (has ordernumber=${order_num} among
> others)
> > >>>>>> Counter ( start=100000, increment=1,
> maximum=200000, reference name=order_num, track counter
> independently for each user is Unchecked.
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
>
>
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Pre Processor counter
Posted by ms...@apache.org.
Well, another difference was that on your first attempt, I hadn't had
a chance to contact your jmeter instance telepathically and tell it
the right way to work. Did you miss the "establish telepathic link
with The Creator" part of the installation process?
Just kidding. I'm stumped. Please let me know if you discover the
difference between the two. You could always send me both test
plans and I could probably figure it out.
-Mike
On 18 Sep 2003 at 11:47, Frank Rizzo wrote:
> I created a new test plan and used the counter successfully.
Then why doesn't it work on the other, original test plan? At first I
thought it may be related to get/post settings on the request. No.
In the new test plan, it works for both get/post. There must be
some condition that exists in test plan A that keeps the counter
from incrementing. The only way that the original test plan is
different is that it was originally produced from http proxy server
and recording controller, then the http samplers were copy/pasted
into a new loop controller.
>
> Frank Rizzo <et...@yahoo.com> wrote:I tried
again
> 1) with counter as a child of loop controller
> 2) delete counter and re-add to http sampler
>
> still no luck getting the counter to increment. I am not sure how it
is possible that we have such different results. next I'll try to
recreate the test plan from scratch, keeping it simple. My test plan
was originally created using a http proxy server and the recording
controller (great btw!). Thanks for the suggestion. I'll post back if I
get it to work.
>
> mstover1@apache.org wrote:
> I don't know what to say - it worked fine for me when I tried your
> test plan. how about attaching the counter directly to your loop
> controller?
>
> -Mike
>
> On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
>
> > Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
> >
> > I have created a test plan similar to that shown below.
> >
> > Problem: i'd like the sampler to request to view a different order
> number with every request. however, the http request that is sent
to
> the server is always the start value (100000). It is never
> incremented. Did I set something up wrong? everything else
looks
> great.
> >
> > test plan
> > >thread group
> > >> http header mgr
> > >> http request mgr
> > >> http cookie mgr
> > >> loop controller
> > >>>> http request 1
> > >>>> http request 2
> > >>>> http request 3 (has ordernumber=${order_num} among
> others)
> > >>>>>> Counter ( start=100000, increment=1,
> maximum=200000, reference name=order_num, track counter
> independently for each user is Unchecked.
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
>
>
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
Re: Pre Processor counter
Posted by ms...@apache.org.
Well, another difference was that on your first attempt, I hadn't had
a chance to contact your jmeter instance telepathically and tell it
the right way to work. Did you miss the "establish telepathic link
with The Creator" part of the installation process?
Just kidding. I'm stumped. Please let me know if you discover the
difference between the two. You could always send me both test
plans and I could probably figure it out.
-Mike
On 18 Sep 2003 at 11:47, Frank Rizzo wrote:
> I created a new test plan and used the counter successfully.
Then why doesn't it work on the other, original test plan? At first I
thought it may be related to get/post settings on the request. No.
In the new test plan, it works for both get/post. There must be
some condition that exists in test plan A that keeps the counter
from incrementing. The only way that the original test plan is
different is that it was originally produced from http proxy server
and recording controller, then the http samplers were copy/pasted
into a new loop controller.
>
> Frank Rizzo <et...@yahoo.com> wrote:I tried
again
> 1) with counter as a child of loop controller
> 2) delete counter and re-add to http sampler
>
> still no luck getting the counter to increment. I am not sure how it
is possible that we have such different results. next I'll try to
recreate the test plan from scratch, keeping it simple. My test plan
was originally created using a http proxy server and the recording
controller (great btw!). Thanks for the suggestion. I'll post back if I
get it to work.
>
> mstover1@apache.org wrote:
> I don't know what to say - it worked fine for me when I tried your
> test plan. how about attaching the counter directly to your loop
> controller?
>
> -Mike
>
> On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
>
> > Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
> >
> > I have created a test plan similar to that shown below.
> >
> > Problem: i'd like the sampler to request to view a different order
> number with every request. however, the http request that is sent
to
> the server is always the start value (100000). It is never
> incremented. Did I set something up wrong? everything else
looks
> great.
> >
> > test plan
> > >thread group
> > >> http header mgr
> > >> http request mgr
> > >> http cookie mgr
> > >> loop controller
> > >>>> http request 1
> > >>>> http request 2
> > >>>> http request 3 (has ordernumber=${order_num} among
> others)
> > >>>>>> Counter ( start=100000, increment=1,
> maximum=200000, reference name=order_num, track counter
> independently for each user is Unchecked.
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
>
>
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Pre Processor counter
Posted by Frank Rizzo <et...@yahoo.com>.
The pre processor counter now works. I edited the xml in the test plan.
It seems that the maximum value of the counter was set to 99,999,999,999, which is greater than Integer.MAX_VALUE. So take your pick: stupid user error or input validation error. I changed it to 99,999,999 and all is well with the world.
Frank Rizzo <et...@yahoo.com> wrote:
I created a new test plan and used the counter successfully. Then why doesn't it work on the other, original test plan? At first I thought it may be related to get/post settings on the request. No. In the new test plan, it works for both get/post. There must be some condition that exists in test plan A that keeps the counter from incrementing. The only way that the original test plan is different is that it was originally produced from http proxy server and recording controller, then the http samplers were copy/pasted into a new loop controller.
Frank Rizzo wrote:I tried again
1) with counter as a child of loop controller
2) delete counter and re-add to http sampler
still no luck getting the counter to increment. I am not sure how it is possible that we have such different results. next I'll try to recreate the test plan from scratch, keeping it simple. My test plan was originally created using a http proxy server and the recording controller (great btw!). Thanks for the suggestion. I'll post back if I get it to work.
mstover1@apache.org wrote:
I don't know what to say - it worked fine for me when I tried your
test plan. how about attaching the counter directly to your loop
controller?
-Mike
On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
> Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
>
> I have created a test plan similar to that shown below.
>
> Problem: i'd like the sampler to request to view a different order
number with every request. however, the http request that is sent to
the server is always the start value (100000). It is never
incremented. Did I set something up wrong? everything else looks
great.
>
> test plan
> >thread group
> >> http header mgr
> >> http request mgr
> >> http cookie mgr
> >> loop controller
> >>>> http request 1
> >>>> http request 2
> >>>> http request 3 (has ordernumber=${order_num} among
others)
> >>>>>> Counter ( start=100000, increment=1,
maximum=200000, reference name=order_num, track counter
independently for each user is Unchecked.
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Pre Processor counter
Posted by Frank Rizzo <et...@yahoo.com>.
I created a new test plan and used the counter successfully. Then why doesn't it work on the other, original test plan? At first I thought it may be related to get/post settings on the request. No. In the new test plan, it works for both get/post. There must be some condition that exists in test plan A that keeps the counter from incrementing. The only way that the original test plan is different is that it was originally produced from http proxy server and recording controller, then the http samplers were copy/pasted into a new loop controller.
Frank Rizzo <et...@yahoo.com> wrote:I tried again
1) with counter as a child of loop controller
2) delete counter and re-add to http sampler
still no luck getting the counter to increment. I am not sure how it is possible that we have such different results. next I'll try to recreate the test plan from scratch, keeping it simple. My test plan was originally created using a http proxy server and the recording controller (great btw!). Thanks for the suggestion. I'll post back if I get it to work.
mstover1@apache.org wrote:
I don't know what to say - it worked fine for me when I tried your
test plan. how about attaching the counter directly to your loop
controller?
-Mike
On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
> Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
>
> I have created a test plan similar to that shown below.
>
> Problem: i'd like the sampler to request to view a different order
number with every request. however, the http request that is sent to
the server is always the start value (100000). It is never
incremented. Did I set something up wrong? everything else looks
great.
>
> test plan
> >thread group
> >> http header mgr
> >> http request mgr
> >> http cookie mgr
> >> loop controller
> >>>> http request 1
> >>>> http request 2
> >>>> http request 3 (has ordernumber=${order_num} among
others)
> >>>>>> Counter ( start=100000, increment=1,
maximum=200000, reference name=order_num, track counter
independently for each user is Unchecked.
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Pre Processor counter
Posted by Frank Rizzo <et...@yahoo.com>.
I tried again
1) with counter as a child of loop controller
2) delete counter and re-add to http sampler
still no luck getting the counter to increment. I am not sure how it is possible that we have such different results. next I'll try to recreate the test plan from scratch, keeping it simple. My test plan was originally created using a http proxy server and the recording controller (great btw!). Thanks for the suggestion. I'll post back if I get it to work.
mstover1@apache.org wrote:
I don't know what to say - it worked fine for me when I tried your
test plan. how about attaching the counter directly to your loop
controller?
-Mike
On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
> Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
>
> I have created a test plan similar to that shown below.
>
> Problem: i'd like the sampler to request to view a different order
number with every request. however, the http request that is sent to
the server is always the start value (100000). It is never
incremented. Did I set something up wrong? everything else looks
great.
>
> test plan
> >thread group
> >> http header mgr
> >> http request mgr
> >> http cookie mgr
> >> loop controller
> >>>> http request 1
> >>>> http request 2
> >>>> http request 3 (has ordernumber=${order_num} among
others)
> >>>>>> Counter ( start=100000, increment=1,
maximum=200000, reference name=order_num, track counter
independently for each user is Unchecked.
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Pre Processor counter
Posted by ms...@apache.org.
I don't know what to say - it worked fine for me when I tried your
test plan. how about attaching the counter directly to your loop
controller?
-Mike
On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
> Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
>
> I have created a test plan similar to that shown below.
>
> Problem: i'd like the sampler to request to view a different order
number with every request. however, the http request that is sent to
the server is always the start value (100000). It is never
incremented. Did I set something up wrong? everything else looks
great.
>
> test plan
> >thread group
> >> http header mgr
> >> http request mgr
> >> http cookie mgr
> >> loop controller
> >>>> http request 1
> >>>> http request 2
> >>>> http request 3 (has ordernumber=${order_num} among
others)
> >>>>>> Counter ( start=100000, increment=1,
maximum=200000, reference name=order_num, track counter
independently for each user is Unchecked.
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
Re: Pre Processor counter
Posted by ms...@apache.org.
I don't know what to say - it worked fine for me when I tried your
test plan. how about attaching the counter directly to your loop
controller?
-Mike
On 17 Sep 2003 at 22:13, Frank Rizzo wrote:
> Hi. I am using jmeter 1.9.1 with java 1.4.2 on winXP.
>
> I have created a test plan similar to that shown below.
>
> Problem: i'd like the sampler to request to view a different order
number with every request. however, the http request that is sent to
the server is always the start value (100000). It is never
incremented. Did I set something up wrong? everything else looks
great.
>
> test plan
> >thread group
> >> http header mgr
> >> http request mgr
> >> http cookie mgr
> >> loop controller
> >>>> http request 1
> >>>> http request 2
> >>>> http request 3 (has ordernumber=${order_num} among
others)
> >>>>>> Counter ( start=100000, increment=1,
maximum=200000, reference name=order_num, track counter
independently for each user is Unchecked.
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org