Performance error in NonGUIDriver java.lang.IllegalArgumentException

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 !!!

+6
source share
2 answers

It seems that the current version of jmeter-maven-plugin (2.0.3) is slightly behind the JMeter versions (current is 3.1).

I had exactly the same exception when I tried to run my jmx with version 3.1. But, when I recreated jmx with the JMeter GUI version 2.13, it worked fine with jmeter-maven-plugin version 2.0.3.

It might be worth redefining the working version of JMeter.

0
source

Latest version 2.6.0 jmeter-maven-plugin now supports the latest version of JMeter 3.3 and is now supported by two people, including one Apache JMeter project committer, so it now strictly follows JMeter releases.

See this for how to set it up:

All your problems should be fixed.

0
source

Source: https://habr.com/ru/post/1012762/


All Articles