You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Craig S. Wilson" <cr...@wavefront.net> on 2005/03/07 21:50:20 UTC
Replacement for the While loop, or a way to get it to work?
Hello. I am new to the list and fairly new to JMeter.
I have been beating my head against the spot in the wall labelled "While
Controller". I did see one message in the maillist archive which seems
to confirm my experience: the While Controller evaluates the condition
one time and never re-evaluates. This means you either get into the
loop and never exit, or you never get in.
I have been trying to construct a logical equivalent to the While from
other controllers, but have not been able to get anything to work.
Does anyone have a work-around? Or a fix for the While?
In a nutshell, what I need to do is:
upload a file for processing;
while (processing not complete)
wait a bit
check the completion code of the processing;
I would be more than happy to include my entire test plan, if that would
help.
And, is it just me, or do other people get these "Velocity 127 General
Errors" when accessing most of the maillist archives?
Thanks,
--
---------------------------------------
Craig S. Wilson craig@wavefront.net
===============================
Note: If you send me HTML-mail, it will
probably end up in my SPAM bucket.
---------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Counter Field Sizes and Multiple Property Files
Posted by sebb <se...@gmail.com>.
BTW:
__P behaves much the same as __property, and is rather shorter - might
help for now...
S.
On Tue, 08 Mar 2005 13:31:58 -0500, Michael Stover <ms...@apache.org> wrote:
> Both very valid requests. If you could, please make an enhancement
> request for both these suggestions on JMeter's bugzilla. Extendable
> properties and extendable language resources is badly needed by JMeter.
>
> -Mike
>
> On Tue, 2005-03-08 at 12:18, Craig S. Wilson wrote:
> > It would be real nice if the field sizes on the Counter were lengthened.
> >
> > I use properties from a file and the short field sizes make it difficult
> > to verify that I haven't fat-fingered a property name, or the syntax of
> > the __property function.
> >
> > Is there any way to increase these field sizes short of rebuilding jmeter?
> >
> >
> >
> > Is there a way to use more than one property file? I would really like
> > to leave the default jmeter.properties file alone and then have my
> > customized file override and add to the default properties.
> >
> > In most cases I am just adding my own properties for my tests.
> >
> > Right now, I have copied the default file to myjmeter.properties and
> > specify that on the command line with the -p option.
> --
> Michael Stover <ms...@apache.org>
> Apache Software Foundation
>
>
> ---------------------------------------------------------------------
> 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: Counter Field Sizes and Multiple Property Files
Posted by Michael Stover <ms...@apache.org>.
Both very valid requests. If you could, please make an enhancement
request for both these suggestions on JMeter's bugzilla. Extendable
properties and extendable language resources is badly needed by JMeter.
-Mike
On Tue, 2005-03-08 at 12:18, Craig S. Wilson wrote:
> It would be real nice if the field sizes on the Counter were lengthened.
>
> I use properties from a file and the short field sizes make it difficult
> to verify that I haven't fat-fingered a property name, or the syntax of
> the __property function.
>
> Is there any way to increase these field sizes short of rebuilding jmeter?
>
>
>
> Is there a way to use more than one property file? I would really like
> to leave the default jmeter.properties file alone and then have my
> customized file override and add to the default properties.
>
> In most cases I am just adding my own properties for my tests.
>
> Right now, I have copied the default file to myjmeter.properties and
> specify that on the command line with the -p option.
--
Michael Stover <ms...@apache.org>
Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Counter Field Sizes and Multiple Property Files
Posted by "Craig S. Wilson" <cr...@wavefront.net>.
It would be real nice if the field sizes on the Counter were lengthened.
I use properties from a file and the short field sizes make it difficult
to verify that I haven't fat-fingered a property name, or the syntax of
the __property function.
Is there any way to increase these field sizes short of rebuilding jmeter?
Is there a way to use more than one property file? I would really like
to leave the default jmeter.properties file alone and then have my
customized file override and add to the default properties.
In most cases I am just adding my own properties for my tests.
Right now, I have copied the default file to myjmeter.properties and
specify that on the command line with the -p option.
--
---------------------------------------
Craig S. Wilson craig@wavefront.net
===============================
Note: If you send me HTML-mail, it will
probably end up in my SPAM bucket.
---------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Replacement for the While loop, or a way to get it to work?
Posted by sebb <se...@gmail.com>.
On Mon, 07 Mar 2005 17:13:56 -0600, Craig S. Wilson <cr...@wavefront.net> wrote:
> sebb wrote:
> > While LAST works OK for me in the following test plan:
>
> I did change my test to use LAST instead of a condition.
>
> I use a JDBC Request with an attached Response Assertion at the bottom
> of the While Controller. As soon as I get a response that indicates a
> completion on the process, the While Controller terminates.
So far so good...
> Although, I found I had to tell the Response Assertion to Ignore Status,
> otherwise the whole test would stop, not just the While Controller.
Perhaps the JDBC request is not setting the Status correctly?
I've not tried JDBC. The Response Assertion does not try checking the
content of a response if the Status is not "successful" - because it
was designed for HTTP Requests.
Not sure why the whole test would stop - was there an error in the
jmeter.log or the console window?
> And, I wanted the results of the test to be indicated by the process
> completing successfully, not just completing, so I needed another
> Sampler and Assertion after the While Controller.
Yes, that's a limitation of the While Controller when using LAST.
Pity the condition does not seem to work...
> >
> > I can send you the above test plan if you want - and do send me your
> > test plan privately.
> >
> > I'd like to fix these errors - if I can.
>
> I will see about providing access to the server and will send the test
> plan to you.
I probably don't need access to the server.
It should be possible to replace the JDBC Requests with JavaTest
Requests, so long as I have some idea what the JDBC responses look
like, so the Assertions have suitable data to work on.
> Thanks,
>
> --
>
> ---------------------------------------
> Craig S. Wilson craig@wavefront.net
> ===============================
> Note: If you send me HTML-mail, it will
> probably end up in my SPAM bucket.
> ---------------------------------------
>
> ---------------------------------------------------------------------
> 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: Replacement for the While loop, or a way to get it to work?
Posted by "Craig S. Wilson" <cr...@wavefront.net>.
sebb wrote:
> While LAST works OK for me in the following test plan:
I did change my test to use LAST instead of a condition.
I use a JDBC Request with an attached Response Assertion at the bottom
of the While Controller. As soon as I get a response that indicates a
completion on the process, the While Controller terminates.
Although, I found I had to tell the Response Assertion to Ignore Status,
otherwise the whole test would stop, not just the While Controller.
And, I wanted the results of the test to be indicated by the process
completing successfully, not just completing, so I needed another
Sampler and Assertion after the While Controller.
>
> I can send you the above test plan if you want - and do send me your
> test plan privately.
>
> I'd like to fix these errors - if I can.
I will see about providing access to the server and will send the test
plan to you.
Thanks,
--
---------------------------------------
Craig S. Wilson craig@wavefront.net
===============================
Note: If you send me HTML-mail, it will
probably end up in my SPAM bucket.
---------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Replacement for the While loop, or a way to get it to work?
Posted by sebb <se...@gmail.com>.
While LAST works OK for me in the following test plan:
Test Plan
- Thread Group (forever)
- - While (LAST)
- - - COUNTER (1 by 1 to 100)
- - - JavaTest Sampler, returning: Javatest ${COUNTER}
- - - - Assertion Not Match "JavaTest 11"
- - View Results in Table
This exitted the loop after matching "JavaTest 11"
==
However, I did have problems with a While condition that contained a
function - the function only seemed to be evaluated once. Not sure why
that is. I thought I'd got that working.
There were also some errors reported to the console in the above test,
so there's obviously some kind of problem.
[It's just as well the While controller is still flagged in the
documentation as Alpha code!]
I can send you the above test plan if you want - and do send me your
test plan privately.
I'd like to fix these errors - if I can.
S.
On Mon, 07 Mar 2005 14:50:20 -0600, Craig S. Wilson <cr...@wavefront.net> wrote:
>
> Hello. I am new to the list and fairly new to JMeter.
>
> I have been beating my head against the spot in the wall labelled "While
> Controller". I did see one message in the maillist archive which seems
> to confirm my experience: the While Controller evaluates the condition
> one time and never re-evaluates. This means you either get into the
> loop and never exit, or you never get in.
>
> I have been trying to construct a logical equivalent to the While from
> other controllers, but have not been able to get anything to work.
>
> Does anyone have a work-around? Or a fix for the While?
>
> In a nutshell, what I need to do is:
>
> upload a file for processing;
>
> while (processing not complete)
> wait a bit
>
> check the completion code of the processing;
>
> I would be more than happy to include my entire test plan, if that would
> help.
>
> And, is it just me, or do other people get these "Velocity 127 General
> Errors" when accessing most of the maillist archives?
>
> Thanks,
>
> --
>
> ---------------------------------------
> Craig S. Wilson craig@wavefront.net
> ===============================
> Note: If you send me HTML-mail, it will
> probably end up in my SPAM bucket.
> ---------------------------------------
>
> ---------------------------------------------------------------------
> 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