SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1198

Implement JMeterPostJob for getting performance metrics in maven side parsing reports generated by maven-jmeter-plugin

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JMETER-0.2
    • Component/s: JMeter
    • Labels:
      None
    • Environment:
      Maven side of jsonar-jmeter-plugin, in conjuntion with maven-jmeter-plugin 1.0
    • Number of attachments :
      0

      Description

      Implement JMeterPostJob for getting performance metrics in maven side parsing reports generated by maven-jmeter-plugin.
      This way you could ejecute performance tests and get performance metrics all in one maven command:

      mvn cargo:start org.apache.jmeter:maven-jmeter-plugin:jmeter sonar:sonar
      

      Also, it could be a good idea in little enterprises where there isn't test environment, to deploy aplication in CI with cargo for doing a mini performance test:

      mvn clean package cargo:start org.apache.jmeter:maven-jmeter-plugin:jmeter sonar:sonar
      

        Activity

        Hide
        Carlos Fillol Sendra added a comment -

        Interesting instructions to start using maven-jmeter-plugin: https://github.com/Ronnie76er/jmeter-maven-plugin/wiki
        Basically, how to install dependencies and that you have to put JMeter tests and jmeter.properties inside src/test/jmeter in the project you want to test.

        Despite that, to get sonar-jmeter-plugin working in maven side, there must not be jmeter-sonar-plugin configuration values set in sonar server (all of them must be blank) and maven-jmeter-plugin must be configured this way in the project pom:

        <plugin>
            <groupId>org.apache.jmeter</groupId>
            <artifactId>maven-jmeter-plugin</artifactId>
            <version>1.0-GA</version>
            <configuration>
                <reportDir>${project.build.directory}/jmeter-reports</reportDir>
            </configuration>
        </plugin>
        
        Show
        Carlos Fillol Sendra added a comment - Interesting instructions to start using maven-jmeter-plugin: https://github.com/Ronnie76er/jmeter-maven-plugin/wiki Basically, how to install dependencies and that you have to put JMeter tests and jmeter.properties inside src/test/jmeter in the project you want to test. Despite that, to get sonar-jmeter-plugin working in maven side, there must not be jmeter-sonar-plugin configuration values set in sonar server (all of them must be blank) and maven-jmeter-plugin must be configured this way in the project pom: <plugin> <groupId>org.apache.jmeter</groupId> <artifactId>maven-jmeter-plugin</artifactId> <version>1.0-GA</version> <configuration> <reportDir>${project.build.directory}/jmeter-reports</reportDir> </configuration> </plugin>
        Hide
        Carlos Fillol Sendra added a comment -

        By the moment (ver. 0.2), jmeter sonar plugin can only analize one JTL file, so the plugin only will parse one JTL even if there were several generated JTLs (see SONARPLUGINS-1017)

        Show
        Carlos Fillol Sendra added a comment - By the moment (ver. 0.2), jmeter sonar plugin can only analize one JTL file, so the plugin only will parse one JTL even if there were several generated JTLs (see SONARPLUGINS-1017 )

          People

          • Assignee:
            Carlos Fillol Sendra
            Reporter:
            Carlos Fillol Sendra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: