DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21513>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21513 Add ability to set user defined variables from cmd. line [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Additional Comments From [EMAIL PROTECTED] 2003-07-15 17:22 ------- The __property function doesn't worl quite as I expected. What I want is to define user defined variable like host, port and set their default values. Then I use those values in HTTP Request Defaults like ${__property(host,host)}, and ${__property(port,port)}. If it is run from GUI or even non GUI and property is not set, user defined variable value is used. If -Dhost=xxx is used, than value xxx is used instead. I have modified Property.java execute method to do that: String propertyName = ((CompoundVariable)values[0]).execute(); String propertyDefault = propertyName; if (values.length > 1) { String variableName = ((CompoundVariable)values[1]).execute(); propertyDefault = getVariables().get(variableName); } String propertyValue = JMeterUtils.getPropDefault (propertyName,propertyDefault); if (values.length > 1) { String variableName = ((CompoundVariable)values [1]).execute(); getVariables().put(variableName,propertyValue); } return propertyValue; I can't check it in. So if you agree with the change would you please put it in. Let me know in any case. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
