I have a maven project with which I am trying to execute a jmx file by running JMeter using (jmeter-maven-plugin). I have the following console output
PERFORMANCETESTS [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'
I thought to fix the problem org.apache.jmeter.samplers.SampleSaveConfiguration
I tried to add the SampleSaveConfiguration class depending
<dependency> <groupId>org.apache.jmeter</groupId> <artifactId>ApacheJMeter_core</artifactId> <version>3.1</version> </dependency>
But actually it did not help. Than I searched for the problem No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration'
, but in the SampleSaveConfiguration
class I found the private boolean sentBytes;
I do not know how to look for such a problem.
When running the JMeter test locally, this is normal -
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
Has anyone encountered such a problem? Or recommend some solutions, please !!!
source share