在导入测试计划时,我看到以下错误:
2014/03/06 13:37:05 INFO - jmeter.gui.action.Load: Loading file: /Users/kiwitech/Desktop/load test jmeter/jouney_load_test .jmx
2014/03/06 13:37:05 INFO - jmeter.services.FileServer: Set new base='/Users/kiwitech/Desktop/load test jmeter'
2014/03/06 13:37:05 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: com/jayway/jsonpath/InvalidPathException : com/jayway/jsonpath/InvalidPathException
---- Debugging information ----
message : com/jayway/jsonpath/InvalidPathException
cause-exception : java.lang.NoClassDefFoundError
cause-message : com/jayway/jsonpath/InvalidPathException
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:100)
class : org.apache.jmeter.save.ScriptWrapper
required-type : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[6]/hashTree[5]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 348
version : 2.11 r1554548
-------------------------------
2014/03/06 13:37:05 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)请帮我想出可能的解决方案。我试着添加commons lib,但这对我没有帮助。
谢谢你的帮助。
发布于 2014-03-06 17:54:05
看起来您的包含JSON Path Extractor的《测试计划》和您的JMeter安装没有这个插件。
根据Using the XPath Extractor in JMeter指南
你可以用download the compiled JAR files命令。从下载列表中选择“Extras with libs set”。
另一种选择是
发布于 2018-11-14 23:54:21
我也遇到了这个问题,试图用Java8启动JMeter 2.10。为了让它正确地导入我的.jmx文件,我切换到了Java5.0。
https://stackoverflow.com/questions/22218676
复制相似问题