我已经使用幻影创建了一个J测负载测试,并且我已经在本地运行了它,没有问题。当我将测试放在EC2上时,每次测试都失败。我在网上环顾了一下,尝试了我能找到的所有建议,但到目前为止还没有得到任何进展。我100%确信“j抄-plugins-Webdrier-1.4.0.jar”位于j抄/lib/ext文件夹中。我已经确保了我的EC2包含了Phantomjs和run运行所需的所有依赖项。EC2没有gui。任何帮助都将不胜感激。
jmeter -n -t 1joinOnly.jmx -l error101.jtl
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/home/ubuntu/jmeter-bootstrap/bin/apache-jmeter-3.0/bin/1joinOnly.jmx', conversion error 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/com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig
line number : 60
version : 2.13.20161028发布于 2017-05-30 17:10:11
我能够通过插件管理器命令行安装缺失的插件。https://jmeter-plugins.org/wiki/PluginsManagerAutomated/
发布于 2017-05-23 04:51:54
什么罐子?在什么文件夹里?
错误清楚地表明缺少WebDriver取样器插件,所以我的期望是(注意:下面的说明适用于Debian和派生程序,其他Linux发行版的命令和路径可能有所不同):
apt- Selenium libraries should go to `/usr/share/jmeter/lib`
- WebDriver libraries should go to `/usr/share/jmeter/lib/ext` (注意:我附近没有Ubuntu,所以文件夹可能不一样,请使用dpkg-查询命令(如dpkg-query -L jmeter | grep lib)再次检查它们)
我的建议是从Debian (或Ubuntu)附带的版本切换到最新的JMeter版本:

https://stackoverflow.com/questions/44122418
复制相似问题