You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by bgordon <bb...@yahoo.com> on 2006/04/26 22:55:27 UTC

problems with variables

Can I set properties in jmeter.properties and then use 
  a)${somePropertyName} or
  b)${__P(somePropertyName,error-set-somePropertyName)}
  in the Server Name or IP: of an HTTP Request Defaults?
   
  Can I use it in the Fielname field of a View Results Tree listener?
   
  I'm having trouble getting the variable resolved (initially it was being set via the ant task, now I've regressed to setting it via the property file.
   
  If JMeter is started as a gui, does it still take the parameters from jmeter.properties?
   
  How can I log the variables to help me figure out where the problem is?
   
  Thanks, Bruce

Re: problems with variables

Posted by sebb <se...@gmail.com>.
On 27/04/06, bgordon <bb...@yahoo.com> wrote:
> Sebb, you said below...
>
>  Can I use it in the Fielname field of a View Results Tree listener?
>
> No, sorry.
>
>  Is there some way to take a property and store it in a variable and then use the variable in the Filename field? Is there now way to parameterize that field?

No, sorry.

It's on my list of TODOs, but it's not trivial, as the filenames are
resolved before variables/functions have been set up fully.

You can of course use the -l flag and pass in any filename you want
from the shell.

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


Re: problems with variables

Posted by bgordon <bb...@yahoo.com>.
Sebb, you said below...
   
  Can I use it in the Fielname field of a View Results Tree listener?

No, sorry.

  Is there some way to take a property and store it in a variable and then use the variable in the Filename field? Is there now way to parameterize that field?
   
  Thanks, Bruce

sebb <se...@gmail.com> wrote:
  On 26/04/06, bgordon wrote:
>
> Can I set properties in jmeter.properties and then use
> a)${somePropertyName} or

No, ${name} is for ${someVariableName}

> b)${__P(somePropertyName,error-set-somePropertyName)}

Sort of:

${__P(somePropertyName,default)}

The second parameter is the fixed text default, and can be omitted, in
which case the default is 1.

> in the Server Name or IP: of an HTTP Request Defaults?

Yes.

> Can I use it in the Fielname field of a View Results Tree listener?

No, sorry.

> I'm having trouble getting the variable resolved (initially it was being set via the ant task, now I've regressed to setting it via the property file.
>
> If JMeter is started as a gui, does it still take the parameters from jmeter.properties?

Yes.

> How can I log the variables to help me figure out where the problem is?

The easiest is probably to add a Java Request Sampler, and put it in
the label field - it will then show up in Listeners.

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



Re: stopping a test dynamically

Posted by sebb <se...@gmail.com>.
Sorry, I meant

Assertion:
* Duration Assertion

On 28/04/06, sebb <se...@gmail.com> wrote:
> Look at the Post-Processors
> * Response Assertion
> * Result Status Action Handler
>
> On 28/04/06, bgordon <bb...@yahoo.com> wrote:
> > any ideas? -Bruce
> >
> > bgordon <bb...@yahoo.com> wrote:  I'd like to run an unattended test that stresses a system until it "breaks". I'd like to define "break" dynamically, say for example when a certain type of transaction has its avg response time for the last 2 minutes > some threshold. When this condition occurs I'd like to stop the test. Can this be done and if so what technique would you suggest. Thanks, -Bruce
> >
> >
> >
>

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


Re: stopping a test dynamically

Posted by sebb <se...@gmail.com>.
Look at the Post-Processors
* Response Assertion
* Result Status Action Handler

On 28/04/06, bgordon <bb...@yahoo.com> wrote:
> any ideas? -Bruce
>
> bgordon <bb...@yahoo.com> wrote:  I'd like to run an unattended test that stresses a system until it "breaks". I'd like to define "break" dynamically, say for example when a certain type of transaction has its avg response time for the last 2 minutes > some threshold. When this condition occurs I'd like to stop the test. Can this be done and if so what technique would you suggest. Thanks, -Bruce
>
>
>

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


Re: stopping a test dynamically

Posted by bgordon <bb...@yahoo.com>.
any ideas? -Bruce

bgordon <bb...@yahoo.com> wrote:  I'd like to run an unattended test that stresses a system until it "breaks". I'd like to define "break" dynamically, say for example when a certain type of transaction has its avg response time for the last 2 minutes > some threshold. When this condition occurs I'd like to stop the test. Can this be done and if so what technique would you suggest. Thanks, -Bruce


stopping a test dynamically

Posted by bgordon <bb...@yahoo.com>.
I'd like to run an unattended test that stresses a system until it "breaks". I'd like to define "break" dynamically, say for example when a certain type of transaction has its avg response time for the last 2 minutes > some threshold. When this condition occurs I'd like to stop the test. Can this be done and if so what technique would you suggest. Thanks, -Bruce

Re: problems with variables

Posted by sebb <se...@gmail.com>.
On 26/04/06, bgordon <bb...@yahoo.com> wrote:
>
> Can I set properties in jmeter.properties and then use
>   a)${somePropertyName} or

No, ${name} is for ${someVariableName}

>   b)${__P(somePropertyName,error-set-somePropertyName)}

Sort of:

${__P(somePropertyName,default)}

The second parameter is the fixed text default, and can be omitted, in
which case the default is 1.

>   in the Server Name or IP: of an HTTP Request Defaults?

Yes.

>   Can I use it in the Fielname field of a View Results Tree listener?

No, sorry.

>   I'm having trouble getting the variable resolved (initially it was being set via the ant task, now I've regressed to setting it via the property file.
>
>   If JMeter is started as a gui, does it still take the parameters from jmeter.properties?

Yes.

>   How can I log the variables to help me figure out where the problem is?

The easiest is probably to add a Java Request Sampler, and put it in
the label field - it will then show up in Listeners.

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