question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to set resultsFileFormat to CSV at execution level

See original GitHub issue

Hi all,

I’m updating my jmeter-maven-plugin from version 1.10.1 to 2.5.1 (the latest at the moment). Everything is fine except that now the same configurations, which allowed me to output the results in CSV, now output the results in JTL.

I’m running the Maven (version 3.3.3) command in a Java 8 (version 1.8.0_151) Windows environment and this is my plugin configuration (which was working with the 1.10.1 version)

<plugin>
	<groupId>com.lazerycode.jmeter</groupId>
	<artifactId>jmeter-maven-plugin</artifactId>
	<version>2.5.1</version>
	<executions>
		<execution>
			<id>jmeter-tests</id>
			<phase>verify</phase>
			<goals>
				<goal>jmeter</goal>
			</goals>
			<configuration>
				<testFilesDirectory>src/test/resources</testFilesDirectory>
				<propertiesFilesDirectory>src/test/resources</propertiesFilesDirectory>
				<ignoreResultFailures>true</ignoreResultFailures>
				<resultsFileFormat>csv</resultsFileFormat>
			</configuration>
		</execution>
	</executions>
</plugin>

This is the command I’m running

mvn verify

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gvdm90commented, Nov 14, 2017

Hi @Ardesco,

thanks a lot for the support and the detailed explanations. I tested the new configuration structure and it worked (no surprises) 😃 When a change is done for a better adherence to the standards it is always good. We will proceed with the new changes in the configurations and upgrade to the latest version.

Thank you again Regards Giulio

0reactions
Ardescocommented, Nov 14, 2017

In version 1.x of the plugin we used to construct the JMeter directory structure, download dependencies, run tests and check results in the integration-test phase. This is why you could chuck all the configuration in the execution block, because it was effectively the same as placing it outside the execution block.

For 2.x we tried to move to a more standard set of maven phases:

http://books.sonatype.com/mvnref-book/reference/lifecycle.html

Why did we do it? Well the plugin has 3 distinct roles, the first one is constructing your JMeter directory structure. The second is actually running your tests and the third is performing some verification on tests.

If we break these down into separate phases we can start to ignore some phases, this becomes useful when you have a series of sub-modules and you want to place the plugin configuration in the parent module, but you want to disable running of some phases in the sub modules.

Having verify in its own separate phase also means that you don’t have to perform result check as part of the build, you can run a build and then later on decide to run the verify phase using the already stored results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to resultsFileFormat in CSV - Google Groups
Hi all,. I was updating from version 1.10.1 to 2.5.1 and found a problem with the resultsFileFormat configuration. I reported the problem and...
Read more >
Jmeter with Maven - additional data is not getting saved in csv ...
I have tried putting additional properties inside and tags too, but no luck. Rest/default details are getting fetched properly. Please let me ...
Read more >
Running JMeter Tests in Jenkins - Medium
It is a maven plugin that provides the ability to run Jmeter tests as part of ... JMeter only supports report generation if...
Read more >
Bio-Plex Manager Software 6.2 User Guide
Your computer screen resolution must be set to at least 1280 x 1024 for correct display of Bio-Plex Manager. The status bar and...
Read more >
MS-Viewer Instructions
When uploading a MaxQuant data set the Results File Format should be set to ... used to set the level at which a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found