【问题标题】:Jmeter Testplan - empty test plan errorJmeter Testplan - 空测试计划错误
【发布时间】:2018-11-14 23:54:20
【问题描述】:

导入测试计划时,我看到以下错误:

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,但它没有帮助我。

感谢您的帮助。

【问题讨论】:

    标签: java jmeter


    【解决方案1】:

    您的包含JSON Path Extractor 的测试计划和您的JMeter 安装似乎没有此插件。

    根据Using the XPath Extractor in JMeter 指南

    您可以download the compiled JAR files。从下载列表中选择“Extras with libs set”。

    另一种选择是

    【讨论】:

    • 也可能是 JMeter 版本 - JDK 合规性问题。
    【解决方案2】:

    我也遇到了这个问题,尝试使用 Java 8 启动 JMeter 2.10。 我切换到 JMeter 5.0 以便让它正确导入我的 .jmx 文件。

    【讨论】:

      猜你喜欢
      • 2015-05-03
      • 2014-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多