错误提示:
Error
Problem loading XMLfrom:'D:\software\apace-jmeter-3.3\bin\线程组jmx',
missing class com.thoughtworks.xstream.converters.ConversionException:
--- Debugging information---
cause-exception:com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class:org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class :org.apache.jmeter.save.ScriptWrapper
required-type :org.apache.jorphan.collections.ListedHashTree
converter-type:org.apache.jmeter.save.ScriptWrapperConverter
path:/jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number :137
version : 3.3 r1808647
是因为jmx文件中使用了JMeter的扩展jar包,但是JMeter中却没有相关jar包导致报错。
导入以下jar包即可解决。
jpgc-graphs-basic-2.0.zip
将该文件加压:
jpgc-graphs-basic-2.0.zip
该文件包含:
lib/jmeter-plugins-cmn-jmeter-0.3.jar
lib/ext/jmeter-plugins-graphs-basic-2.0.jar
lib/ext/jmeter-plugins-manager-0.11.jar
复制到JMeter的安装路径下的lib中,重启JMeter,重新打开相应的 jmx 文件即可: