https://issues.apache.org/bugzilla/show_bug.cgi?id=56602
Bug ID: 56602
Summary: serialized test elements lose some properties
Product: JMeter
Version: 2.11
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
I have recently moved to Jmeter 2.11 from 2.9 and immediately noticed that all
of my tests got corrupted. I have verified with one test using the original
file and found that it is enough to open and save the test to get it corrupted.
It seems to me that some object properties just simply do not get written to
the XML file. I found that it is not only my plug-ins but also some other 3rd
party plug-ins suffer.
I did the diff between "before" and "after" saving the JMX file using JMeter
and I see a few changes like this:
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector"
testname="Aggregate Report" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
- <name>saveConfig</name>
<objProp>
- <name>discreete_buckets</name>
<value class="java.util.ArrayList">
<com.mycompany.jmeter.utils.DDRRangeRecord>
- <probability>50.0</probability>
I started looking at what could be the reason and found that my record class
(the one that JMeter eventually serializes) is like this:
public class A implements Serializable {
...
field A with getter and setter
}
public class B extends A implements Serializable {
field B with getter and setter
field C with getter and setter
}
So, fields B and C get serialized, A does not. If I add A to the class B - it
works.
With Jmeter 2.9 all A,B and C would be serialized.
--
You are receiving this mail because:
You are the assignee for the bug.