使用jmeter打开.jmx文件出现以下报错信息

Problem loading XML from:'C:\Users\ADMINI~1\AppData\Local\Temp\360zip$Temp\360$2\文件名.jmx'.

Cause:

Cannot Resolve Class Exception: kg.apc. jmeter. vizualizers. Corrected Result Collector

Detail : com . thought works . xstream . converters . Conversion Exception:

---- Debugging information ----

cause - exception : com . thought works . xstream . converters . Conversion Exception

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.jmeter.save.ScriptWrapper

converter-type : org.apache.jmeter.save.ScriptWrapperConverter

path : /jmeterTestPlan/hashTree/hashTree/hashTree[4]/kg.apc.jmeter.vizualizers.CorrectedResultCollector

line number : 353

version : 5.1.1 r1855137 -------------------------------

因为.jmx文件中使用了jmeter的扩展jar包,但jmeter中没有包含相关jar包所以出现报错

下载jpgc-graphs-basic-2.0.zip包放在jmeter安装路径/lib文件夹中,重启jmeter后即可解决改问题

将jar包解压后,复制以下3个文件粘贴到jmeter安装路径/lib文件下,如下截图

jmeter-plugins-cmn-jmeter-0.3.jar

jmeter-plugins-manager-0.10.jar

jmeter-plugins-graphs-basic-2.0.jar

 

 

 

 粘贴后如下图:

 

退出jmeter后重启进入即可打开.jmx文件

 

posted on 2020-08-06 18:20  豌豆儿  阅读(4475)  评论(0编辑  收藏  举报