jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frank <>
Subject setProperty doesn't work
Date Thu, 08 Nov 2012 03:50:13 GMT
using jmeter 2.6, and i have 2 thread groups like next : 

             |_beanshell postprocessor1
             |_beanshell postprocessor2

beanshell postprocessor1 like next : 

${__setProperty("rootObjectId", ${rootObjectId})};
String s = "${bookingNo}";




it'll execute 'else' statement

and in request2 , it will use ${__property(vari1,,)} to get the property
value, and the property value is empty.

for beansehll processor2, its beanshell script is the same as beanshell
processor1, but now it'll execute 'if' statement, that is i want to set
value 'abc' for the property

the problem is : in request4, ${__property(vari1,,)} still return empty
string, but not abc.

and the most confused is : if i add double quote for property name vari1,
that is in group2, if i changed the beanshell script to : 






then it works, the ${__property("vari1",,)} of request4 will return abc.

or if i add double quote for property vari1 in group1, but NOT add in
group2, it also works, in request4, i can get the value abc.

so what's the problem?  
Thanks in advance.

View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message