https://bz.apache.org/bugzilla/show_bug.cgi?id=58310
Bug ID: 58310
Summary: The last globalproperty (-G) command line file
parameter overwrites all previously set global
properties
Product: JMeter
Version: 2.13
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Example:
./jmeter -Gfirst.properties -Gname=value -Gsecond.properties (...)
Expected result:
Both properties from first.properties, the "name" property and
second.properties should be loaded & sent to load gen servers.
Actual result:
Only properties from second.properties is loaded.
Looking at the code (JMeter.java), this is no surprise:
case JMETER_GLOBAL_PROP:
if (value.length() > 0) { // Set it
log.info("Setting Global property: " + name + "=" + value);
remoteProps.setProperty(name, value);
} else {
File propFile = new File(name);
if (propFile.canRead()) {
log.info("Setting Global properties from the file "+name);
try {
fis = new FileInputStream(propFile);
remoteProps.load(fis); // THIS WILL OVERWRITE ANY PREVIOUSLY
LOADED PROPERTIES
} catch
...
I can create a patch if you want me to. A long time ago there was a similar
issue for "normal" (non-distributed) property loading but it was fixed (33920).
--
You are receiving this mail because:
You are the assignee for the bug.