Blazemeter / taurus

Automation-friendly framework for Continuous Testing by
http://gettaurus.org
Apache License 2.0
2k stars 461 forks source link

jmeter integration - elapsed field missing from class #1831

Closed johnqa closed 4 months ago

johnqa commented 4 months ago

Hi, I am trying to run a jmeter test with jmeter 5.6.2 and taurus 1.16.30 (docker image), and I receive the following error:

---- Debugging information ----
message             : Field not found in class.
field               : org.apache.jmeter.samplers.SampleSaveConfiguration.elapsed
-------------------------------

 Detail:com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : 
first-jmeter-class  : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:109)
class               : org.apache.jmeter.save.ScriptWrapper
required-type       : org.apache.jmeter.save.ScriptWrapper
converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
path                : /jmeterTestPlan/hashTree/hashTree/ResultCollector[4]/objProp/value/elapsed
line number         : 724
version             : 5.6.2

Similar error if I try to open _modified_JMETERSCRIPT.jmx with Jmeter 5.6.2

Looking at the modified_JMETER_SCRIPT.jmx I can find indeed the xml element elapsed set to true. If I remove that element, the test can be loaded by JMeter.

Is there something I need to do/set in order to have this working?

Thank you, John

johnqa commented 4 months ago

Not an issue, i used elapsed parameter in my yml file. It was working some time ago but not anymore.

modules:
  jmeter:
    csv-jtl-flags:
      elapsed: true