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.

Version 2.0.x not finding .jmx files without a <testFilesIncluded> config block

See original GitHub issue

So, version 1.10.1 works fine in my case. With this:

<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>
        </execution>
    </executions>
</plugin>

Running mvn -pl web jmeter:jmeter all my tests run fine and I can see the following:

...
[INFO] 
[INFO] --- jmeter-maven-plugin:1.10.1:jmeter (default-cli) @ web ---
[INFO]  
[INFO] -------------------------------------------------------
[INFO]  P E R F O R M A N C E    T E S T S
[INFO] -------------------------------------------------------
[INFO]  
[INFO]  
[info]  
[debug] JMeter is called with the following command line arguments:
...

With the exact same configuration, when I change <version> to 2.0.0, this is all I can see when running mvn -pl web jmeter:jmeter:

...
[INFO] 
[INFO] >>> jmeter-maven-plugin:2.0.0:jmeter (default-cli) > :configure @ web >>>
[INFO] 
[INFO] --- jmeter-maven-plugin:2.0.0:configure (configure) @ web ---
[INFO] -------------------------------------------------------
[INFO]  Configuring JMeter...
[INFO] -------------------------------------------------------
[WARNING] Unable to set 'jmeter.save.saveservice.output_format', it is a reserved property in the jmeter-maven-plugin
[INFO] 
[INFO] <<< jmeter-maven-plugin:2.0.0:jmeter (default-cli) < :configure @ web <<<
[INFO] 
[INFO] --- jmeter-maven-plugin:2.0.0:jmeter (default-cli) @ web ---
[INFO]  
[INFO] -------------------------------------------------------
[INFO]  P E R F O R M A N C E    T E S T S
[INFO] -------------------------------------------------------
[INFO] Invalid value detected for <postTestPauseInSeconds>.  Setting pause to 0...
[INFO]  
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.772 s
[INFO] Finished at: 2016-07-05T18:00:35+01:00
[INFO] Final Memory: 14M/309M
[INFO] ------------------------------------------------------------------------
...

It might be worth noting that my JMeter jmx files are inside web/src/test/jmeter/. Still, version 1.10.1 of the plugin picks them up fine.

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rultorcommented, Jul 6, 2016

@rultor release, tag is 2.0.3

@ardesco Done! FYI, the full log is here (took me 4min)

0reactions
desaip01commented, Jan 24, 2017

I get the following message even after updating the version to 2.0.3

[INFO] — jmeter-maven-plugin:2.0.3:jmeter (jmeter-tests) @ tnx-performance — [INFO]
[INFO] ------------------------------------------------------- [INFO] P E R F O R M A N C E T E S T S [INFO] ------------------------------------------------------- [INFO] Invalid value detected for <postTestPauseInSeconds>. Setting pause to 0…

I tried with and without specifying <testFilesIncluded>

<testFilesIncluded> <jemterTestFile>Nightly-Tests.jmx</jemterTestFile> </testFilesIncluded>
Read more comments on GitHub >

github_iconTop Results From Across the Web

selecting test file (jmx file) not working with jmeter-maven-plugin
According to the documentation, my settings above should only execute ionix-${foo.bar}.jmx . (Whether the file ionix-${foo.bar}.jmx exists doesn ...
Read more >
Getting Started - Apache JMeter - User's Manual
Un*x script files; should work on most Linux/Unix systems: jmeter: run JMeter (in GUI mode by default). Defines some JVM settings which may...
Read more >
Enabling and disabling JMX
The most common way to enable remote JMX access to your JVM is to specify a TCP/IP port number and some basic security...
Read more >
Managing Jmeter Test Scripts(JMX) in Maven
So when you just specify jmeter executions, it will run all the test, no need specify any test. <execution> <id>jmeter-tests</id> <goals> <goal> ...
Read more >
JMeter Command Line Overview: 5 Ways To Launch a Test
We do not advise using JMeter in GUI mode if you are initiating an actual ... As shown above, Ant picks up the...
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