我有 maven 项目,在它的帮助下我试图执行一个 jmx 文件,使用 (jmeter-maven-plugin) 运行 JMeter。我有以下控制台输出
P E R F O R M A N C E T E S T S
[INFO] -------------------------------------------------------
[INFO] Invalid value detected for <postTestPauseInSeconds>. Setting pause to 0...
[INFO]
[INFO]
[INFO] Executing test: ZawyaJmeterTest.jmx
[INFO] Writing log file to: D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\logs\ZawyaJmeterTest.jmx.log
[INFO] Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\testFiles\ZawyaJmeterTest.jmx', missing class com.thoughtworks.xstream.converters.ConversionException: No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration' : No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration'
我想为了解决这个问题 org.apache.jmeter.samplers.SampleSaveConfiguration
,我尝试在依赖项中添加 SampleSaveConfiguration 类
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter_core</artifactId>
<version>3.1</version>
</dependency>
但事实上它并没有帮助。比我寻找问题No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration'
,但在课堂上SampleSaveConfiguration
我发现字段private boolean sentBytes;
我不知道以什么方式搜索此类问题。
在本地运行 JMeter 测试时很好 -
d:\tools\jmeter_examples\Example\jmeter-maven-example>jmeter -n -t D:\tools\jmeter_examples\Example\jmeter-maven-example\src\test\jmeter\ZawyaJmeterTest.jmx -l D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\results\ZawyaJmeterTest.jtl
Writing log file to: d:\tools\jmeter_examples\Example\jmeter-maven-example\jmeter.log
Created the tree successfully using D:\tools\jmeter_examples\Example\jmeter-maven-example\src\test\jmeter\ZawyaJmeterTest.jmx
Starting the test @ Wed Nov 30 17:26:53 EET 2016 (1480519613563)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
Tidying up ... @ Wed Nov 30 17:27:07 EET 2016 (1480519627819)
... end of run
有人遇到过这样的问题吗?或者推荐一些决定的方法,拜托!!!