jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joeweder <joewe...@gmail.com>
Subject Re: Runtime properties loaded into configuration element
Date Fri, 11 Jan 2008 13:13:02 GMT

Cool. Thanks.

But can you tell me if I can define the properties in a properties file?

I really expected to find a configuration element that you could just set a
path to a properties file.


sebb-2-2 wrote:
> 
> On 10/01/2008, joeweder <joeweder@gmail.com> wrote:
>>
>> I want runtime properties to be loaded into my configuration element(s).
>> For example, my HTTP Request Defaults' Server Name or IP: ${hostname}
>>
>> Is there a configuration element that loads properties from a properties
>> file?
>> hostname=myserver
>> port=8080
>> blah.blah=whatever
>>
> 
> Not as such.
> 
>> I tried using -Dhostname=xxx and -Jhostname=xxx on the command line but
>> when
>> I opened and ran the test-plan I see that the http request failed because
>> ${hostname} was not replaced.
>>
> 
> ${hostname} is a variable reference; -D and -J define properties.
> 
> Properties must be referenced as ${__P(hostname)}
> 
>> Running JMeter 2.3.1 in GUI and headless mode
>>
>>
>> Thanks in advance.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Runtime-properties-loaded-into-configuration-element-tp14744669p14744669.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Runtime-properties-loaded-into-configuration-element-tp14744669p14753928.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Mime
View raw message