You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2010/03/01 20:28:26 UTC
Re: Additional properties to be used globally
On 18/02/2010, Deepak Shetty <sh...@gmail.com> wrote:
> >Is there a way to do this, or would this be an feature that is not
> currently
> available.
>
> I dont believe there is such a feature. if you use -p , the property file
> must be present on all the remote servers (which must also be started with
> -p) , i think , not tested.
> I think this feature is useful enough so you might try and see if there is
> an enhancement request in jmeter bugzilla or file one
The -G option defines individual properties, but also allows for a
file to be specified, for example
-Gglobal.properties -Gprop=value
> regards
> deepak
>
>
> On Wed, Feb 17, 2010 at 11:59 PM, Brett Cave <br...@gmail.com> wrote:
>
> > Hi all,
> >
> > Was searching through the archives for a solution for this -
> >
>
> > http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html(question<http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question>
>
> > regarding user defined variables).
> >
> > I have defined a test plan with a number of variables, and then generate a
> > properties file automatically. JMeter then runs this property file with the
> > -q parameter, which works great when running locally.
> >
> > However, when I run remote servers, these properties are not propogated to
> > servers - it seems that the -G parameter is used for global properties, is
> > there a way to configure a "global properties file" ?
> >
> > I run jmeter with a script like:
> > GLOBAL_VARS=""
> > for var in `grep -vE "^#|^$" ${JMETER_ADDITIONAL_PROPERTIES_FILE}`; do
> > GLOBAL_VARS="${GLOBAL_VARS} -G${var}"
> > done
> > $JMETER -n ..... ${GLOBAL_VARS} ... -R server1,server2
> >
> > as a workaround, but would be much easier to pass a properties file to
> > JMeter that is used to set global vars.
> >
> > Is there a way to do this, or would this be an feature that is not
> > currently
> > available.
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Additional properties to be used globally
Posted by Deepak Shetty <sh...@gmail.com>.
ah ok , didnt know that, thanks
regards
deepak
On Mon, Mar 1, 2010 at 4:56 PM, sebb <se...@gmail.com> wrote:
> On 01/03/2010, Deepak Shetty <sh...@gmail.com> wrote:
> > This still needs the file physically present on all slaves correct? i.e.
> it
>
> No.
>
> > doesn't automatically distribute the file/properties from the master?
> > regards
>
> JMeter reads the file and sends all the properties across.
>
> Or rather, it collects all the properties - whether defined
> individually or in a file - and sends them across to all the remote
> slaves once they have been initialised.
>
> > deepak
> >
> >
> > On Mon, Mar 1, 2010 at 11:28 AM, sebb <se...@gmail.com> wrote:
> >
> > > On 18/02/2010, Deepak Shetty <sh...@gmail.com> wrote:
> > > > >Is there a way to do this, or would this be an feature that is not
> > > > currently
> > > > available.
> > > >
> > > > I dont believe there is such a feature. if you use -p , the property
> file
> > > > must be present on all the remote servers (which must also be
> started
> > > with
> > > > -p) , i think , not tested.
> > > > I think this feature is useful enough so you might try and see if
> there
> > > is
> > > > an enhancement request in jmeter bugzilla or file one
> > >
> > > The -G option defines individual properties, but also allows for a
> > > file to be specified, for example
> > >
> > > -Gglobal.properties -Gprop=value
> > >
> > > > regards
> > > > deepak
> > > >
> > > >
> > > > On Wed, Feb 17, 2010 at 11:59 PM, Brett Cave <br...@gmail.com>
> > > wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > Was searching through the archives for a solution for this -
> > > > >
> > > >
> > > > >
> > >
> http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html(question<http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question>
> <
> http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question
> >
> > > <
> > >
> http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question
> > > >
> > > >
> > > > > regarding user defined variables).
> > > > >
> > > > > I have defined a test plan with a number of variables, and then
> > > generate a
> > > > > properties file automatically. JMeter then runs this property
> file
> > > with the
> > > > > -q parameter, which works great when running locally.
> > > > >
> > > > > However, when I run remote servers, these properties are not
> > > propogated to
> > > > > servers - it seems that the -G parameter is used for global
> > > properties, is
> > > > > there a way to configure a "global properties file" ?
> > > > >
> > > > > I run jmeter with a script like:
> > > > > GLOBAL_VARS=""
> > > > > for var in `grep -vE "^#|^$"
> ${JMETER_ADDITIONAL_PROPERTIES_FILE}`; do
> > > > > GLOBAL_VARS="${GLOBAL_VARS} -G${var}"
> > > > > done
> > > > > $JMETER -n ..... ${GLOBAL_VARS} ... -R server1,server2
> > > > >
> > > > > as a workaround, but would be much easier to pass a properties
> file to
> > > > > JMeter that is used to set global vars.
> > > > >
> > > > > Is there a way to do this, or would this be an feature that is
> not
> > > > > currently
> > > > > available.
> > > > >
> > > >
> > >
> >
> > > ---------------------------------------------------------------------
> > > 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: Additional properties to be used globally
Posted by sebb <se...@gmail.com>.
On 01/03/2010, Deepak Shetty <sh...@gmail.com> wrote:
> This still needs the file physically present on all slaves correct? i.e. it
No.
> doesn't automatically distribute the file/properties from the master?
> regards
JMeter reads the file and sends all the properties across.
Or rather, it collects all the properties - whether defined
individually or in a file - and sends them across to all the remote
slaves once they have been initialised.
> deepak
>
>
> On Mon, Mar 1, 2010 at 11:28 AM, sebb <se...@gmail.com> wrote:
>
> > On 18/02/2010, Deepak Shetty <sh...@gmail.com> wrote:
> > > >Is there a way to do this, or would this be an feature that is not
> > > currently
> > > available.
> > >
> > > I dont believe there is such a feature. if you use -p , the property file
> > > must be present on all the remote servers (which must also be started
> > with
> > > -p) , i think , not tested.
> > > I think this feature is useful enough so you might try and see if there
> > is
> > > an enhancement request in jmeter bugzilla or file one
> >
> > The -G option defines individual properties, but also allows for a
> > file to be specified, for example
> >
> > -Gglobal.properties -Gprop=value
> >
> > > regards
> > > deepak
> > >
> > >
> > > On Wed, Feb 17, 2010 at 11:59 PM, Brett Cave <br...@gmail.com>
> > wrote:
> > >
> > > > Hi all,
> > > >
> > > > Was searching through the archives for a solution for this -
> > > >
> > >
> > > >
> > http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html(question<http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question>
> > <
> > http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question
> > >
> > >
> > > > regarding user defined variables).
> > > >
> > > > I have defined a test plan with a number of variables, and then
> > generate a
> > > > properties file automatically. JMeter then runs this property file
> > with the
> > > > -q parameter, which works great when running locally.
> > > >
> > > > However, when I run remote servers, these properties are not
> > propogated to
> > > > servers - it seems that the -G parameter is used for global
> > properties, is
> > > > there a way to configure a "global properties file" ?
> > > >
> > > > I run jmeter with a script like:
> > > > GLOBAL_VARS=""
> > > > for var in `grep -vE "^#|^$" ${JMETER_ADDITIONAL_PROPERTIES_FILE}`; do
> > > > GLOBAL_VARS="${GLOBAL_VARS} -G${var}"
> > > > done
> > > > $JMETER -n ..... ${GLOBAL_VARS} ... -R server1,server2
> > > >
> > > > as a workaround, but would be much easier to pass a properties file to
> > > > JMeter that is used to set global vars.
> > > >
> > > > Is there a way to do this, or would this be an feature that is not
> > > > currently
> > > > available.
> > > >
> > >
> >
>
> > ---------------------------------------------------------------------
> > 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: Additional properties to be used globally
Posted by Deepak Shetty <sh...@gmail.com>.
This still needs the file physically present on all slaves correct? i.e. it
doesn't automatically distribute the file/properties from the master?
regards
deepak
On Mon, Mar 1, 2010 at 11:28 AM, sebb <se...@gmail.com> wrote:
> On 18/02/2010, Deepak Shetty <sh...@gmail.com> wrote:
> > >Is there a way to do this, or would this be an feature that is not
> > currently
> > available.
> >
> > I dont believe there is such a feature. if you use -p , the property file
> > must be present on all the remote servers (which must also be started
> with
> > -p) , i think , not tested.
> > I think this feature is useful enough so you might try and see if there
> is
> > an enhancement request in jmeter bugzilla or file one
>
> The -G option defines individual properties, but also allows for a
> file to be specified, for example
>
> -Gglobal.properties -Gprop=value
>
> > regards
> > deepak
> >
> >
> > On Wed, Feb 17, 2010 at 11:59 PM, Brett Cave <br...@gmail.com>
> wrote:
> >
> > > Hi all,
> > >
> > > Was searching through the archives for a solution for this -
> > >
> >
> > >
> http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html(question<http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question>
> <
> http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg18749.html%28question
> >
> >
> > > regarding user defined variables).
> > >
> > > I have defined a test plan with a number of variables, and then
> generate a
> > > properties file automatically. JMeter then runs this property file
> with the
> > > -q parameter, which works great when running locally.
> > >
> > > However, when I run remote servers, these properties are not
> propogated to
> > > servers - it seems that the -G parameter is used for global
> properties, is
> > > there a way to configure a "global properties file" ?
> > >
> > > I run jmeter with a script like:
> > > GLOBAL_VARS=""
> > > for var in `grep -vE "^#|^$" ${JMETER_ADDITIONAL_PROPERTIES_FILE}`; do
> > > GLOBAL_VARS="${GLOBAL_VARS} -G${var}"
> > > done
> > > $JMETER -n ..... ${GLOBAL_VARS} ... -R server1,server2
> > >
> > > as a workaround, but would be much easier to pass a properties file to
> > > JMeter that is used to set global vars.
> > >
> > > Is there a way to do this, or would this be an feature that is not
> > > currently
> > > available.
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>