Here's what I do. For the variable value, I use ${__P(my_param_name)}.
Then I invoke Jmeter as
$ jmeter -n -t plan.jmx -Jmy_param_name=10
or whatever value I want.
Careful: When running with servers (jmeter -R) use -G instead of -J !

Cheers,
Felix

On 08/20/10 13:57, Karsten Gaul wrote:
> Hi Nythia,
> 
> I haven't heard of a possibility to change test plan variables from the
> command line yet. To work around this you could write a csv file which
> is editable via the nano or pico editors. You may have to install cygwin
> if you're not on a linux machine. Having done that, you could even edit
> the jmx in the command prompt for it is a 'simple' xml file. I wouldn't
> suggest that, though, and you will agree once you've tried.
> 
> rgds
> Karsten
> 
> Am 19.08.2010 14:47, schrieb Nithya Prakash:
>> Hi Karsten,
>>
>> Thanks man.. Its working now. I have another query... Is it possible to
>> change the input value's from command prompt ??
>>
>> Eg: I have a variable in UDV named "uname" and its value is " JUser ".
>> Now I
>> need to change the user name to "CMDUser" from the command prompt itself.
>>
>> I have seen the various command line options, but unable to
>> understand. can
>> u pls guide me??

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to