You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2005/01/26 14:57:36 UTC
DO NOT REPLY [Bug 32790] -
IfController only evaluated once within a LoopController
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32790>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32790
------- Additional Comments From g.kappler@gmx.net 2005-01-26 14:57 -------
I had the same Problem with Version 2.0.2.
The Prob is, that the CONDITION is not set to RunningVersion and recovered after
each evaluation. I set the Property correctly by modifying setCondition and
getCondition. Now it works correctly with my local patched version.
Here is the fixed code snippet:
/**
* Condition Accessor - this is gonna be like ${count}<10
*/
public void setCondition(String condition) {
StringProperty prop=new StringProperty(CONDITION, condition);
prop.setRunningVersion(true);
logger.debug(" setCondition() : [" + condition + "]="+prop);
setProperty(prop);
}
/**
* Condition Accessor - this is gonna be like ${count}<10
*/
public String getCondition() {
JMeterProperty prop=(JMeterProperty)getProperty(CONDITION);
logger.debug(" getCondition() : [" + prop.getClass().getName() + "]");
String result=prop.getStringValue();
prop.recoverRunningVersion(null);
return result;
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org