关于Jmeter打开.jmx文件报错的解决办法

来源:互联网 发布:mac地址修改软件下载 编辑:程序博客网 时间:2024/06/10 17:12

有时在网上学习Jmeter时,会遇到别人高手写的配置,下载下来之后直接打开会发现报错。
如图:
Error-V3.2
or
Error-V3.0

看到这个傻眼了!
不要担心,请自信看报错信息:
missing class com.thoughtworks.xstream.converters.conversionexception
请Google。哈哈~~~
然后请看报错行:6127
是哪里报错了呢?请看path
com.ibm.cognos.jmeter.tm1.top.visualizer.TM1TopTestElement

这些信息都明确的写了。或者去查看Jmeter.log文件,同样有报错信息!
接下来,就是解决办法:
解决办法link:
a. https://stackoverflow.com/questions/15011162/jmeter-error-on-opening-script
内容如下:
第一步:Go to your jmeter directory and open jmeter.log file
The lastest rows rapresents the last error jmeter logged, you have to find a block 就是上述说的log文件和截图的内容

第二步:Open your jmx corrupted file with a text editor and find the corrupted line of code (in the above example the corrupted line is 950)

第三步:找到相应报错行,把报错的标签组全部删除
第四步:Save your edited file with a different name 保存编辑
第五步:Load into jmeter
If the error persist, repeat from step 1 (you’ll find a new tag to remove)
如果还是报错,再重复上述步骤,直到不报错,能打开

这种办法亲测有效,能打开文件 但是会缺少一些东西,比如监听器。这些可以后续自己加。只要能打开下载的文件,学习到人家高手的配置就好!

b. https://stackoverflow.com/questions/25759977/conversion-error-when-opening-jmx-file-from-jmeter-2-7-in-jmeter-2-11
大概的意思就是去官网下载相应的插件,然后add it to lib/ext 文件夹(这种方法没有试过,毕竟不知道差多少)

更多解决办法及类似错误,请Google!这种问题百度很搓,真不是黑它~~~中文问题,百度多,英文还是Google有效!

阅读全文
0 0
原创粉丝点击