That worked! Thanks 'sebb'...

Next question, how would I do the same thing for 'HTTP Request Defaults' for a
value that is a 'bool':

<boolProp name="HTTPSampler.image_parser">true</boolProp>

This is just a checkbox on the GUI mode. Moreover, if I save the test plan with
this value unchecked - the above line doesn't even show up in the .jmx file. So
how would I override the value (or just set the value if the line isn't present
in the .jmx file)?

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
http://www.kingsisle.com

-----Original Message-----
From: sebb [mailto:seb...@gmail.com] 
Sent: Tuesday, January 28, 2014 7:20 PM
To: JMeter Users List
Subject: Re: In non-gui mode, is there a command-line switch to change User
Defined Variables

On 29 January 2014 00:42, Robin D. Wilson <rwils...@gmail.com> wrote:
> I have several test cases that I like to with slightly different User 
> Defined Variables configurations.
>
> I'd prefer not to have to save multiple versions of the test cases, 
> simply because it makes them harder to maintain.
>
> Is there a simple way to override 'User Defined Variable' values from 
> the command line (when running in non-gui mode)?

Not exactly.

You can define UDVs as property references, with a default if the property is
not defined.

http://wiki.apache.org/jmeter/JMeterFAQ#How_do_I_pass_parameters_into_my_Test_sc
ripts.3F_I_want_to_be_able_to_use_the_same_script_to_test_with_different_numbers
_of_threads_and_loops.2C_and_I_don.27t_want_to_have_to_change_the_script_each_ti
me.

> (Specifically, I have a variable for "number of threads", and another 
> one for "total iterations".)
>
> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
> http://www.kingsisle.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>

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


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

Reply via email to