bshFoo = (vars.get(Foo));
bshFoo = Four;
vars.put(Foo, +bshFoo);
ZK
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Bean-Shell-Preprocessor-query-tp4831233p4832617.html
Sent from the JMeter - User mailing list archive at Nabble.com.
You don't need to use + to convert bshFoo into a String! It's already a
String! And using + to convert something to a String is the wrong way to
do that, anyway!
God!
;-)
--
Bruce Ide
flyingrhenqu...@gmail.com
Heh, I'm a programmer. I have to admit though, that I very rarely check my
return value for null after vars.get. I figure if my BSF sampler fails with
a null pointer exception, I should know what's going on. Using + for
string conversion is probably a little less efficient than
3 matches
Mail list logo