Coder Social home page Coder Social logo

jmeter-graph-maven-plugin's Introduction

Build Status Maven Central

jmeter-graph-maven-plugin

A maven plugin to create nice graphs (using the JMeter Plugins CMDRunner) from JMeter result files (*.jtl).

See https://blog.codecentric.de/2013/12/jmeter-tests-mit-maven-und-jenkins-automatisieren/ for more information.

For a full example, take a look at the jmeter-maven-example project.

Usage

Just include the plugin in your pom.xml and execute mvn jmeter-graph:create-graph.

<project>
  <!-- ... -->
  <build>
    <plugins>
      <plugin>
        <groupId>com.github.Cka3o4Huk.jmeter-graph-plugin</groupId>
        <artifactId>jmeter-graph-maven-plugin</artifactId>
        <version>0.1.1</version>
        <configuration>
          <inputFile>${project.build.directory}/jmeter/results/SimpleWebservicePerformanceTest.jtl</inputFile>
          <graphs>
            <graph>
              <pluginType>ThreadsStateOverTime</pluginType>
              <width>800</width>
              <height>600</height>
              <outputFile>${project.build.directory}/jmeter/results/SimpleWebservicePerformanceTest-ThreadsStateOverTime.png</outputFile>
            </graph>
            <!-- ... you can declare more <graph>-elements here -->
          </graphs>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

You can also bind the graph-generation to a maven-phase, e.g. verify:

<project>
  <!-- ... -->
  <build>
    <plugins>
      <plugin>
        <groupId>de.codecentric</groupId>
        <artifactId>jmeter-graph-maven-plugin</artifactId>
        <version>0.1.0</version>
        <executions>
          <execution>
            <id>create-graphs</id>
            <goals>
              <goal>create-graph</goal>
            </goals>
            <phase>verify</phase>
            <configuration>
              <inputFile>${project.build.directory}/jmeter/results/SimpleWebservicePerformanceTest.jtl</inputFile>
              <graphs>
                <graph>
                  <pluginType>ThreadsStateOverTime</pluginType>
                  <width>800</width>
                  <height>600</height>
                  <outputFile>${project.build.directory}/jmeter/results/SimpleWebservicePerformanceTest-ThreadsStateOverTime.png</outputFile>
                </graph>
                <!-- ... you can declare more <graph>-elements here -->
              </graphs>
            </configuration>
          </execution>
        </execution>
      </plugin>
    </plugins>
  </build>
</project>

jmeter-graph-maven-plugin's People

Contributors

cboris avatar codingfabian avatar jkirchberg avatar mlex avatar srdkr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.