I have a test plan that I run headless and save the results to a .jtl file. I have another 'View Results' test plan that I use to examine the results by using the 'Read from file' facility of listeners such as Aggregate Report etc. I added a Perfmon Metrics Collector to the headless test plan and verified it works by running it via the GUI. But when I run it headless and look for results in the 'View Results' test plan (by adding a a Perfmon Metrics Collector and using the 'Read from file' facility) it fails with the following error:
2011/12/07 11:42:34 WARN - jmeter.reporters.ResultCollector: Failed to load /Users/owenl/IMG/jmeter_failover/load_tests/Results/users10.jtl using XStream. Error was: com.thoughtworks.xstream.converters.ConversionException: org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
---- Debugging information ----
message : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
cause-exception : java.lang.ClassCastException
cause-message : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
class : org.apache.jmeter.save.TestResultWrapper
required-type : org.apache.jmeter.save.TestResultWrapper
line number : 3
-------------------------------
Any idea on how I can display Perfmon results from a headless run?
Details:
JMeterPlugins version: 0.4.2
Thanks,
Owen Lynch
