Questions tagged [jmeter-maven-plugin]

JMeter Maven plugin to automate Apache JMeter tests in Maven.

enter image description here

The JMeter Maven Plugin allows you to integrate Apache JMeter tests as part of your Maven build lifecycle. This makes your tests more portable and easier to run in multiple environments as the only real dependency is a valid Maven install.

242 questions
1
vote
1 answer

How to specify the groovy file in a JMeter JSR223 preprocessor under jmeter-maven-plugin?

I have several JMeter jmx files. They each have an initial script written in groovy and I specify that using a JSR223 PreProcessor giving the file name as src/test/jmeter/LoadScript.groovy. There are no imports, at least none I've written, only…
RogerParkinson
  • 499
  • 6
  • 18
1
vote
1 answer

add external libraries jar to jmeter-maven-plugin

Hello I'm using this https://github.com/jmeter-maven-plugin/jmeter-maven-plugin currently which the sample project works fine with a simple jmeter test. However, I was wondering how does jars get added to the /lib…
chowster
  • 69
  • 1
  • 10
1
vote
1 answer

JMeter Java HEAP issue seen after finished test plan execution in Jmeter-maven-plugin

JMeter Test seems to finish fine. But the next output after "14:48:37 [info] Completed Test: FssBenchmark.jmx" is missing because of the heap issue. Next lines should normally be, [INFO] Test Results: [INFO] [INFO] Tests Run: 1, Failures: 0 Have…
1
vote
1 answer

JMeter - I want to log/display error responses only in CLI mode

I could see that in GUI mode there is an option to log/Display only errors in View Results tree listener. Please refer to the image here. How can i do the same thing on CLI mode, I want lo log/display errors only, please help me!!!
ADARSH K
  • 119
  • 1
  • 8
1
vote
1 answer

Is it possible to generate multiple HTML reports with different configuration after the same execution? jmeter-maven-plugin

I'm using jmeter's maven plugin and I would like to generate two different HTML reports from the same execution log. Is it even possible to do this using this plugin? This is my pom.xml and I'm not sure how to create a second report with a different…
Lorand Fazakas
  • 105
  • 2
  • 7
1
vote
0 answers

How to create JAR from jmeter scenario (.jmx file) from local maven project?

I have created maven project repositories on my local machine successfully. Also, I wrote test scenario in JMeter which works fine. As per the documents available on internet, I kept my .jmx file in "\src\test\jmeter" directory. My POM.xml looks…
Mlayel Rami
  • 63
  • 1
  • 7
1
vote
1 answer

JMeter User Defined Variable for enabling Test Duration

I am trying to parameterize the JMeter test so that I can run Load Test, Stress Test as well as Soak Load Test using the same test plan. In order to do this, I defined the following as User Defined variables (Test Plan -> Add -> Config Element ->…
1
vote
1 answer

How to generate "HTML Reports" using latest version (3.1.1) of jmeter-maven-plugin

I'm able to generate HTML reports when I use 2.8.0 version of jmeter-maven-plugin. I clearly see one folder target\jmeter\reports. However, when I use 3.1.1 (latest) version, I don't see this folder at all. Please let me know if there is any way to…
CMM
  • 543
  • 4
  • 16
1
vote
1 answer

Failure to find artefact SLF4J when including it in a maven project that uses jmeter plugin with maria-db connect included

The jmx file uses a JSR223 sample to run some selenium code and at some point it needs to connect to a maria database to get a…
1
vote
2 answers

Add my own jar to jmeter lib directory without maven groupId and artifactId

I hava some Java code, this is going to be used in Bean Shell. The Java code I have already exported from IDEA and generated to a jar file, so it does not hava maven groupId. How can I add this jar file to the jmeter/lib directory? Here is the…
Mr.LiuDC
  • 109
  • 1
  • 3
  • 13
1
vote
1 answer

How to execute Jmeter scripts based on the Environment parameter passed in command line

I want to execute my Jmeter scripts based on the environment parameter passed on the command line. I have two environments Env1 and Env2, So if I pass environment parameter as Env1 on command line then the Jmeter scripts should execute for the URL…
Nahor
  • 83
  • 1
  • 7
1
vote
2 answers

Does JMeter 5 works with JUnit 5?

I'm having trouble while trying to run JUnit 5 test suite using jmeter-maven-plugin version 3. The setup and tear down phases of the test suite are not invoked at all. However, the methods annotated with @Test are called. My setup is this: First…
Skywalker
  • 11
  • 2
1
vote
2 answers

How to set relative file path in include controller of Jmeter?

I am trying to call a Test fragment which consists of reusable sampler. I want to call the test fragment in my other script using Include controller, I want to achieve this by giving relative path in include controller, It is working when absolute…
Nahor
  • 83
  • 1
  • 7
1
vote
2 answers

I am getting an error "Error generating the report: java.lang.NullPointerException" while running the JMeter script using JMeter-Maven plugin

I am getting an error "Error generating the report: java.lang.NullPointerException" while running the JMeter script using JMeter-Maven plugin. Below is the screen shot of the error I am getting: Below is my pom.xml…
Nahor
  • 83
  • 1
  • 7
1
vote
1 answer

How to pass parameterized variable value in the Filename field of Flexible File Writter plugin of JMeter?

I am trying to pass a parameterized variable name which I have defined in "User Defined Variables" config element. When I try to access the variable value by ${variable_name} in the Filename field of Flexible File Writter plugin I am getting an…
Nahor
  • 83
  • 1
  • 7