You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by TMTuohy <tm...@gmail.com> on 2013/12/20 23:34:03 UTC

Specifying multiple properties files

Hi,

I'm organizing different JMeter (2.8) tests by environment and I want to
have the following organization with respect to properties loaded at
startup:

1.  Load jmeter.properties file (contains only jmeter-specific properties)
2.  Load common.properties file (contains common properties shared by many
tests)
3.  Load test-specific properties file (contains properties specific to the
current script)

Ideally, I want to load all of the above files at startup and I've tried to
do this using the -G[propsfile] argument (specifying 3 separate
-G[propsfile] arguments: 1 for each properties file).  However, this doesn't
seem to work and the JMeter doc is vague on this subject.  

Does anyone know if what I'm trying to do above can be done?  I know I can
arrange the properties into 2 files (jmeter.properties and a setting
pointing to a user.properties file) but I really want more flexibility than
that.

Thanks,

Tom



--
View this message in context: http://jmeter.512774.n5.nabble.com/Specifying-multiple-properties-files-tp5718948.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Specifying multiple properties files

Posted by sebb <se...@gmail.com>.
--addprop also allows multiple definitions and should be used instead
of system property files.

On 21 December 2013 01:15, TMTuohy <tm...@gmail.com> wrote:
> Problem Solved - Figured out a work-around . . .
>
> JMeter allows you to specify multiple "system properties" files on the cmd
> line.  I was able to load all of the extra properties files I created using
> multiple --systemPropertyFile arguments that pointed to the various property
> files I defined.
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Specifying-multiple-properties-files-tp5718948p5718953.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: Specifying multiple properties files

Posted by TMTuohy <tm...@gmail.com>.
Completely missed that one - thanks!



--
View this message in context: http://jmeter.512774.n5.nabble.com/Specifying-multiple-properties-files-tp5718948p5718966.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Specifying multiple properties files

Posted by TMTuohy <tm...@gmail.com>.
Problem Solved - Figured out a work-around . . .

JMeter allows you to specify multiple "system properties" files on the cmd
line.  I was able to load all of the extra properties files I created using
multiple --systemPropertyFile arguments that pointed to the various property
files I defined.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Specifying-multiple-properties-files-tp5718948p5718953.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Specifying multiple properties files

Posted by sebb <se...@gmail.com>.
On 20 December 2013 22:34, TMTuohy <tm...@gmail.com> wrote:
> Hi,
>
> I'm organizing different JMeter (2.8) tests by environment and I want to

The current version is 2.10

> have the following organization with respect to properties loaded at
> startup:
>
> 1.  Load jmeter.properties file (contains only jmeter-specific properties)
> 2.  Load common.properties file (contains common properties shared by many
> tests)
> 3.  Load test-specific properties file (contains properties specific to the
> current script)
>
> Ideally, I want to load all of the above files at startup and I've tried to
> do this using the -G[propsfile] argument (specifying 3 separate
> -G[propsfile] arguments: 1 for each properties file).  However, this doesn't
> seem to work and the JMeter doc is vague on this subject.

The -G flag is used for specifying properties for use in client -
server mode only

http://jmeter.apache.org/usermanual/get-started.html#options

> Does anyone know if what I'm trying to do above can be done?  I know I can
> arrange the properties into 2 files (jmeter.properties and a setting
> pointing to a user.properties file) but I really want more flexibility than
> that.
>
> Thanks,
>
> Tom
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Specifying-multiple-properties-files-tp5718948.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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