0

I have a JMX project with a "Sample Result Save Configuration" for "Sumary Report" as reported in the attached picture. And that JMX project is executed with Jmeter Maven plugin. Now I would handle dynamically the Configuration of report from maven. For example I would unset the option "Save URL" not by Jmeter GUI mode. But I would set it during the execution of project by maven. How it can be done? enter image description here

The related XML piece is as follows: enter image description here

Tocotti
  • 11
  • 3

1 Answers1

0

Changing JMeter listeners configuration is not something you can do with the JMeter Maven plugin, at least not with the current version 3.7.0

What you can do is to remove your Listeners (moreover it's not recommended to use them for anything but test development and/or debugging) and use JMeter Properties which are responsible for what's being stored in the .jtl results file

In this case you will be able to override the default setup like:

<configuration>
    <propertiesUser>
        <jmeter.save.saveservice.url>false</jmeter.save.saveservice.url>
    </propertiesUser>
</configuration>

Other properties can be overriden in exactly the same manner.

More information:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Good. That should be the right option I need. I would try to passe the boolean variable with a parameter as input . Thanks – Tocotti Mar 06 '23 at 21:46
  • I would add between the results also the details of username. Working with Jmeter to allow the same I added it in bin/user.properties the key=value : sample_variables=username Do you know how add the related properties for the username also with jmeter maven configuration? For example has sense to add in pom.xml something similar the following?_ false – Tocotti Mar 09 '23 at 13:49