I\'m currently using JMeter to load test some application, I used the duration assertion and I set it to, let\'s say 200, when the load time exceeds 200, the Request in the Resu
You don't really specify a lot of information. How do you run the application? Do you have the TeamCity JMeter plugin available?
I run a maven project with the jmeter-maven-plugin and teamcity with the JMeter-plugin. Now you can specify in the pom.xml if you want the test to fail on test failures:
false
Please also read info on the TeamCity plugin as it uses a specific (non-standard) jtl format:
\t
true
For more info, see this page, which explains the configuration of the TeamCity JMeter plugin: https://www.blazemeter.com/blog/how-run-jmeter-tests-teamcity-continuous-integration
As a bonus: I invested some time to see how to pass parameters to the JMeter script from the maven build. I came to the conclusion that the maven plugin does not support the normal -J JMeter parameters and you should use -D instead:
-Dimage_path=${teamcity.build.workingDir}/src/test/resources/images
-Denvironment=TEST
Now in JMeter you can use the following variable value to get the value specified in the pom.xml:
${__groovy(System.getProperty("image_path"\,"/some/default/dir"))}