jmeter-maven-plugin doesn't update jmeter.properties

479 views
Skip to first unread message

Elena Florko

unread,
Oct 18, 2013, 8:56:08 AM10/18/13
to maven-jmeter...@googlegroups.com
Hello,

Thank you for really great and useful plugin! But I faced with following problem - jmeter.properties file is not updated with defined properties in POM file. I tried to do that by two ways:

1) In POM file:

<build>
...
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.8.1</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<testResultsTimestamp>false</testResultsTimestamp>
<propertiesJmeter>
<log_level.jmeter>DEBUG</log_level.jmeter>
                                <language>en</language>
<sampleresult.timestamp.start>true</sampleresult.timestamp.start>
<jmeter.save.saveservice.timestamp_format>yyyy/MM/dd HH:mm:ss.SSS</jmeter.save.saveservice.timestamp_format>
<jmeter.save.saveservice.output_format>xml</jmeter.save.saveservice.output_format>
                        </propertiesJmeter>
<propertiesUser>
<CLMhost>192.168.3.48</CLMhost>
<resultsFolder>${project.build.directory}/results</resultsFolder>
</propertiesUser>
        </configuration>
</plugin>
...
</build>

2) As was suggested on Wiki page I just put necessary jmeter.properties files in ${project.base.directory}/src/test/jmeter directory.

After execution of command mvn clean verify  I checked jmeter.properties file and it contained default properties. At same time user.properties updated correctly.

Please advise me something I need to rewrite some jmeter properties. 

Thanks

Best regards

Elena Florko

Mark Collin

unread,
Oct 23, 2013, 6:04:14 PM10/23/13
to maven-jmeter...@googlegroups.com

Hmm it should work, can you have a look to see what was put in your

 

<project_base_dir>\target\jmeter\bin

 

Directory.  This is where the updated jmeter.properties should be placed.

--
You received this message because you are subscribed to the Google Groups "Maven JMeter Plugin Devs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jmeter-plugi...@googlegroups.com.
To post to this group, send an email to maven-jmeter...@googlegroups.com.
Visit this group at http://groups.google.com/group/maven-jmeter-plugin-devs.
For more options, visit https://groups.google.com/groups/opt_out.

tban...@mdsol.com

unread,
Jun 1, 2015, 3:42:49 PM6/1/15
to maven-jmeter...@googlegroups.com, efl...@selectica.com
Were you able to figure this out..? I am using maven plugin and the default setting in jmeter properties for output format is xml. I want to change it to csv.

Ardesco

unread,
Jun 2, 2015, 11:15:47 AM6/2/15
to maven-jmeter...@googlegroups.com, tban...@mdsol.com, tban...@mdsol.com, efl...@selectica.com
I think I'm being a bit dumb here, you need to set the results file format using config in the POM:

+---+
<project>
    [...]
        <build>
            <plugins>
                <plugin>
                    <groupId>com.lazerycode.jmeter</groupId>
                    <artifactId>jmeter-maven-plugin</artifactId>
                    <version>1.10.1</version>
                    <executions>
                        <execution>
                            <id>jmeter-tests</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>jmeter</goal>
                            </goals>
                            <configuration>
                                <resultsFileFormat>csv</resultsFileFormat>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    [...]
</project>
+---+

This is because we need to control the format used because we only support XML and CSV.  If more are added in the future we wouldn't be able to parse the results file.

bhanupr...@gmail.com

unread,
Feb 5, 2016, 5:43:38 AM2/5/16
to Maven JMeter Plugin Devs, tban...@mdsol.com, efl...@selectica.com
Hi,

Can we set includecontroller.prefix as one of the jmeter properties.

A quick reply is greatly appreciated please.

Message has been deleted

giripra...@gmail.com

unread,
Aug 22, 2018, 8:35:45 AM8/22/18
to Maven JMeter Plugin Devs
Hii Ardesco,

I used the plugin and want to view my results in xml format. The configuration of my pom file also includes this:

<configuration>
<resultsFileFormat>xml</resultsFileFormat>
</configuration>

Still my results are in the csv format. Can you please help me with this issue and tell how to view the results in an xml format.

Thank You
Giri

push...@diro.io

unread,
Apr 8, 2019, 9:36:10 AM4/8/19
to Maven JMeter Plugin Devs
> Giri Hello giri,

have you got solution for view the results in an xml format. if yes please suggest me i am also facing same issue

Mark Collin

unread,
Apr 8, 2019, 9:37:57 AM4/8/19
to maven-jmeter...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Maven JMeter Plugin Devs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jmeter-plugi...@googlegroups.com.
To post to this group, send an email to maven-jmeter...@googlegroups.com.

push...@diro.io

unread,
Apr 8, 2019, 9:57:40 AM4/8/19
to Maven JMeter Plugin Devs

Thank you very much for quick reply, but its not working for me, can please more explain it . it will help me a-lot.

push...@diro.io

unread,
Apr 8, 2019, 9:58:45 AM4/8/19
to Maven JMeter Plugin Devs
Hello Ardesco,

Ardesco

unread,
Apr 8, 2019, 10:01:47 AM4/8/19
to Maven JMeter Plugin Devs
This is really a devs forum for talking about development your query really belongs in the users forum.

To be able to help you out we are going to need to see your plugin block from your POM to try and work out what is going on.
Reply all
Reply to author
Forward
0 new messages