by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    siva90144
    @siva90144
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.facebook.project</groupId>
    <artifactId>jmeter-maven-plugin-fb</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jmeter-maven-plugin.version>3.0.0</jmeter-maven-plugin.version>
    </properties>
    <dependencies>
    <dependency>
    <groupId>commons-codec</groupId>
    <artifactId>commons-codec</artifactId>
    <version>1.11</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.25</version>
    </dependency>
    <dependency>
    <groupId>org.apache.jmeter</groupId>
    <artifactId>ApacheJMeter_core</artifactId>
    <version>5.1</version>
    </dependency>
    </dependencies>
    <profiles>
    <profile>
    <id>standalone</id>
    <activation>
    <activeByDefault>true</activeByDefault>
    </activation>
    <build>
    <plugins>
    <plugin>
    <groupId>com.lazerycode.jmeter</groupId>
    <artifactId>jmeter-maven-plugin</artifactId>
    <version>${jmeter-maven-plugin.version}</version>
    <executions>
    <execution>
    <id>configuration</id>
    <goals>
    <goal>configure</goal>
    </goals>
    </execution>
    <execution>
    <id>jmeter-tests</id>
    <phase>verify</phase>
    <goals>
    <goal>jmeter</goal>
    <goal>results</goal>
    </goals>
    </execution>
    </executions>
    <configuration>
    <!-- <jmeterVersion>5.1.1</jmeterVersion> -->
    <testFilesIncluded>
    <jMeterTestFile>PerformanceTestPlan.jmx</jMeterTestFile>
    </testFilesIncluded>
    <resultsDirectory>/target/jmeter</resultsDirectory>
    </configuration>
    </plugin>
    </plugins>
    </build>
    </profile>
    </profiles>
    </project>
    image.png
    i placed .jmx file under src/test/java/jmeter folder
    @Ardesco
    Mark Collin
    @Ardesco
    @siva90144 again have a look at the error, it is telling you what is wrong. That directory doesn't exist
    look at the screenshot above, you have created a src/test/java/jmeter directory
    @siva90144 I take it this can be closed down now and you have found that the version of Maven that Eclipse was using was too old (jmeter-maven-plugin/jmeter-maven-plugin#360)
    Mark Collin
    @Ardesco
    If you look at https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/tree/master/src/it there are a series of example POMs
    siva90144
    @siva90144
    @Ardesco Thanks a lot .... the issue is resolved
    siva90144
    @siva90144
    how to pass threads and rampup from pom.xml?
    <configuration>
    <propertiesUser>
    <threadgroup.count>2</threadgroup.count>
    <threadgroup.rampup>2</threadgroup.rampup>
    <threadgroup.duration>5</threadgroup.duration>
    </propertiesUser> </configuration>
    do i need to include tag <propertiesUser> inside configuration or not required for 3.0.0 version
    @Ardesco
    you still need to pass the <propertiesUser> tag, otherwise it won't know what you are defining
    siva90144
    @siva90144
    @Ardesco Thanks
    Also I have one more question... my jmx file name is testfile.jmx and while generating the reports its creating folder with jmx filename. Inside the folder reports are generating. is there any way to eliminate the folder creation? my intention is I wan to generate reports in target/jmeter/reports/ instead off target/jmeter/reports/ testfile/
    Feel free to raise an issue asking for a change if it's causing you problems and we will have a look at it
    hendryang
    @hendryang
    hi folks, how do i get compatibility between JMeter and maven?
    i seems to hit error regarding maven version (eq. this jmeter only support maven 3.xx) when running on jenkins
    Mark Collin
    @Ardesco
    That's because the plugin requires maven 3.5.2
    you will get that error anywhere that you use an outdated version of maven
    hendryang
    @hendryang
    got u , thanks bro
    there's bunch of properties can be configured (eq. jmeter.prop , saveservice.prop, etc..). where can i find the sample/reference for this propertie setting?
    Mark Collin
    @Ardesco
    hendryang
    @hendryang
    thank you
    hendryang
    @hendryang
    Hi folks, i'm currently working on project to ensure a webpage is able to support up to 1000 concurrent user. in JMeter, if i configure to hit a certain page with 1000 user , does this satisfy this particular test requirement? does that reflect the actual 1000 users in the real life situation?
    as my concern is , this is just hitting the API and not the actual "client-side" performance testing. as spawning up 1000 concurrent browsres with selenium seems to be not feasible
    Mark Collin
    @Ardesco
    the client side is rendered on the users computer, it will only ever be rendered once in a browser.
    that one instance will make calls out to the server side to get data to enable it to render something on the client side, those calls out to the server is what JMeter is replicating
    hendryang
    @hendryang
    thanks @Ardesco !
    sairanganadh2018
    @sairanganadh2018
    hi need a help, while trying to execute jmeter job from jenkns usin jmeter-maven-plugin, im getting results in /jmeter/results/**.csv .. while the same is not visible in jenkins job. may i know if i am missing any configuration.. i tried checking in jenkins jobs folder... there is one folder called "performance-reports" getting created, and this has csv results file. however, this is not appeared in jenkins jobs section after the build
    Mark Collin
    @Ardesco
    sounds like you aren't archiving stuff correctly in Jenkins
    sairanganadh2018
    @sairanganadh2018
    @Ardesco oh ok, may i please know how to configure it properly, i used default jenkins setting, and in global tool config of jenkins given the maven home path.. nothing changed apart from that
    Mark Collin
    @Ardesco
    All depends on your Jenkins setup/version, how you run your tests and how you have configured the plugin really. I would guess you need to archive target/jmeter/results/**
    sairanganadh2018
    @sairanganadh2018
    @Ardesco ok, i think im not sure if i got your suggestion, but i will try to find some more resources online to get this properly visible in jobs of jenkins.. thanks a lot for your help so far :)
    sairanganadh2018
    @sairanganadh2018
    Hi, could you please help me in understanding the below folder why it is getting created.. ideally jmeter lib should be created in target/jmeter/lib ... but this is creating target/0e58a72a-d813-41b5-9e99-e0d648a18ce1/jmeter/lib
    image.png
    im trying to create aggregate report.csv from the original csv getting created... for using cmd plugin this is random folder name is issue to sepcify the path for cmd plugin in my pom file
    Mark Collin
    @Ardesco
    This allows us to keep multiple profiles so that you can run JMeter under multiple configurations,
    the results are currently always put in target/jmeter/results
    sairanganadh2018
    @sairanganadh2018

    ok.. could you pls guide how to copy the cmdrunner.jar from ext to lib folder-- im not sure how to do this as the folder name is random generated everytime

    <artifactId>exec-maven-plugin</artifactId>
    <version>1.6.0</version>
    <executions>
    <execution>
    <id>copy-cmdrunner-to-lib-folder</id>
    <phase>post-integration-test</phase>
    <goals>
    <goal>exec</goal>
    </goals>
    <configuration>
    <basedir>${basedir}/target/jmeter/lib/ext</basedir>

    in the "basedir" i need to give this random folder path actually
    my purpose is to use cmdrunner to generate aggregatereport.csv
    could you suggest me how to acheive this
    sairanganadh2018
    @sairanganadh2018
    sorted the issue.. :)
    Mark Collin
    @Ardesco
    :thumbsup: