jmeter-maven-plugin | The JMeter Maven Plugin | Plugin library

 by   jmeter-maven-plugin Java Version: 3.7.0 License: Apache-2.0

kandi X-RAY | jmeter-maven-plugin Summary

kandi X-RAY | jmeter-maven-plugin Summary

jmeter-maven-plugin is a Java library typically used in Plugin, Maven applications. jmeter-maven-plugin has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can download it from GitHub, Maven.

A Maven plugin that provides the ability to run JMeter tests as part of your build. See the CHANGELOG for change information. All the documentation you need to configure the plugin is available on the Github Wiki. The latest version is 3.4.0, it requires Maven >= 3.5.2 and defaults to Apache JMeter 5.4.1. This plugin requires a JDK between 8 and 11. If using Java 11, ensure you use recent version to avoid facing this Bug, also read This.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              jmeter-maven-plugin has a highly active ecosystem.
              It has 416 star(s) with 230 fork(s). There are 44 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 16 open issues and 349 have been closed. On average issues are closed in 151 days. There are 1 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of jmeter-maven-plugin is 3.7.0

            kandi-Quality Quality

              jmeter-maven-plugin has 0 bugs and 0 code smells.

            kandi-Security Security

              jmeter-maven-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              jmeter-maven-plugin code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              jmeter-maven-plugin is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              jmeter-maven-plugin releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 6159 lines of code, 458 functions and 64 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed jmeter-maven-plugin and discovered the below as its top functions. This is intended to give you an instant insight into jmeter-maven-plugin implemented functionality, and help decide if they suit your requirements.
            • Scan for JMeter result files
            • Scans a CSV file
            • Find the separator for the given file
            • Parse the result file
            • Load the JMeter GUI
            • Set the proxy configuration
            • Starts the JMeter GUI process
            • Gets the command line options
            • Configure a local instance of JMeter
            • Configure properties files
            • Copies transitive dependencies from the given dependency to the lib directory
            • Copy an artifact to a directory
            • Load the JMeter server
            • Run JMeter server
            • Set server mode
            • Build remote arguments array
            • Builds typed properties for container
            • Execute mojo
            • Loads the active maven proxy
            • Run all the JMeter tests
            • Returns a string representation of the proxy server configuration
            • Set jmeter file
            • Sets remote start server list
            Get all kandi verified functions for this library.

            jmeter-maven-plugin Key Features

            No Key Features are available at this moment for jmeter-maven-plugin.

            jmeter-maven-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for jmeter-maven-plugin.

            Community Discussions

            QUESTION

            add external libraries jar to jmeter-maven-plugin
            Asked 2022-Mar-10 at 18:39

            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 folder.

            ...

            ANSWER

            Answered 2022-Mar-10 at 05:05

            See Adding jar's to the /lib directory

            add any additional Java libraries to JMeter's lib/ directory by using the configuration element

            Source https://stackoverflow.com/questions/71417665

            QUESTION

            JMeter Java HEAP issue seen after finished test plan execution in Jmeter-maven-plugin
            Asked 2021-Oct-07 at 15:00

            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,

            ...

            ANSWER

            Answered 2021-Oct-07 at 15:00

            Sounds like you have not configured enough xmx memory for the JMeter process. You can set the amount of memory allocated to the process in the configuration settings for the plugin like this:

            Source https://stackoverflow.com/questions/69201156

            QUESTION

            LocalRepositoryNotAccessibleException Could not create local repository at /testartifacts/m2repository
            Asked 2020-Nov-13 at 05:45

            I'm running a CI pipeline in Azure DevOps with a Maven build step called "Download provided dependency JARs".

            This step was working before, however it's suddenly giving me this error:

            ...

            ANSWER

            Answered 2020-Nov-13 at 04:37

            It looks you ran your pipeline on self-hosted agent. Or you configured the maven to retrieve the dependencies from the local repository(in mvnsettings.xml, or .m2/settings.xml ). If you ran your pipeline on self-hosted agent. You can check if the local repo /testartifacts/m2repository exists.

            If you run your pipeline on cloud agents, you need to find which setting files configured the the local repo, And remove the localRepository.

            Then you might need to use Maven Authenticate task to provides credentials for Azure Artifacts feeds and external Maven repositories.

            Add Maven Authenticate task at the top of your pipeline. And select your azure maven feed from the Feeds dropdown list

            This task will store the credentials on a temp settings.xml file(with feed name as the server id, see below) on the agent, which will be used to authenticate the maven repository in the following maven task.

            Noted: The repository id you specified in your pom.xml file(ie. see below highlighted) should be the same with the name of your azure artifacts maven feed. Or it will still fail to authenticate the feed in the follow maven task. for the server id in the temp settings.xml file created above is the feed name.

            Source https://stackoverflow.com/questions/64798914

            QUESTION

            Run Perf tests using Jmeter GUI on Kubernetes cluster
            Asked 2020-Nov-11 at 20:15

            I have a Jmeter server (using jmeter-maven-plugin) running in a pod in my Kubernetes cluster, which is used to perf test Microservices running in other pods in the same cluster. I usually run perf tests by invoking the server using CLI commands in my terminal (exec into the k8 pod and run tests). This works only if I have Kubernetes authentication. I now have a requirement to allow users without k8 access to invoke the Jmeter server using GUI client instead if CLI. I do not want them to write any test scripts. How can I do that?

            This is what I've been thinking:

            Option 1: The client must also run in k8 and the user must be able to access the client using a browser. I think this is not possible because the Jmeter GUI client is run using a sh script in bin folder(https://octoperf.com/blog/2018/03/29/jmeter-tutorial/), not sure how we can host this?

            Option 2: Expose the Jmeter server to outside world, so that users without k8 access can invoke it using this external IP. Tried to follow something like this https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/ but will this include the network time in my perf test response times?

            What is the best way to do this and what other possible solutions can I explore? Are there any other perf testing tools that can achieve this easily? Any help is appreciated.

            ...

            ANSWER

            Answered 2020-Jun-29 at 17:10

            In order to let someone to access the pods in your k8s cluster you need to expose the IP addresses and RMI ports to the outside world

            It will not "include the network time in my perf test response times" because the slaves which are running on pods are doing the real job, the master only collects, aggregates and visualises the test results.

            More information on JMeter Properties and ways of setting and overriding them: Apache JMeter Properties Customization Guide

            Source https://stackoverflow.com/questions/62626467

            QUESTION

            JMeter User Defined Variable for enabling Test Duration
            Asked 2020-Jul-15 at 15:58

            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 -> User Defined Variables)

            ...

            ANSWER

            Answered 2020-Jul-15 at 15:58

            I don't think this is the correct way to enable/disable the thread lifetime setting:

            Source https://stackoverflow.com/questions/62906360

            QUESTION

            How to generate "HTML Reports" using latest version (3.1.1) of jmeter-maven-plugin
            Asked 2020-Jul-14 at 14:58

            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 generate HTML reports with the latest version.

            Below is my sample of my pom.xml:

            ...

            ANSWER

            Answered 2020-Jul-14 at 14:58

            QUESTION

            Unable to run a selenium-junit project having maven in jmeter
            Asked 2020-Jul-06 at 15:47

            Hi i am trying to execute Jmeter Junit sampler having maven dependencies.

            I have included all selenium jars into the lib folder along with the standalone server. Also , my pom.xml looks as follows:

            ...

            ANSWER

            Answered 2020-Jul-06 at 15:47

            You will see the error in the View Results Tree listener only if sampler can be executed, if it cannot be executed due to improper JMeter configuration - you should be looking for error messages in jmeter.log file

            Also the way you're adding dependencies is not suitable for JMeter Maven Plugin, it uses Eclipse Aether which has different dependencies resolution logic

            So you need to change your pom.xml file to look like:

            Source https://stackoverflow.com/questions/62756382

            QUESTION

            Failure to find artefact SLF4J when including it in a maven project that uses jmeter plugin with maria-db connect included
            Asked 2020-Jun-26 at 15:14

            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 code.

            pom:

            ...

            ANSWER

            Answered 2020-Jun-26 at 15:14

            QUESTION

            Run Jmeter tests with direct call only
            Asked 2020-Jan-27 at 09:37

            I added the Jmeter plugin to my project and now its load tests are running together with the maven build.

            ...

            ANSWER

            Answered 2020-Jan-27 at 09:37

            QUESTION

            I am getting an error "Error generating the report: java.lang.NullPointerException" while running the JMeter script using JMeter-Maven plugin
            Asked 2020-Jan-13 at 14:49

            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 file:

            http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.branch.performance simplifiedAccess 0.0.1-SNAPSHOT

            ...

            ANSWER

            Answered 2020-Jan-13 at 14:49

            Your test didn't execute successfully:

            therefore results file is empty therefore JMeter fails to generate the HTML Reporting Dashboard.

            Actually a not-properly-handled NPE indicates that a big problem in the code as yoiu shouldn't normally see issues like this in more or less mature software so you can report the issue via JMeter Bugzilla as JMeter shouldn't throw a NPE, it should rather report a human-readable message that the results file is empty suggesting inspecting jmeter.log file for possible reasons.

            So you should see your_test_script_name.jmx.log file under target/jmeter/logs folder., I'm pretty much sure that you will find the root cause of your test script failure there.

            Check out How to Use the JMeter Maven Plugin article for more information on running JMeter tests via Apache Maven

            Source https://stackoverflow.com/questions/59718492

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install jmeter-maven-plugin

            You can download it from GitHub, Maven.
            You can use jmeter-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jmeter-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            All the plugin configuration documentation is available on the Github Wiki. Beginners should start with the Basic Configuration section. For advanced POM configuration settings have a look at the Advanced Configuration section.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/jmeter-maven-plugin/jmeter-maven-plugin.git

          • CLI

            gh repo clone jmeter-maven-plugin/jmeter-maven-plugin

          • sshUrl

            git@github.com:jmeter-maven-plugin/jmeter-maven-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link