So i have some tests in Jmeter which i'm running using this command:
java -jar .\bin\ApacheJMeter.jar -n -t .\bin\Example-Test-Plan.jmx
in this test i have variable 'users' which i want to change in runtime using beanshell like this:
java -jar .\lib\bshclient.jar localhost 9000 .\bsh\update_parameter.bsh 200.
This is my update_parameter.bsh file:
setprop("users", args[0]);
When i run above things i get this:
Connecting to BSH server on localhost:9000
Reading responses from server ...
BeanShell 2.0b6 - by Pat Niemeyer ([email protected])
bsh % // Error: EvalError: Command not found: setprop( java.lang.String, java.lang.String ) : at Line: 2 : in file: <unknown file> : setprop ( "users" , args [ 0 ] )
bsh % ... disconnected from server.
When i run same tests using GUI the parameter updates just fine... Any ideas why this is happening?
